summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/swfdec/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/swfdec/Makefile b/graphics/swfdec/Makefile
index 37dd0627d..26dfc456d 100644
--- a/graphics/swfdec/Makefile
+++ b/graphics/swfdec/Makefile
@@ -22,14 +22,24 @@ USE_LDCONFIG= yes
USE_GNOME= gnomehack gtk20 ltverhack
USE_GSTREAMER= core good mp3 ffmpeg
USE_AUTOTOOLS= libtool:15
-CONFIGURE_ARGS= --with-audio=oss
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-Wl,-Bsymbolic -L${LOCALBASE}/lib"
PLIST_SUB= VERSION=${PORTVERSION:R}
+OPTIONS= PULSEAUDIO "Enable the PulseAudio sound module" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PULSEAUDIO)
+LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
+CONFIGURE_ARGS+= --with-audio=pulse
+.else
+CONFIGURE_ARGS+= --with-audio=oss
+.endif
+
post-extract:
@${CP} ${FILESDIR}/swfdec_playback_oss.c \
${WRKSRC}/swfdec-gtk
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>