summaryrefslogtreecommitdiff
path: root/multimedia/swfdec
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2009-03-10 21:45:00 +0000
committerjmcneill <jmcneill@pkgsrc.org>2009-03-10 21:45:00 +0000
commit1dead90a799819b6023227dd0b80ce1b6bdbd5dc (patch)
tree3741c62408fc2b1df056f16c146ebd31b476acc1 /multimedia/swfdec
parent34afdaea8d557d7575e23db25d72405850609dfe (diff)
downloadpkgsrc-1dead90a799819b6023227dd0b80ce1b6bdbd5dc.tar.gz
Add pulseaudio option, bump PKGREVISION.
Diffstat (limited to 'multimedia/swfdec')
-rw-r--r--multimedia/swfdec/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/multimedia/swfdec/Makefile b/multimedia/swfdec/Makefile
index 0894472fbad..5791b60e4e3 100644
--- a/multimedia/swfdec/Makefile
+++ b/multimedia/swfdec/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2009/02/23 18:05:04 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2009/03/10 21:45:00 jmcneill Exp $
#
DISTNAME= swfdec-0.8.4
+PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://swfdec.freedesktop.org/download/swfdec/0.8/
@@ -19,9 +20,22 @@ USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= swfdec-0.8.pc.in
PKGCONFIG_OVERRIDE= swfdec-gtk-0.8.pc.in
-CONFIGURE_ARGS+= --with-audio=none
CONFIGURE_ARGS+= --enable-gtk
+PKG_OPTIONS_VAR= swfdec
+PKG_SUPPORTED_OPTIONS= pulseaudio
+PKG_SUGGESTED_OPTIONS= pulseaudio
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIGURE_ARGS+= --with-audio=pulse
+.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../databases/gdbm/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-audio=none
+.endif
+
.include "../../devel/liboil/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"