diff options
author | arved <arved@FreeBSD.org> | 2004-01-23 18:17:36 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2004-01-23 18:17:36 +0800 |
commit | a072f3ae8378749e43e3586c1c5c5683ac9741b8 (patch) | |
tree | 63c0dcf9bd26a37e5badf928e17c4784f422d8cc /audio/mppdec | |
parent | 350294e293014e7439323a5c96d448a69159f961 (diff) | |
download | freebsd-ports-gnome-a072f3ae8378749e43e3586c1c5c5683ac9741b8.tar.gz freebsd-ports-gnome-a072f3ae8378749e43e3586c1c5c5683ac9741b8.tar.zst freebsd-ports-gnome-a072f3ae8378749e43e3586c1c5c5683ac9741b8.zip |
Fix on 64bit platforms
Approved by: maintainer
Diffstat (limited to 'audio/mppdec')
-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) |