source: freewrt/package/id3lib/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

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

  • Property mode set to 100644
File size: 2.5 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:= id3lib
10PKG_VERSION:= 3.8.3
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 19f27ddd2dda4b2d26a559a4f0f402a7
13
14PKG_SOURCE_URL:= @SF/id3lib
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,ID3LIB,id3lib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); 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-nls \
48 --enable-shared \
49 --enable-static \
50 --disable-rpath \
51 --with-gnu-ld \
52 );
53 touch $@
54
55$(WRKBUILD)/.built:
56 rm -rf $(WRKINST)
57 mkdir -p $(WRKINST)
58 $(MAKE) -C $(WRKBUILD) \
59 DESTDIR="$(WRKINST)" \
60 all install
61 touch $@
62
63$(IPKG_ID3LIB):
64 install -d -m0755 $(IDIR_ID3LIB)/usr/lib/
65 $(CP) $(WRKINST)/usr/lib/libid3-*.so.* $(IDIR_ID3LIB)/usr/lib/
66 $(RSTRIP) $(IDIR_ID3LIB)
67 $(IPKG_BUILD) $(IDIR_ID3LIB) $(PACKAGE_DIR)
68
69$(STAGING_DIR)/usr/lib/libid3.so: $(WRKBUILD)/.built
70 mkdir -p $(STAGING_DIR)/usr/include
71 $(CP) $(WRKINST)/usr/include/id3 $(STAGING_DIR)/usr/include/
72 $(CP) $(WRKINST)/usr/include/id3.h $(STAGING_DIR)/usr/include/
73 mkdir -p $(STAGING_DIR)/usr/lib
74 $(CP) $(WRKINST)/usr/lib/libid3.a $(STAGING_DIR)/usr/lib/
75 $(CP) $(WRKINST)/usr/lib/libid3.so $(STAGING_DIR)/usr/lib/
76 $(CP) $(WRKINST)/usr/lib/libid3-*.so.* $(STAGING_DIR)/usr/lib/
77 touch $@
78
79install-dev: $(STAGING_DIR)/usr/lib/libid3.so
80
81uninstall-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
89compile-targets: install-dev
90clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.