blob: 6c1464db81aebcb236f3e9d5775014d116d8e20b (
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
82
83
84
85
86
87
88
89
90
91
92
|
# Created by: Juha Nygard <juha.nygard1@netikka.fi>
# $FreeBSD$
PORTNAME= fluidsynth
PORTVERSION= 1.1.6
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications
LICENSE= LGPL20
OPTIONS_DEFINE= JACK ALSA DBUS LADSPA LASH PORTAUDIO PULSEAUDIO SNDFILE
OPTIONS_DEFAULT= JACK
USE_BZIP2= yes
NO_STAGE= yes
USE_GNOME= glib20
USES= cmake pkgconfig
CMAKE_ARGS= -Denable-ladcca:BOOL=FALSE \
-Denable-midishare:BOOL=FALSE
USE_LDCONFIG= yes
CFLAGS+= ${PA_CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= ${PA_LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAN1= fluidsynth.1
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
.else
CMAKE_ARGS+= -Denable-jack:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
.else
CMAKE_ARGS+= -Denable-alsa:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS+= dbus-1:${PORTSDIR}/devel/dbus
.else
CMAKE_ARGS+= -Denable-dbus:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MLADSPA}
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
CMAKE_ARGS+= -Denable-ladspa:BOOL=TRUE
.endif
.if ${PORT_OPTIONS:MLASH}
LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash
.else
CMAKE_ARGS+= -Denable-lash:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MPORTAUDIO}
BUILD_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2
RUN_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2
CMAKE_ARGS+= -Denable-portaudio:BOOL=TRUE
PA_CFLAGS= -I${LOCALBASE}/include/portaudio2
PA_LDFLAGS= -L${LOCALBASE}/lib/portaudio2
.endif
.if ${PORT_OPTIONS:MPULSEAUDIO}
LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio
.else
CMAKE_ARGS+= -Denable-pulseaudio:BOOL=FALSE
.endif
.if ${PORT_OPTIONS:MSNDFILE}
LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile
.else
CMAKE_ARGS+= -Denable-libsndfile:BOOL=FALSE
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/Linux/s|^|#| ; \
/_init_lib_suffix/s|"64"|""| ; \
/CMAKE_C_FLAGS_RELEASE/s|-O2|| ; \
s|enable_midishare|enable-midishare| ; \
s|$${LIB_INSTALL_DIR}$${LIB_SUFFIX}/pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e \
's|share/man|man|' ${WRKSRC}/cmake_admin/DefaultDirs.cmake
.include <bsd.port.post.mk>
|