fix madwifi-tools defaults (use driver's defaults instead of specific board types)
[openwrt.git] / package / id3lib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=id3lib
6 PKG_VERSION:=3.8.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=19f27ddd2dda4b2d26a559a4f0f402a7
9
10 PKG_SOURCE_URL:=@SF/id3lib
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,ID3LIB,id3lib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 LIBS="-Wl,-Bdynamic,-luClibc++,-Bstatic,-lstdc++,-Bdynamic,-lz,-lm,-lc" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --enable-static \
51 --disable-rpath \
52 --with-gnu-ld \
53 );
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built:
57 rm -rf $(PKG_INSTALL_DIR)
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 all install
62 touch $@
63
64 $(IPKG_ID3LIB):
65 install -d -m0755 $(IDIR_ID3LIB)/usr/lib/
66 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(IDIR_ID3LIB)/usr/lib/
67 $(IPKG_BUILD) $(IDIR_ID3LIB) $(PACKAGE_DIR)
68
69 $(STAGING_DIR)/usr/lib/libid3.so: $(PKG_BUILD_DIR)/.built
70 mkdir -p $(STAGING_DIR)/usr/include
71 cp -fpR $(PKG_INSTALL_DIR)/usr/include/id3 $(STAGING_DIR)/usr/include/
72 cp -fpR $(PKG_INSTALL_DIR)/usr/include/id3.h $(STAGING_DIR)/usr/include/
73 mkdir -p $(STAGING_DIR)/usr/lib
74 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3.a $(STAGING_DIR)/usr/lib/
75 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3.so $(STAGING_DIR)/usr/lib/
76 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(STAGING_DIR)/usr/lib/
77 touch $@
78
79 install-dev: $(STAGING_DIR)/usr/lib/libid3.so
80
81 uninstall-dev:
82 rm -rf \
83 $(STAGING_DIR)/usr/include/id3 \
84 $(STAGING_DIR)/usr/include/id3.h \
85 $(STAGING_DIR)/usr/lib/libid3.a \
86 $(STAGING_DIR)/usr/lib/libid3.so \
87 $(STAGING_DIR)/usr/lib/libid3-*.so.* \
88
89 compile-targets: install-dev
90 clean-targets: uninstall-dev
This page took 0.058849 seconds and 5 git commands to generate.