aboutsummaryrefslogtreecommitdiff
path: root/audio/mac
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2008-03-31 20:04:40 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2008-03-31 20:04:40 +0000
commit8e2135ab544952e37965e28da8b431c4dd588a50 (patch)
tree0e7c81abd0fa492892043acf54f093c20a08a4c3 /audio/mac
parent104079cc5e7d23583787d6cc42fa29daf36ee724 (diff)
downloadports-8e2135ab544952e37965e28da8b431c4dd588a50.tar.gz
ports-8e2135ab544952e37965e28da8b431c4dd588a50.zip
yasm is only used on i386 and amd64, don't require it on other
architectures. Approved by: infofarmer
Notes
Notes: svn path=/head/; revision=210286
Diffstat (limited to 'audio/mac')
-rw-r--r--audio/mac/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/audio/mac/Makefile b/audio/mac/Makefile
index 4f7381984707..be19fb3c8d1d 100644
--- a/audio/mac/Makefile
+++ b/audio/mac/Makefile
@@ -14,17 +14,21 @@ DISTNAME= ${PORTNAME}-3.99-u4-b5
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Monkey's Audio lossless codec
-BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
-
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386" || ${ARCH} == "amd64"
+BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/configure
# @${REINPLACE_CMD} -e '/GetInfo/s|intptr_t|long|g' ${WRKSRC}/src/MACLib/*.*
# @${REINPLACE_CMD} -e 's|wcsnicmp|wcsncmp|g;s|wcsicmp|wcscmp|g;s|_wcsicmp|wcscmp|g;s|\.__pos||g' \
# ${WRKSRC}/src/MACLib/*.* ${WRKSRC}/src/Shared/*.*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>