summaryrefslogtreecommitdiff
path: root/package/bluez
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-10-11 19:36:32 +0200
commit6d26b19269a28ff576e872473cb3b4610a61fceb (patch)
treed93378254682782dbe0175dcf69edb1fbf65dbe3 /package/bluez
parentb45a02c444117a90d202706013d71a56813990e1 (diff)
make more apps statically linkable
- update libusb to latest upstream - update bluez to latest upstream - add a new PKG_OPTS option: libonly, useful for library only packages, which are not created, when static linking is choosen
Diffstat (limited to 'package/bluez')
-rw-r--r--package/bluez/Config.in3
-rw-r--r--package/bluez/Makefile12
2 files changed, 13 insertions, 2 deletions
diff --git a/package/bluez/Config.in b/package/bluez/Config.in
index 3bb4c4a37..10b5f87e1 100644
--- a/package/bluez/Config.in
+++ b/package/bluez/Config.in
@@ -3,6 +3,9 @@ config ADK_PACKAGE_BLUEZ
tristate
default n
select ADK_KPACKAGE_KMOD_BT
+ select ADK_PACKAGE_GLIB
+ select ADK_PACKAGE_DBUS
+ select ADK_PACKAGE_LIBUSB
help
Bluez libs and apps.
diff --git a/package/bluez/Makefile b/package/bluez/Makefile
index 4c39c00b2..d0c652c7b 100644
--- a/package/bluez/Makefile
+++ b/package/bluez/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= bluez
-PKG_VERSION:= 4.40
+PKG_VERSION:= 4.56
PKG_RELEASE:= 1
-PKG_MD5SUM:= a25fa37c97c309338649f6a5fd4cea76
+PKG_MD5SUM:= 92ea2e86a5489f0d16567920f2ec9b36
PKG_DESCR:= bluetooth libraries and applications
PKG_SECTION:= bluetooth
PKG_DEPENDS:= kmod-bluetooth
@@ -17,7 +17,13 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,BLUEZ,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+ifeq ($(ADK_STATIC),y)
+XAKE_FLAGS+= V=1 CCLD="$(TARGET_CC) -all-static -pthread"
+else
+XAKE_FLAGS+= V=1
+endif
CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= ac_cv_prog_cc_pie=no
CONFIGURE_ARGS+= --enable-tools \
--enable-alsa \
--enable-usb \
@@ -30,8 +36,10 @@ BUILD_STYLE:= auto
INSTALL_STYLE:= auto
post-install:
+ifeq ($(ADK_STATIC),n)
${INSTALL_DIR} ${IDIR_BLUEZ}/usr/lib
${CP} ${WRKINST}/usr/lib/libbluetooth.so.* ${IDIR_BLUEZ}/usr/lib/
+endif
${INSTALL_DIR} $(IDIR_BLUEZ)/etc/dbus-1/system.d
${INSTALL_DIR} ${IDIR_BLUEZ}/usr/bin
${CP} ${WRKINST}/usr/bin/* ${IDIR_BLUEZ}/usr/bin/