29cbeb88c61c572383dd0fe14d4c5c0ce023344b
[openwrt/svn-archive/packages.git] / libs / bluez-libs / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=2
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 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/bluez-libs
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Bluetooth library
26 URL:=http://www.bluez.org/
27 endef
28
29 CONFIGURE_ARGS += \
30 --enable-shared \
31 --enable-static \
32
33 TARGET_CFLAGS += $(FPIC)
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/include/bluetooth
37 $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(1)/usr/include/bluetooth
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(1)/usr/lib/
40 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(1)/usr/lib/pkgconfig/
42 endef
43
44 define Package/bluez-libs/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
47 endef
48
49 $(eval $(call BuildPackage,bluez-libs))