svn commit: r302716 - head/audio/soundtouch
Alexey Dokuchaev
danfe at FreeBSD.org
Sat Aug 18 09:56:37 UTC 2012
Author: danfe
Date: Sat Aug 18 09:56:36 2012
New Revision: 302716
URL: http://svn.freebsd.org/changeset/ports/302716
Log:
- Attempt to unbreak on non-Intel architectures
- Provide an option to use integer sample format
- Drop indefinite article from the COMMENT
Modified:
head/audio/soundtouch/Makefile
Modified: head/audio/soundtouch/Makefile
==============================================================================
--- head/audio/soundtouch/Makefile Sat Aug 18 09:46:15 2012 (r302715)
+++ head/audio/soundtouch/Makefile Sat Aug 18 09:56:36 2012 (r302716)
@@ -11,7 +11,7 @@ CATEGORIES= audio
MASTER_SITES= http://www.surina.net/soundtouch/
MAINTAINER= ports at FreeBSD.org
-COMMENT= An open-source audio processing library
+COMMENT= Open-source audio processing library
LICENSE= LGPL21
@@ -25,17 +25,27 @@ PORTDOCS= README.html
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
-ONLY_FOR_ARCHS= amd64 i386 ia64
-ONLY_FOR_ARCHS_REASON="uses -msse2 directive to CC"
+OPTIONS_DEFINE= INTEGER_SAMPLES
+INTEGER_SAMPLES_DESC= Use integer sample format
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MINTEGER_SAMPLES}
+CONFIGURE_ARGS+= --enable-integer-samples
+.endif
post-patch:
@${REINPLACE_CMD} -E 's|-O3 ?||' \
${WRKSRC}/source/SoundStretch/Makefile.am \
${WRKSRC}/source/SoundTouch/Makefile.am
+.if ${ARCH} != "i386" && ${ARCH} != "amd64" && ${ARCH} != "ia64"
+ @${REINPLACE_CMD} '/AM_CXXFLAGS=/s|-msse2 ||' \
+ ${WRKSRC}/source/SoundTouch/Makefile.am
+.endif
run-autotools: # see ${WRKSRC}/bootstrap for reference
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} \
AUTOMAKE="${AUTOMAKE} --add-missing --foreign --copy" \
${AUTORECONF} -fisv)
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list