2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
18 PKG_MD5SUM
:=d0ba50e251ae1e7f2c09024facde8e40
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/bluez-libs
28 TITLE
:=Bluetooth library
29 DESCRIPTION
:=Bluetooth library.
30 URL
:=http
://www.bluez.org
/
33 define Build
/Configure
34 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
35 $(TARGET_CONFIGURE_OPTS
) \
36 CFLAGS
="$(TARGET_CFLAGS)" \
37 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
40 --target
=$(GNU_TARGET_NAME
) \
41 --host
=$(GNU_TARGET_NAME
) \
42 --build
=$(GNU_HOST_NAME
) \
48 --datadir=/usr
/share \
49 --includedir=/usr
/include \
50 --infodir=/usr
/share
/info \
52 --libexecdir
=/usr
/lib \
53 --localstatedir
=/var \
54 --mandir=/usr
/share
/man \
57 $(DISABLE_LARGEFILE
) \
66 rm -rf
$(PKG_INSTALL_DIR
)
67 mkdir
-p
$(PKG_INSTALL_DIR
)
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
69 DESTDIR
="$(PKG_INSTALL_DIR)" \
73 define Package
/bluez-libs
/install
74 install -d
-m0755
$(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(1)/usr
/lib
/
78 define Build
/InstallDev
79 mkdir
-p
$(STAGING_DIR
)/usr
/include/bluetooth
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/bluetooth
/*.h
$(STAGING_DIR
)/usr
/include/bluetooth
81 mkdir
-p
$(STAGING_DIR
)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
85 define Build
/UninstallDev
87 $(STAGING_DIR
)/usr
/include/bluetooth \
88 $(STAGING_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*}
91 $(eval
$(call BuildPackage
,bluez-libs
))