Add libssp dependency to openssh client and server (#3780)
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bluez-libs
12 PKG_VERSION:=3.35
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
17 PKG_MD5SUM:=2682b84da32cd78b48982d1d69ba637c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/bluez-libs
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Bluetooth library
28 URL:=http://www.bluez.org/
29 endef
30
31 CONFIGURE_ARGS += \
32 --enable-shared \
33 --enable-static \
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install
39 endef
40
41 define Build/InstallDev
42 mkdir -p $(1)/usr/include/bluetooth
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(1)/usr/include/bluetooth
44 mkdir -p $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(1)/usr/lib/
46 mkdir -p $(1)/usr/lib/pkgconfig
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/bluez.pc $(1)/usr/lib/pkgconfig/
48 endef
49
50 define Package/bluez-libs/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,bluez-libs))