summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-08-16 01:51:44 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-08-16 01:51:44 +0800
commit34fb9c1d27a1c4e1152adf22b999622bcde99884 (patch)
treeef9698d2dff0944b8d48ba43a39a3930779cc369
parent237c72f616065b40f91f7b2ba9e8bf85b46246d2 (diff)
downloadmarcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar.gz
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar.bz2
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar.lz
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar.xz
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.tar.zst
marcuscom-ports-34fb9c1d27a1c4e1152adf22b999622bcde99884.zip
Add optional pulseaudio support.
Submitted by: Eric L. Chen <d9364104@mail.nchu.edu.tw> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11294 df743ca5-7f9a-e211-a948-0013205c9059
-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>