source: freewrt/package/madplay/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.0 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:= madplay
10PKG_VERSION:= 0.15.2b
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 6814b47ceaa99880c754c5195aa1aac1
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,MADPLAY,madplay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
24 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS="-lz" \
30 ac_cv_linux_vers=2 \
31 td_cv_buggygetaddrinfo="no" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 --disable-nls \
51 --enable-shared \
52 --disable-static \
53 --with-gnu-ld \
54 --disable-rpath \
55 --disable-debugging \
56 --disable-profiling \
57 --disable-experimental \
58 --without-libiconv-prefix \
59 --without-libintl-prefix \
60 --without-alsa \
61 --without-esd \
62 );
63 touch $@
64
65$(WRKBUILD)/.built:
66 rm -rf $(WRKINST)
67 mkdir -p $(WRKINST)
68 $(MAKE) -C $(WRKBUILD) \
69 DESTDIR="$(WRKINST)" \
70 all install
71 touch $@
72
73$(IPKG_MADPLAY):
74 install -m0755 -d $(IDIR_MADPLAY)/usr/bin
75 install -m0755 $(WRKINST)/usr/bin/madplay $(IDIR_MADPLAY)/usr/bin/
76 $(RSTRIP) $(IDIR_MADPLAY)
77 $(IPKG_BUILD) $(IDIR_MADPLAY) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.