summaryrefslogtreecommitdiff
path: root/utils/bluez
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-01-09 21:49:14 +0100
committerNicolas Thill <nico@openwrt.org>2015-01-09 21:50:43 +0100
commit4e216b8b286f29cba6167d1978d944f350e65472 (patch)
treec3bee2befb8a77662b5d5a31a58a79ec00cec002 /utils/bluez
parented4a2ad9004be94e1d5c0625eccc11f52e8acd25 (diff)
bluez: enable static lib, install dev files
Signed-off-by: Nicolas Thill <nico@openwrt.org>
Diffstat (limited to 'utils/bluez')
-rw-r--r--utils/bluez/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/bluez/Makefile b/utils/bluez/Makefile
index ffd74606c..558a4f851 100644
--- a/utils/bluez/Makefile
+++ b/utils/bluez/Makefile
@@ -52,6 +52,8 @@ define Package/bluez-utils/conffiles
endef
CONFIGURE_ARGS += \
+ --enable-static \
+ --enable-shared \
--enable-client \
--enable-datafiles \
--enable-experimental \
@@ -71,6 +73,15 @@ CONFIGURE_ARGS += \
TARGET_CPPFLAGS += \
-D_GNU_SOURCE
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth $(1)/usr/include/
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(1)/usr/lib/pkgconfig/
+endef
+
define Package/bluez-libs/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/