Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2012 09:56:37 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302716 - head/audio/soundtouch
Message-ID:  <201208180956.q7I9ubds004982@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208180956.q7I9ubds004982>