summaryrefslogtreecommitdiffstats
path: root/audio/libcanberra/Makefile
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-07-23 21:11:15 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-07-23 21:11:15 +0800
commita44122b1c6826e383fe51e8042099e22ed00f16c (patch)
treef44f1193ba4bb457f102b9f379b107b66d977edf /audio/libcanberra/Makefile
parent695270a10aafcaba879fd5cd484955d041b45f63 (diff)
downloadmarcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar.gz
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar.bz2
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar.lz
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar.xz
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.tar.zst
marcuscom-ports-a44122b1c6826e383fe51e8042099e22ed00f16c.zip
Update to 0.25.
Now with gtk3 module as slave port. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14353 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio/libcanberra/Makefile')
-rw-r--r--audio/libcanberra/Makefile70
1 files changed, 70 insertions, 0 deletions
diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile
new file mode 100644
index 000000000..d2357e320
--- /dev/null
+++ b/audio/libcanberra/Makefile
@@ -0,0 +1,70 @@
+# New ports collection makefile for: libcanberra
+# Date created: 05 August 2008
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/audio/libcanberra/Makefile,v 1.18 2010/06/06 20:43:33 naddy Exp $
+# $MCom$
+#
+
+PORTNAME= libcanberra
+PORTVERSION= 0.25
+PORTREVISION?= 0
+CATEGORIES= audio devel
+MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Implementation of the Freedesktop sound theme spec
+
+LIB_DEPENDS= vorbisfile.6:${PORTSDIR}/audio/libvorbis
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/LGPL
+USE_GMAKE= yes
+USE_GNOME= gnomeprefix gnomehack gtk20 ltverhack gconf2
+USE_LDCONFIG= yes
+USE_AUTOTOOLS= libtool:22 libltdl:22
+CONFIGURE_ARGS= --disable-lynx --disable-tdb
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if !defined(SLAVEPORT)
+GCONF_SCHEMAS= libcanberra.schemas
+
+OPTIONS= PULSE "Enable Pulse Audio support" off \
+ GSTREAMER "Enable GStreamer audio support" off
+.endif
+
+PLIST_SUB= VERSION=${PORTVERSION}
+
+.include <bsd.port.pre.mk>
+
+.if defined(SLAVEPORT)
+USE_GNOME+= gtk30
+LIB_DEPENDS+= canberra.0:${PORTSDIR}/audio/libcanberra
+CONFIGURE_ARGS+=--enable-gtk3
+.else
+CONFIGURE_ARGS+=--disable-gtk3
+
+.if !defined(WITHOUT_PULSE)
+LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
+PLIST_SUB+= PULSE=""
+.else
+CONFIGURE_ARGS+=--disable-pulse
+PLIST_SUB+= PULSE="@comment "
+.endif
+
+.if !defined(WITHOUT_GSTREAMER)
+USE_GSTREAMER= yes
+PLIST_SUB+= GSTREAMER=""
+.else
+CONFIGURE_ARGS+=--disable-gstreamer
+PLIST_SUB+= GSTREAMER="@comment "
+.endif
+
+.endif # end SLAVEPORT
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>