3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=7b81dc86a48b89600eee235c6c940c51
10 PKG_SOURCE_URL
:=http
://bluez.sourceforge.net
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,BLUEZ_LIBS
,bluez-libs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.source
: $(DL_DIR
)/$(PKG_SOURCE
)
22 zcat
$(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
23 touch
$(BLUEZLIBS_DIR
)/.source
25 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
26 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
29 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
31 sys_lib_dlsearch_path_spec
="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
32 sys_lib_search_path_spec
="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
57 --with-png
=$(STAGING_DIR
)/usr \
61 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
62 rm -rf
$(PKG_INSTALL_DIR
)
63 mkdir
-p
$(PKG_INSTALL_DIR
)
64 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 install -d
-m0755
$(IDIR_BLUEZ_LIBS
)/usr
/lib
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.so.
* $(IDIR_BLUEZ_LIBS
)/usr
/lib
/
72 $(RSTRIP
) $(IDIR_BLUEZ_LIBS
)
73 $(IPKG_BUILD
) $(IDIR_BLUEZ_LIBS
) $(PACKAGE_DIR
)
75 $(STAGING_DIR
)/usr
/lib
/libbluetooth.so
: $(PKG_BUILD_DIR
)/.built
76 mkdir
-p
$(STAGING_DIR
)/usr
/include/bluetooth
77 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/bluetooth
/*.h
$(STAGING_DIR
)/usr
/include/bluetooth
78 mkdir
-p
$(STAGING_DIR
)/usr
/lib
79 cp
-fp
$(PKG_INSTALL_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
81 install-dev
: $(STAGING_DIR
)/usr
/lib
/libbluetooth.so
84 rm -rf
$(STAGING_DIR
)/usr
/lib
/libbluetooth.
{a
,so
*}