diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2013-11-03 14:43:42 +0100 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2013-11-03 14:43:42 +0100 |
commit | 2b5742738af1c66f793d43ec7f6beb998a34241a (patch) | |
tree | 64ebef72f7b864cbd6b39899ec44c69e2f74c06c /package/libmad/Makefile | |
parent | 08f64b87c0b6e9a6de7250c616a91830ef447713 (diff) |
convert to autotool infrastructure, use CPU_ARCH not ARCH to choose FPM
Diffstat (limited to 'package/libmad/Makefile')
-rw-r--r-- | package/libmad/Makefile | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/package/libmad/Makefile b/package/libmad/Makefile index 41934bd32..fb26b70d0 100644 --- a/package/libmad/Makefile +++ b/package/libmad/Makefile @@ -5,10 +5,11 @@ include ${TOPDIR}/rules.mk PKG_NAME:= libmad PKG_VERSION:= 0.15.1b -PKG_RELEASE:= 5 +PKG_RELEASE:= 6 PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c PKG_DESCR:= An high-quality MPEG audio decoding library PKG_SECTION:= libs +PKG_BUILDDEP:= autotool PKG_URL:= http://sourceforge.net/projects/mad PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/} PKG_OPTS:= dev @@ -18,29 +19,42 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBMAD,libmad,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) FPM:=default -ifeq (${ARCH},i386) +ifeq (${CPU_ARCH},i486) FPM:=intel endif -ifeq (${ARCH},arm) +ifeq (${CPU_ARCH},i586) +FPM:=intel +endif +ifeq (${CPU_ARCH},i686) +FPM:=intel +endif +ifeq (${CPU_ARCH},arm) FPM:=arm endif -ifeq (${ARCH},mips) +ifeq (${CPU_ARCH},mipsel) FPM:=mips endif -ifeq (${ARCH},ppc) +ifeq (${CPU_ARCH},mips) +FPM:=mips +endif +ifeq (${CPU_ARCH},ppc) FPM:=ppc endif -ifeq (${ARCH},sparc) +ifeq (${CPU_ARCH},sparc) FPM:=sparc endif -ifeq (${ARCH},x86_64) +ifeq (${CPU_ARCH},x86_64) FPM:=64bit endif +AUTOTOOL_STYLE:= autoreconf CONFIGURE_ARGS+= --enable-fpm=${FPM} \ --disable-debugging \ --enable-speed +post-patch: + touch ${WRKBUILD}/{NEWS,AUTHORS,ChangeLog} + pre-install: ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig |