more tristate -> prompt fixes
[openwrt.git] / package / bluez-libs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bluez-libs
6 PKG_VERSION:=2.17
7 PKG_RELEASE:=2
8 PKG_MD5SUM:=7b81dc86a48b89600eee235c6c940c51
9
10 PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,BLUEZ_LIBS,bluez-libs,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
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
24
25 $(PKG_BUILD_DIR)/.configured:
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)/lib -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" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 $(DISABLE_LARGEFILE) \
52 $(DISABLE_NLS) \
53 --enable-shared \
54 --enable-static \
55 --disable-rpath \
56 --without-x \
57 --with-png=$(STAGING_DIR)/usr \
58 )
59 touch $@
60
61 $(PKG_BUILD_DIR)/.built:
62 rm -rf $(PKG_INSTALL_DIR)
63 mkdir -p $(PKG_INSTALL_DIR)
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 all install
67 touch $@
68
69 $(IPKG_BLUEZ_LIBS):
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)
74
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/
80
81 install-dev: $(STAGING_DIR)/usr/lib/libbluetooth.so
82
83 uninstall-dev:
84 rm -rf $(STAGING_DIR)/usr/include/bluetooth
85 rm -rf $(STAGING_DIR)/usr/lib/libbluetooth.{a,so*}
86
87 compile-targets: install-dev
88 clean-targets: uninstall-dev
This page took 0.054753 seconds and 5 git commands to generate.