summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/libcanberra/Makefile31
1 files changed, 14 insertions, 17 deletions
diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile
index 8ab7b4297..9b7ae302b 100644
--- a/audio/libcanberra/Makefile
+++ b/audio/libcanberra/Makefile
@@ -1,9 +1,6 @@
-# New ports collection makefile for: libcanberra
-# Date created: 05 August 2008
-# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
-#
-# $FreeBSD$
-# $MCom: ports/audio/libcanberra/Makefile,v 1.29 2012/04/27 13:28:44 kwm Exp $
+# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
+# $FreeBSD: head/audio/libcanberra/Makefile 309632 2012-12-29 20:57:20Z mezz $
+# $MCom: ports/audio/libcanberra/Makefile,v 1.28 2011/06/11 18:55:56 mezz Exp $
PORTNAME= libcanberra
PORTVERSION= 0.28
@@ -14,10 +11,11 @@ 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
+
+LIB_DEPENDS= vorbisfile:${PORTSDIR}/audio/libvorbis
+
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack gnomehier gtk20 ltverhack gconf2
USE_LDCONFIG= yes
@@ -28,31 +26,30 @@ LDFLAGS+= -L${LOCALBASE}/lib
.if !defined(SLAVEPORT)
GCONF_SCHEMAS= libcanberra.schemas
-
-OPTIONS= PULSE "Enable Pulse Audio support" off \
- GSTREAMER "Enable GStreamer audio support" off
+.else
+OPTIONS_DEFINE= PULSEAUDIO GSTREAMER
.endif
PLIST_SUB= VERSION=${PORTVERSION}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if defined(SLAVEPORT)
USE_GNOME+= gtk30
-LIB_DEPENDS+= canberra.0:${PORTSDIR}/audio/libcanberra
+LIB_DEPENDS+= canberra:${PORTSDIR}/audio/libcanberra
CONFIGURE_ARGS+=--enable-gtk3
.else
CONFIGURE_ARGS+=--disable-gtk3
-.if !defined(WITHOUT_PULSE)
-LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
+.if ${PORT_OPTIONS:MPULSEAUDIO}
+LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio
PLIST_SUB+= PULSE=""
.else
CONFIGURE_ARGS+=--disable-pulse
PLIST_SUB+= PULSE="@comment "
.endif
-.if !defined(WITHOUT_GSTREAMER)
+.if ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER= yes
PLIST_SUB+= GSTREAMER=""
.else
@@ -66,4 +63,4 @@ post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>