aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-10-04 16:57:30 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-10-04 16:57:30 +0000
commit42f94ef9b4a539be128fc2af5e4ceaf0f6b2439f (patch)
tree62221a663ff309e6283a29b6312c0c776c860b30 /audio
parent7176943928ae36a4088a94fceaa2c45f377e7af7 (diff)
downloadports-42f94ef9b4a539be128fc2af5e4ceaf0f6b2439f.tar.gz
ports-42f94ef9b4a539be128fc2af5e4ceaf0f6b2439f.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/fluidsynth/Makefile89
-rw-r--r--audio/fluidsynth/pkg-plist1
2 files changed, 32 insertions, 58 deletions
diff --git a/audio/fluidsynth/Makefile b/audio/fluidsynth/Makefile
index 6c1464db81ae..e3df915cdfd9 100644
--- a/audio/fluidsynth/Makefile
+++ b/audio/fluidsynth/Makefile
@@ -15,69 +15,42 @@ 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
+CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+
+JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
+JACK_CMAKE_OFF= -Denable-jack:BOOL=FALSE
+
+ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
+ALSA_CMAKE_OFF= -Denable-alsa:BOOL=FALSE
+
+DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus
+DBUS_CMAKE_OFF= -Denable-dbus:BOOL=FALSE
+
+LADSPA_BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+LADSPA_RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+LADSPA_CMAKE_ON= -Denable-ladspa:BOOL=TRUE
+
+LASH_LIB_DEPENDS= liblash.so:${PORTSDIR}/audio/lash
+LASH_CMAKE_OFF= -Denable-lash:BOOL=FALSE
+
+PORTAUDIO_BUILD_DEPENDS= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2
+PORTAUDIO_RUN_DEPENDS= ${LOCALBASE}/include/portaudio2/portaudio.h:${PORTSDIR}/audio/portaudio2
+PORTAUDIO_CMAKE_ON= -Denable-portaudio:BOOL=TRUE
+PORTAUDIO_CFLAGS= -I${LOCALBASE}/include/portaudio2
+PORTAUDIO_LDFLAGS= -L${LOCALBASE}/lib/portaudio2
+
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_CMAKE_OFF= -Denable-pulseaudio:BOOL=FALSE
+
+SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
+SNDFILE_CMAKe_OFF= -Denable-libsndfile:BOOL=FALSE
post-patch:
@${REINPLACE_CMD} -e \
@@ -89,4 +62,4 @@ post-patch:
@${REINPLACE_CMD} -e \
's|share/man|man|' ${WRKSRC}/cmake_admin/DefaultDirs.cmake
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/fluidsynth/pkg-plist b/audio/fluidsynth/pkg-plist
index c27f7d326196..45c90dc1bd9f 100644
--- a/audio/fluidsynth/pkg-plist
+++ b/audio/fluidsynth/pkg-plist
@@ -21,4 +21,5 @@ lib/libfluidsynth.so
lib/libfluidsynth.so.1
lib/libfluidsynth.so.1.5.2
libdata/pkgconfig/fluidsynth.pc
+man/man1/fluidsynth.1.gz
@dirrm include/fluidsynth