root/trunk/freewrt/package/bluez-utils/Makefile

Revision 3512, 1.6 kB (checked in by tg, 1 year ago)

fix the problem that a “/etc/init.d/ntpd restart” wouldn’t work
because it uses “killall ntpd” and nukes itself: on execution,
run mksh(1) with ourselves first, to make sure that killall/pkill
will see our process name as “mksh” instead of e.g. “…/ntpd”.

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8
9 PKG_NAME:=              bluez-utils
10 PKG_VERSION:=           3.9
11 PKG_RELEASE:=           7
12 PKG_MD5SUM:=            023a5e6a436f86a28baeec91e4c62736
13 MASTER_SITES:=          http://bluez.sourceforge.net/download/
14
15 include ${TOPDIR}/mk/package.mk
16
17 $(eval $(call PKG_template,BLUEZ_UTILS,bluez-utils,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
18
19 TCPPFLAGS+=             -I$(STAGING_DIR)/usr/include/dbus-1.0
20 CONFIGURE_STYLE=        gnu
21 CONFIGURE_ARGS+=        --disable-fuse \
22                         --disable-obex \
23                         --disable-alsa \
24                         --disable-cups \
25                         --disable-pcmcia \
26                         --disable-initscripts \
27                         --disable-bccmd \
28                         --disable-avctrl \
29                         --disable-hid2hci \
30                         --disable-dfutool \
31                         --enable-bcm203x \
32                         --disable-bluepin \
33                         --with-bluez=${STAGING_DIR}/usr/include \
34                         --with-usb=${STAGING_DIR}/usr/include
35 BUILD_STYLE=            auto
36 INSTALL_STYLE=          auto
37
38 post-install:
39         ${INSTALL_DIR} $(IDIR_BLUEZ_UTILS)/etc/dbus-1/system.d
40         ${INSTALL_DIR} ${IDIR_BLUEZ_UTILS}/usr/bin
41         ${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ_UTILS}/usr/bin/
42         ${INSTALL_DIR} ${IDIR_BLUEZ_UTILS}/usr/sbin
43         ${CP} ${WRKINST}/usr/sbin/* ${IDIR_BLUEZ_UTILS}/usr/sbin/
44         ${INSTALL_DIR} ${IDIR_BLUEZ_UTILS}/etc/bluetooth
45         ${CP} ${WRKINST}/etc/bluetooth/{hcid,rfcomm}.conf \
46             ${IDIR_BLUEZ_UTILS}/etc/bluetooth/
47         $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/bluetooth.conf \
48                 $(IDIR_BLUEZ_UTILS)/etc/dbus-1/system.d
49         ${INSTALL_DIR} ${IDIR_BLUEZ_UTILS}/etc/init.d
50         ${INSTALL_BIN} ./files/bluez.init \
51                 ${IDIR_BLUEZ_UTILS}/etc/init.d/bluez
52
53 include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracBrowser for help on using the browser.