Lines 6-76
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= fluidsynth |
8 |
PORTNAME= fluidsynth |
9 |
PORTVERSION= 1.1.1 |
9 |
PORTVERSION= 1.1.5 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= SAVANNAH/fluid |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} |
12 |
|
12 |
|
13 |
MAINTAINER= multimedia@FreeBSD.org |
13 |
MAINTAINER= multimedia@FreeBSD.org |
14 |
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications |
14 |
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications |
15 |
|
15 |
|
|
|
16 |
LICENSE= GPLv2 # (or later) |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
18 |
|
16 |
OPTIONS= JACK "Enable Jack audio support" On \ |
19 |
OPTIONS= JACK "Enable Jack audio support" On \ |
|
|
20 |
ALSA "Enable ALSA audio support" Off \ |
21 |
DBUS "Enable D-Bus support" Off \ |
17 |
LADSPA "Enable LADSPA audio support" Off \ |
22 |
LADSPA "Enable LADSPA audio support" Off \ |
|
|
23 |
LASH "Enable LASH audio support" Off \ |
18 |
PORTAUDIO "Enable PortAudio support" Off \ |
24 |
PORTAUDIO "Enable PortAudio support" Off \ |
19 |
PULSEAUDIO "Enable PulseAudio support" Off \ |
25 |
PULSEAUDIO "Enable PulseAudio support" Off \ |
20 |
SNDFILE "Enable Libsndfile support" Off |
26 |
SNDFILE "Enable Libsndfile support" Off |
21 |
|
27 |
|
22 |
USE_GNOME= glib20 gnomehack pkgconfig |
28 |
USE_BZIP2= yes |
23 |
USE_GMAKE= yes |
29 |
USE_GNOME= glib20 pkgconfig |
24 |
USE_AUTOTOOLS= libtool |
30 |
USE_CMAKE= yes |
25 |
CONFIGURE_ARGS= --disable-alsa-support --disable-midishare \ |
31 |
CMAKE_ARGS= -Denable-ladcca:BOOL=FALSE \ |
26 |
--disable-coreaudio --disable-coremidi \ |
32 |
-Denable-midishare:BOOL=FALSE |
27 |
--disable-dart --disable-lash \ |
|
|
28 |
--disable-ladcca |
29 |
USE_LDCONFIG= yes |
33 |
USE_LDCONFIG= yes |
30 |
|
34 |
|
31 |
MAN1= fluidsynth.1 |
35 |
CFLAGS+= ${PTHREAD_CFLAGS} |
|
|
36 |
LDFLAGS+= ${PTHREAD_LIBS} |
32 |
|
37 |
|
33 |
CPPFLAGS+= ${PA2_CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
38 |
MAN1= fluidsynth.1 |
34 |
LDFLAGS+= ${PA2_LIBS} -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
|
|
35 |
|
39 |
|
36 |
.include <bsd.port.pre.mk> |
40 |
.include <bsd.port.pre.mk> |
37 |
|
41 |
|
38 |
.if defined(WITH_JACK) |
42 |
.if defined(WITH_JACK) |
39 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
43 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
40 |
.else |
44 |
.else |
41 |
CONFIGURE_ARGS+= --disable-jack-support |
45 |
CMAKE_ARGS+= -Denable-jack:BOOL=FALSE |
|
|
46 |
.endif |
47 |
|
48 |
.if defined(WITH_ALSA) |
49 |
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib |
50 |
.else |
51 |
CMAKE_ARGS+= -Denable-alsa:BOOL=FALSE |
52 |
.endif |
53 |
|
54 |
.if defined(WITH_DBUS) |
55 |
LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus |
56 |
.else |
57 |
CMAKE_ARGS+= -Denable-dbus:BOOL=FALSE |
42 |
.endif |
58 |
.endif |
43 |
|
59 |
|
44 |
.if defined(WITH_LADSPA) |
60 |
.if defined(WITH_LADSPA) |
45 |
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
61 |
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
46 |
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
62 |
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
47 |
CONFIGURE_ARGS+= --enable-ladspa |
63 |
CMAKE_ARGS+= -Denable-ladspa:BOOL=TRUE |
|
|
64 |
.endif |
65 |
|
66 |
.if defined(WITH_LASH) |
67 |
LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash |
68 |
.else |
69 |
CMAKE_ARGS+= -Denable-lash:BOOL=FALSE |
48 |
.endif |
70 |
.endif |
49 |
|
71 |
|
50 |
.if defined(WITH_PORTAUDIO) |
72 |
.if defined(WITH_PORTAUDIO) |
51 |
BUILD_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
73 |
BUILD_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
52 |
RUN_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
74 |
RUN_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
53 |
PA2_CFLAGS= `pkg-config --cflags-only-I portaudio-2.0` |
75 |
CMAKE_ARGS+= -Denable-portaudio:BOOL=TRUE |
54 |
PA2_LIBS= `pkg-config --libs-only-L portaudio-2.0` |
|
|
55 |
.else |
56 |
CONFIGURE_ARGS+= --disable-portaudio-support |
57 |
.endif |
76 |
.endif |
58 |
|
77 |
|
59 |
.if defined(WITH_PULSEAUDIO) |
78 |
.if defined(WITH_PULSEAUDIO) |
60 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
79 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
61 |
.else |
80 |
.else |
62 |
CONFIGURE_ARGS+= --disable-pulse-support |
81 |
CMAKE_ARGS+= -Denable-pulseaudio:BOOL=FALSE |
63 |
.endif |
82 |
.endif |
64 |
|
83 |
|
65 |
.if defined(WITH_SNDFILE) |
84 |
.if defined(WITH_SNDFILE) |
66 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
85 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
67 |
.else |
86 |
.else |
68 |
CONFIGURE_ARGS+= --disable-libsndfile-support |
87 |
CMAKE_ARGS+= -Denable-libsndfile:BOOL=FALSE |
69 |
.endif |
88 |
.endif |
70 |
|
89 |
|
71 |
post-patch: |
90 |
post-patch: |
72 |
@${REINPLACE_CMD} -e 's| -O2 | |g ; \ |
91 |
@${REINPLACE_CMD} -e \ |
73 |
s|== "yes"|= "yes"|g' ${WRKSRC}/configure |
92 |
'/Linux/s|^|#| ; \ |
74 |
@${REINPLACE_CMD} -e '197 s/,/ /' ${WRKSRC}/include/fluidsynth/synth.h |
93 |
/CMAKE_C_FLAGS_RELEASE/s|-O2|| ; \ |
|
|
94 |
s|enable_midishare|enable-midishare| ; \ |
95 |
s|$${LIB_INSTALL_DIR}$${LIB_SUFFIX}/pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' ${WRKSRC}/CMakeLists.txt |
96 |
@${REINPLACE_CMD} -e \ |
97 |
's|share/man|man|' ${WRKSRC}/cmake_admin/DefaultDirs.cmake |
75 |
|
98 |
|
76 |
.include <bsd.port.post.mk> |
99 |
.include <bsd.port.post.mk> |