[packages] net-snmp: Enable ipv6 support if defined globally
[openwrt/svn-archive/archive.git] / libs / bluez-libs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bluez-libs
11 PKG_VERSION:=3.36
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
16 PKG_MD5SUM:=8c2ca546c0e7bb73dbd0e906fce7f6b1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bluez-libs
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Bluetooth library
24 URL:=http://www.bluez.org/
25 endef
26
27 CONFIGURE_ARGS += \
28 --enable-shared \
29 --enable-static \
30
31 TARGET_CFLAGS += $(FPIC)
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 DESTDIR="$(PKG_INSTALL_DIR)" \
36 all install
37 endef
38
39 define Build/InstallDev
40 mkdir -p $(1)/usr/include/bluetooth
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(1)/usr/include/bluetooth
42 mkdir -p $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(1)/usr/lib/
44 mkdir -p $(1)/usr/lib/pkgconfig
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(1)/usr/lib/pkgconfig/
46 endef
47
48 define Package/bluez-libs/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,bluez-libs))