aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2008-04-01 04:04:40 +0800
committernaddy <naddy@FreeBSD.org>2008-04-01 04:04:40 +0800
commit2541a1da6839c90c73f1ea38640305c825e917c7 (patch)
treeb1686f99c5eac18cc5b6fe65dfa80fd90ffcab0c /audio
parent94607c3c2c33e631945f7b72a799fdd7abbb708b (diff)
downloadfreebsd-ports-gnome-2541a1da6839c90c73f1ea38640305c825e917c7.tar.gz
freebsd-ports-gnome-2541a1da6839c90c73f1ea38640305c825e917c7.tar.zst
freebsd-ports-gnome-2541a1da6839c90c73f1ea38640305c825e917c7.zip
yasm is only used on i386 and amd64, don't require it on other
architectures. Approved by: infofarmer
Diffstat (limited to 'audio')
-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>