source: freewrt/package/madplay/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# $Id: Makefile 2670 2005-12-14 13:40:21Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=madplay
6PKG_VERSION:=0.15.2b
7PKG_RELEASE:=1
8PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
9
10PKG_SOURCE_URL:=@SF/mad \
11 ftp://ftp.mars.org/pub/mpeg/
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,MADPLAY,madplay,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
21 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
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 LIBS="-lz" \
27 ac_cv_linux_vers=2 \
28 td_cv_buggygetaddrinfo="no" \
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 --enable-largefile \
48 --disable-nls \
49 --enable-shared \
50 --disable-static \
51 --with-gnu-ld \
52 --disable-rpath \
53 --disable-debugging \
54 --disable-profiling \
55 --disable-experimental \
56 --without-libiconv-prefix \
57 --without-libintl-prefix \
58 --without-alsa \
59 --without-esd \
60 );
61 touch $@
62
63$(WRKBUILD)/.built:
64 rm -rf $(WRKINST)
65 mkdir -p $(WRKINST)
66 $(MAKE) -C $(WRKBUILD) \
67 DESTDIR="$(WRKINST)" \
68 all install
69 touch $@
70
71$(IPKG_MADPLAY):
72 install -m0755 -d $(IDIR_MADPLAY)/usr/bin
73 install -m0755 $(WRKINST)/usr/bin/madplay $(IDIR_MADPLAY)/usr/bin/
74 $(RSTRIP) $(IDIR_MADPLAY)
75 $(IPKG_BUILD) $(IDIR_MADPLAY) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.