Lines 6-35
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= fluidsynth |
8 |
PORTNAME= fluidsynth |
9 |
PORTVERSION= 1.0.8 |
9 |
PORTVERSION= 1.1.1 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= ${MASTER_SITE_SAVANNAH} |
11 |
MASTER_SITES= SAVANNAH/fluid |
12 |
MASTER_SITE_SUBDIR= fluid |
|
|
13 |
|
12 |
|
14 |
MAINTAINER= multimedia@FreeBSD.org |
13 |
MAINTAINER= multimedia@FreeBSD.org |
15 |
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications |
14 |
COMMENT= Real-time software synthesizer based on the SoundFont 2 specifications |
16 |
|
15 |
|
17 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//} |
16 |
OPTIONS= JACK "Enable Jack audio support" On \ |
|
|
17 |
LADSPA "Enable LADSPA audio support" Off \ |
18 |
PORTAUDIO "Enable PortAudio support" Off \ |
19 |
PULSEAUDIO "Enable PulseAudio support" Off \ |
20 |
SNDFILE "Enable Libsndfile support" Off |
18 |
|
21 |
|
19 |
USE_GNOME= gnomehack gnometarget pkgconfig |
22 |
USE_GNOME= glib20 gnomehack pkgconfig |
20 |
USE_GMAKE= yes |
23 |
USE_GMAKE= yes |
21 |
GNU_CONFIGURE= yes |
24 |
USE_AUTOTOOLS= libtool:22 |
22 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
25 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
23 |
CONFIGURE_ARGS= --disable-lash --disable-ladcca |
26 |
CONFIGURE_ARGS= --disable-alsa-support --disable-midishare \ |
|
|
27 |
--disable-coreaudio --disable-coremidi \ |
28 |
--disable-dart --disable-lash \ |
29 |
--disable-ladcca |
24 |
USE_LDCONFIG= yes |
30 |
USE_LDCONFIG= yes |
25 |
|
31 |
|
26 |
MAN1= fluidsynth.1 |
32 |
MAN1= fluidsynth.1 |
27 |
|
33 |
|
28 |
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
34 |
CPPFLAGS= ${PA2_CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
29 |
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
35 |
LDFLAGS= ${PA2_LIBS} -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
30 |
|
|
|
31 |
OPTIONS= JACK "Enable Jack audio support" On \ |
32 |
LADSPA "Enable LADSPA audio support" Off |
33 |
|
36 |
|
34 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
35 |
|
38 |
|
Lines 45-50
Link Here
|
45 |
CONFIGURE_ARGS+= --enable-ladspa |
48 |
CONFIGURE_ARGS+= --enable-ladspa |
46 |
.endif |
49 |
.endif |
47 |
|
50 |
|
|
|
51 |
.if defined(WITH_PORTAUDIO) |
52 |
BUILD_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
53 |
RUN_DEPENDS+= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2 |
54 |
PA2_CFLAGS= `pkg-config --cflags-only-I portaudio-2.0` |
55 |
PA2_LIBS= `pkg-config --libs-only-L portaudio-2.0` |
56 |
.else |
57 |
CONFIGURE_ARGS+= --disable-portaudio-support |
58 |
.endif |
59 |
|
60 |
.if defined(WITH_PULSEAUDIO) |
61 |
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio |
62 |
.else |
63 |
CONFIGURE_ARGS+= --disable-pulse-support |
64 |
.endif |
65 |
|
66 |
.if defined(WITH_SNDFILE) |
67 |
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile |
68 |
.else |
69 |
CONFIGURE_ARGS+= --disable-libsndfile-support |
70 |
.endif |
71 |
|
48 |
post-patch: |
72 |
post-patch: |
49 |
@${REINPLACE_CMD} -e 's| -O2 | |g ; \ |
73 |
@${REINPLACE_CMD} -e 's| -O2 | |g ; \ |
50 |
s|== "yes"|= "yes"|g' ${WRKSRC}/configure |
74 |
s|== "yes"|= "yes"|g' ${WRKSRC}/configure |