diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-01-23 10:17:36 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-01-23 10:17:36 +0000 |
commit | d155c9f32e74a16f86d5f92231472feecb9c22bd (patch) | |
tree | de162858b794a329439c5a6f25a7ac47835db598 | |
parent | bdf202c987d1bd7d6555d86dddec8e636842ae62 (diff) | |
download | freebsd-ports-d155c9f32e74a16f86d5f92231472feecb9c22bd.zip |
Fix on 64bit platforms
Approved by: maintainer
-rw-r--r-- | audio/mppdec/Makefile | 16 | ||||
-rw-r--r-- | audio/mppdec/files/patch-Makefile.bsd | 20 |
2 files changed, 30 insertions, 6 deletions
diff --git a/audio/mppdec/Makefile b/audio/mppdec/Makefile index 14da7140550f..58e8610b5fd8 100644 --- a/audio/mppdec/Makefile +++ b/audio/mppdec/Makefile @@ -15,14 +15,24 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= shoesoft@gmx.net COMMENT= Command-line player/decoder for musepack audio -BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm LIB_DEPENDS= esd.2:${PORTSDIR}/audio/esound MAKEFILE= Makefile.bsd USE_BZIP2= yes -ONLY_FOR_ARCHS= i386 +USE_REINPLACE= yes + +.include <bsd.port.pre.mk> + +.if ${ARCH} == i386 +BUILD_DEPENDS= nasm:${PORTVERSION}/devel/nasm +.endif + +post-patch: +.if ${ARCH} != i386 + ${REINPLACE_CMD} -e "s,#define USE_ASM,//define USE_ASM," ${WRKSRC}/mpp.h +.endif do-install: @${INSTALL_PROGRAM} ${WRKSRC}/mppdec ${PREFIX}/bin/ -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/audio/mppdec/files/patch-Makefile.bsd b/audio/mppdec/files/patch-Makefile.bsd index e2ac5cc39987..9a6b545659a2 100644 --- a/audio/mppdec/files/patch-Makefile.bsd +++ b/audio/mppdec/files/patch-Makefile.bsd @@ -1,11 +1,11 @@ ---- Makefile.bsd.orig Mon May 12 07:55:51 2003 -+++ Makefile.bsd Mon May 12 07:56:15 2003 +--- Makefile.bsd.orig Wed Jul 31 00:19:57 2002 ++++ Makefile.bsd Fri Jan 23 10:47:12 2004 @@ -10,11 +10,11 @@ #LDADD += -lossaudio include version -OPTIM = -O3 -march=pentiumpro -ffast-math -s -+OPTIM = -O3 -ffast-math -s ++#OPTIM = -O3 -ffast-math -s WARN = @@ -14,3 +14,17 @@ TARGETS = mppdec +@@ -38,9 +38,11 @@ + tools.o \ + wave_out.o \ + stderr.o \ +- cpu_feat.o \ +- synthasm.o \ + _setargv.o \ ++ ++.if ${ARCH} == i386 ++OBJ+= cpu_feat.o synthasm.o ++.endif + + + all: $(TARGETS) |