source: freewrt/package/libmad/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 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:= libmad
10PKG_VERSION:= 0.15.1b
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c
13
14PKG_SOURCE_URL:= @SF/mad \
15 ftp://ftp.mars.org/pub/mpeg/
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,LIBMAD,libmad,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22FPM:=default
23ifeq ($(ARCH),i386)
24FPM:=intel
25endif
26ifeq ($(ARCH),mipsel)
27FPM:=mips
28endif
29
30$(WRKBUILD)/.configured:
31 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
32 $(TARGET_CONFIGURE_OPTS) \
33 CFLAGS="$(strip $(TARGET_CFLAGS))" \
34 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
35 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
36 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
37 ./configure \
38 --target=$(GNU_TARGET_NAME) \
39 --host=$(GNU_TARGET_NAME) \
40 --build=$(GNU_HOST_NAME) \
41 --program-prefix="" \
42 --program-suffix="" \
43 --prefix=/usr \
44 --exec-prefix=/usr \
45 --bindir=/usr/bin \
46 --datadir=/usr/share \
47 --includedir=/usr/include \
48 --infodir=/usr/share/info \
49 --libdir=/usr/lib \
50 --libexecdir=/usr/lib \
51 --localstatedir=/var \
52 --mandir=/usr/share/man \
53 --sbindir=/usr/sbin \
54 --sysconfdir=/etc \
55 --disable-nls \
56 --enable-shared \
57 --enable-static \
58 --disable-rpath \
59 --with-gnu-ld \
60 --enable-fpm=$(FPM) \
61 --disable-debugging \
62 --enable-speed \
63 );
64 touch $@
65
66$(WRKBUILD)/.built:
67 rm -rf $(WRKINST)
68 mkdir -p $(WRKINST)
69 $(MAKE) -C $(WRKBUILD) \
70 DESTDIR="$(WRKINST)" \
71 all install
72 touch $@
73
74$(IPKG_LIBMAD):
75 install -m0755 -d $(IDIR_LIBMAD)/usr/lib
76 $(CP) $(WRKINST)/usr/lib/libmad.so.* $(IDIR_LIBMAD)/usr/lib/
77 $(RSTRIP) $(IDIR_LIBMAD)
78 $(IPKG_BUILD) $(IDIR_LIBMAD) $(PACKAGE_DIR)
79
80$(STAGING_DIR)/usr/lib/libmad.so: $(WRKBUILD)/.built
81 mkdir -p $(STAGING_DIR)/usr/include
82 $(CP) $(WRKINST)/usr/include/mad.h $(STAGING_DIR)/usr/include/
83 mkdir -p $(STAGING_DIR)/usr/lib
84 $(CP) $(WRKINST)/usr/lib/libmad.a $(STAGING_DIR)/usr/lib/
85 $(CP) $(WRKINST)/usr/lib/libmad.so* $(STAGING_DIR)/usr/lib/
86 touch $@
87
88install-dev: $(STAGING_DIR)/usr/lib/libmad.so
89
90uninstall-dev:
91 rm -rf \
92 $(STAGING_DIR)/usr/include/mad.h \
93 $(STAGING_DIR)/usr/lib/libmad.a \
94 $(STAGING_DIR)/usr/lib/libmad.so* \
95
96compile-targets: install-dev
97clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.