View | Details | Raw Unified | Return to bug 188145 | Differences between
and this patch

Collapse All | Expand All

(-)audio/calf/Makefile (-17 / +19 lines)
Lines 18-29 Link Here
18
		libfftw3f.so:${PORTSDIR}/math/fftw3-float \
18
		libfftw3f.so:${PORTSDIR}/math/fftw3-float \
19
		libexpat.so:${PORTSDIR}/textproc/expat2
19
		libexpat.so:${PORTSDIR}/textproc/expat2
20
20
21
OPTIONS_DEFINE=	LASH LV2
21
USES=		gmake pkgconfig
22
OPTIONS_DEFAULT=LASH LV2
23
OPTIONS_SUB=	yes
24
LV2_DESC=	LV2 audio plugin
25
26
USES=		gmake pkgconfig compiler:env
27
USE_GNOME=	gtk20
22
USE_GNOME=	gtk20
28
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
29
INSTALLS_ICONS=	yes
24
INSTALLS_ICONS=	yes
Lines 31-59 Link Here
31
CPPFLAGS+=	-I${LOCALBASE}/include
26
CPPFLAGS+=	-I${LOCALBASE}/include
32
LDFLAGS+=	-L${LOCALBASE}/lib
27
LDFLAGS+=	-L${LOCALBASE}/lib
33
28
29
OPTIONS_DEFINE=		LASH LV2
30
OPTIONS_DEFAULT=	LASH LV2
31
OPTIONS_SUB=		yes
32
34
LASH_LIB_DEPENDS=	liblash.so:${PORTSDIR}/audio/lash
33
LASH_LIB_DEPENDS=	liblash.so:${PORTSDIR}/audio/lash
35
LASH_CONFIGURE_WITH=	lash
34
LASH_CONFIGURE_WITH=	lash
35
LV2_DESC=		LV2 audio plugin
36
LV2_BUILD_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
36
LV2_BUILD_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
37
LV2_RUN_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
37
LV2_RUN_DEPENDS=	lv2core>0:${PORTSDIR}/audio/lv2core
38
LV2_CONFIGURE_WITH=	lv2
38
LV2_CONFIGURE_WITH=	lv2
39
39
40
.include <bsd.port.pre.mk>
40
.include <bsd.port.options.mk>
41
41
42
post-patch:
42
post-patch:
43
	@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
43
	@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
44
		's|<malloc.h>|<stdlib.h>|'
44
		's|<malloc.h>|<stdlib.h>|'
45
	@${REINPLACE_CMD} -e '/CXXFLAGS/s|-O3||' ${WRKSRC}/configure
45
	@${REINPLACE_CMD} -e \
46
	@${REINPLACE_CMD} -e '/calf.so/s|$$(pkglibdir)|../../calf|' \
46
		'/CXXFLAGS/s|-O3|| ; \
47
		 /CXXFLAGS/s|-finline-functions-called-once||' \
48
		${WRKSRC}/configure
49
	@${REINPLACE_CMD} -e \
50
		'/AM_CXXFLAGS/s|-finline-limit=80|| ; \
51
		 /calf.so/s|$$(pkglibdir)|../../calf|' \
47
		${WRKSRC}/src/Makefile.in
52
		${WRKSRC}/src/Makefile.in
48
	@${REINPLACE_CMD} -e 's|src\.size();|src->size();|' \
53
	@${REINPLACE_CMD} -e \
54
		's|src\.size();|src->size();|' \
49
		${WRKSRC}/src/calf/buffer.h
55
		${WRKSRC}/src/calf/buffer.h
50
	@${REINPLACE_CMD} -e 's|data\[(1<<IntBits)+1\]|data[]|' \
56
	@${REINPLACE_CMD} -e \
57
		's|data\[(1<<IntBits)+1\]|data[]|' \
51
		${WRKSRC}/src/calf/fixed_point.h
58
		${WRKSRC}/src/calf/fixed_point.h
52
.if ${COMPILER_TYPE} == "clang"
53
	@${REINPLACE_CMD} -e 's|-finline-functions -finline-functions-called-once||' \
54
		${WRKSRC}/configure
55
	@${REINPLACE_CMD} -e 's|-finline-limit=80||' ${WRKSRC}/src/Makefile.in
56
.endif
57
59
58
pre-build:
60
pre-build:
59
.if ${PORT_OPTIONS:MLV2}
61
.if ${PORT_OPTIONS:MLV2}
Lines 72-75 Link Here
72
		-p ${STAGEDIR}${PREFIX}/lib/lv2/calf.lv2)
74
		-p ${STAGEDIR}${PREFIX}/lib/lv2/calf.lv2)
73
.endif
75
.endif
74
76
75
.include <bsd.port.post.mk>
77
.include <bsd.port.mk>

Return to bug 188145