source: freewrt/package/bluez-libs/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 75a47d8, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • fix some broken symlinks in pthread and bluez-libs package
  • add bluez-firmware package needed for my bcm2033 usb bluetooth dongle
  • activate bcm203x utility in bluez-utils
  • add bnep kernel module
  • load bluetooth kernel modules

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1132 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.3 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= bluez-libs
10PKG_VERSION:= 2.24
11PKG_RELEASE:= 2
12PKG_MD5SUM:= d0ba50e251ae1e7f2c09024facde8e40
13
14PKG_SOURCE_URL:= http://bluez.sourceforge.net/download
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,BLUEZ_LIBS,bluez-libs,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 --disable-nls \
45 --enable-shared \
46 --enable-static \
47 --disable-rpath \
48 )
49 touch $@
50
51$(WRKBUILD)/.built:
52 $(MAKE) -C $(WRKBUILD) \
53 DESTDIR="$(WRKINST)" \
54 install
55 touch $@
56
57$(IPKG_BLUEZ_LIBS):
58 $(INSTALL_DIR) $(IDIR_BLUEZ_LIBS)/usr/lib
59 $(CP) $(WRKINST)/usr/lib/libbluetooth.so.* $(IDIR_BLUEZ_LIBS)/usr/lib/
60 $(RSTRIP) $(IDIR_BLUEZ_LIBS)
61 $(IPKG_BUILD) $(IDIR_BLUEZ_LIBS) $(PACKAGE_DIR)
62
63$(STAGING_DIR)/usr/lib/libbluetooth.so: $(WRKBUILD)/.built
64 $(INSTALL_DIR) $(STAGING_DIR)/usr/include/bluetooth
65 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
66 $(INSTALL_DATA) $(WRKINST)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth
67 $(INSTALL_DATA) $(WRKINST)/usr/lib/libbluetooth.a $(STAGING_DIR)/usr/lib/
68 $(INSTALL_DATA) $(WRKINST)/usr/lib/libbluetooth.so* $(STAGING_DIR)/usr/lib/
69
70install-dev: $(STAGING_DIR)/usr/lib/libbluetooth.so
71
72uninstall-dev:
73 rm -rf $(STAGING_DIR)/usr/include/bluetooth
74 rm -rf $(STAGING_DIR)/usr/lib/libbluetooth.a
75 rm -rf $(STAGING_DIR)/usr/lib/libbluetooth.so*
76
77compile-targets: install-dev
78clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.