blob: 36e186d862632a88c1f6cc615c2d153cb4d8b513 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$
PORTNAME= linuxsampler
DISTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://download.linuxsampler.org/packages/
MAINTAINER= ports@FreeBSD.org
COMMENT= Modular MIDI sampler
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= "not yet ported"
BUILD_DEPENDS= lv2>0:audio/lv2
LIB_DEPENDS= libgig.so:audio/libgig \
libsndfile.so:audio/libsndfile \
libuuid.so:misc/e2fsprogs-libuuid
OPTIONS_DEFINE= JACK ALSA DSSI LV2
OPTIONS_DEFAULT= JACK
DSSI_DESC= Enable DSSI support
LV2_DESC= Enable LV2 support
USES= bison gmake libtool pathfix pkgconfig sqlite:3 tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV= HAVE_UNIX98=1
USE_LDCONFIG= ${PREFIX}/lib/linuxsampler
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --disable-arts-driver
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= libjack.so:audio/jack
.else
CONFIGURE_ARGS+=--disable-jack-driver
.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= libasound.so:audio/alsa-lib
.else
CONFIGURE_ARGS+=--disable-alsa-driver
.endif
.if ${PORT_OPTIONS:MDSSI}
BUILD_DEPENDS+= dssi>=0:audio/dssi
RUN_DEPENDS+= dssi>=0:audio/dssi
PLIST_SUB+= DSSI=""
CPPFLAGS:= -I${LOCALBASE}/include/dssi ${CPPFLAGS}
.else
CONFIGURE_ENV+= ac_cv_header_dssi_h=no
PLIST_SUB+= DSSI="@comment "
.endif
.if ${PORT_OPTIONS:MLV2}
BUILD_DEPENDS+= lv2>=1.14.0_1:audio/lv2
RUN_DEPENDS+= lv2>=1.14.0_1:audio/lv2
PLIST_SUB+= LV2=""
.else
CONFIGURE_ENV+= ac_cv_header_lv2_h=no
PLIST_SUB+= LV2="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|CXX_CPU_SWITCH=.*|CXX_CPU_SWITCH=|g ; \
s|"lv2core"|"_lv2core_"|' ${WRKSRC}/configure
post-install:
@${TOUCH} ${STAGEDIR}${PREFIX}/lib/linuxsampler/plugins/.keep_me
.include <bsd.port.mk>
|