source: freewrt/package/bluez-libs/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=bluez-libs
6PKG_VERSION:=2.24
7PKG_RELEASE:=1
8PKG_MD5SUM:=d0ba50e251ae1e7f2c09024facde8e40
9
10PKG_SOURCE_URL:=http://bluez.sourceforge.net/download
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12PKG_CAT:=zcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(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) | (cd $(BUILD_DIR); $(TAR_EXTRACT) )
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 -I$(STAGING_DIR)/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 --enable-largefile \
50 --disable-nls \
51 --enable-shared \
52 --enable-static \
53 --disable-rpath \
54 )
55 touch $@
56
57$(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 DESTDIR="$(PKG_INSTALL_DIR)" \
62 all install
63 touch $@
64
65$(IPKG_BLUEZ_LIBS):
66 install -d -m0755 $(IDIR_BLUEZ_LIBS)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(IDIR_BLUEZ_LIBS)/usr/lib/
68 $(RSTRIP) $(IDIR_BLUEZ_LIBS)
69 $(IPKG_BUILD) $(IDIR_BLUEZ_LIBS) $(PACKAGE_DIR)
70
71$(STAGING_DIR)/usr/lib/libbluetooth.so: $(PKG_BUILD_DIR)/.built
72 mkdir -p $(STAGING_DIR)/usr/include/bluetooth
73 $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth
74 mkdir -p $(STAGING_DIR)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(STAGING_DIR)/usr/lib/
76
77install-dev: $(STAGING_DIR)/usr/lib/libbluetooth.so
78
79uninstall-dev:
80 rm -rf $(STAGING_DIR)/usr/include/bluetooth
81 rm -rf $(STAGING_DIR)/usr/lib/libbluetooth.{a,so*}
82
83compile-targets: install-dev
84clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.