blob: b7e63f8e5010b35abef04b483ae80ddd2ae702d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Created by: <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= calf
PORTVERSION= 0.0.19
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Audio plug-in pack for LV2 and JACK environments
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
BUILD_DEPENDS= fftw3>0:${PORTSDIR}/math/fftw3
LIB_DEPENDS= fluidsynth:${PORTSDIR}/audio/fluidsynth \
jack:${PORTSDIR}/audio/jack \
fftw3f:${PORTSDIR}/math/fftw3-float \
expat:${PORTSDIR}/textproc/expat2
OPTIONS_DEFINE= LASH LV2
OPTIONS_DEFAULT=LASH LV2
LV2_DESC= LV2 audio plugin
USE_GCC= any
USE_GNOME= gtk20
USE_GMAKE= yes
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= calfjackhost.1
MAN7= calf.7
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLASH}
LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash
.else
CONFIGURE_ARGS+=--without-lash
.endif
.if ${PORT_OPTIONS:MLV2}
BUILD_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
RUN_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
PLIST_SUB+= LV2=""
.else
CONFIGURE_ARGS+=--without-lv2
PLIST_SUB+= LV2="@comment "
.endif
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 '/^install-data-am:/s|install-data-local||' \
${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MDOCS}
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data-local)
.endif
.include <bsd.port.mk>
|