ports/188145: audio/calf: Fix build on -current

KATO Tsuguru tkato432 at yahoo.com
Mon Mar 31 18:40:03 UTC 2014


>Number:         188145
>Category:       ports
>Synopsis:       audio/calf: Fix build on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 18:40:03 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix build on -current

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/calf/Makefile audio/calf/Makefile
--- /usr/ports/audio/calf/Makefile	2014-01-19 22:54:50.000000000 +0900
+++ audio/calf/Makefile	2014-04-01 00:00:00.000000000 +0900
@@ -18,11 +18,6 @@
 		libfftw3f.so:${PORTSDIR}/math/fftw3-float \
 		libexpat.so:${PORTSDIR}/textproc/expat2
 
-OPTIONS_DEFINE=	LASH LV2
-OPTIONS_DEFAULT=LASH LV2
-OPTIONS_SUB=	yes
-LV2_DESC=	LV2 audio plugin
-
 USES=		gmake pkgconfig
 USE_GNOME=	gtk20
 GNU_CONFIGURE=	yes
@@ -31,8 +26,13 @@
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
+OPTIONS_DEFINE=		LASH LV2
+OPTIONS_DEFAULT=	LASH LV2
+OPTIONS_SUB=		yes
+
 LASH_LIB_DEPENDS=	liblash.so:${PORTSDIR}/audio/lash
 LASH_CONFIGURE_WITH=	lash
+LV2_DESC=		LV2 audio plugin
 LV2_BUILD_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
 LV2_RUN_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
 LV2_CONFIGURE_WITH=	lv2
@@ -42,12 +42,19 @@
 post-patch:
 	@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
 		's|<malloc.h>|<stdlib.h>|'
-	@${REINPLACE_CMD} -e '/CXXFLAGS/s|-O3||' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e '/calf.so/s|$$(pkglibdir)|../../calf|' \
+	@${REINPLACE_CMD} -e \
+		'/CXXFLAGS/s|-O3|| ; \
+		 /CXXFLAGS/s|-finline-functions-called-once||' \
+		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		'/AM_CXXFLAGS/s|-finline-limit=80|| ; \
+		 /calf.so/s|$$(pkglibdir)|../../calf|' \
 		${WRKSRC}/src/Makefile.in
-	@${REINPLACE_CMD} -e 's|src\.size();|src->size();|' \
+	@${REINPLACE_CMD} -e \
+		's|src\.size();|src->size();|' \
 		${WRKSRC}/src/calf/buffer.h
-	@${REINPLACE_CMD} -e 's|data\[(1<<IntBits)+1\]|data[]|' \
+	@${REINPLACE_CMD} -e \
+		's|data\[(1<<IntBits)+1\]|data[]|' \
 		${WRKSRC}/src/calf/fixed_point.h
 
 pre-build:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list