aboutsummaryrefslogtreecommitdiff
path: root/audio/libao
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libao')
-rw-r--r--audio/libao/Makefile41
-rw-r--r--audio/libao/files/patch-Makefile.in14
-rw-r--r--audio/libao/pkg-plist1
3 files changed, 10 insertions, 46 deletions
diff --git a/audio/libao/Makefile b/audio/libao/Makefile
index b51767693a9c..00dc531c31df 100644
--- a/audio/libao/Makefile
+++ b/audio/libao/Makefile
@@ -10,48 +10,25 @@ MASTER_SITES= http://downloads.xiph.org/releases/ao/
MAINTAINER= naddy@FreeBSD.org
COMMENT= Portable audio output library
-USE_AUTOTOOLS= libtool
-NO_STAGE= yes
-WANT_GNOME= yes
USES= pathfix pkgconfig
-GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-arts
-MAN5= libao.conf.5
-
OPTIONS_DEFINE= DOCS ESOUND NAS PULSEAUDIO
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+NAS_LIB_DEPENDS=libaudio.so:${PORTSDIR}/audio/nas
+NAS_CONFIGURE_ENABLE= nas
-.if ${PORT_OPTIONS:MDOCS}
-MAKE_ENV= DOC=doc
-.else
-MAKE_ENV= DOC=""
-.endif
+PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_CONFIGURE_ENABLE= pulse
+ESOUND_CONFIGURE_ENABLE=esd
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MESOUND}
USE_GNOME+= esound
-PLIST_SUB+= ESOUND=""
-.else
-CONFIGURE_ARGS+=--disable-esd
-PLIST_SUB+= ESOUND="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MNAS}
-LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
-PLIST_SUB+= NAS=""
-.else
-CONFIGURE_ARGS+=--disable-nas
-PLIST_SUB+= NAS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-LIB_DEPENDS+= pulse-simple.0:${PORTSDIR}/audio/pulseaudio
-PLIST_SUB+= PULSEAUDIO=""
-.else
-CONFIGURE_ARGS+=--disable-pulse
-PLIST_SUB+= PULSEAUDIO="@comment "
.endif
post-patch:
diff --git a/audio/libao/files/patch-Makefile.in b/audio/libao/files/patch-Makefile.in
deleted file mode 100644
index 493ebf83cc0c..000000000000
--- a/audio/libao/files/patch-Makefile.in
+++ /dev/null
@@ -1,14 +0,0 @@
-
-$FreeBSD$
-
---- Makefile.in.orig 2007-07-14 18:06:32.000000000 -0400
-+++ Makefile.in 2007-07-14 18:06:52.000000000 -0400
-@@ -225,7 +225,7 @@ target_alias = @target_alias@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- AUTOMAKE_OPTIONS = foreign 1.6 dist-zip
--SUBDIRS = src include doc
-+SUBDIRS = src include $(DOC)
- m4datadir = $(datadir)/aclocal
- m4data_DATA = ao.m4
- pkgconfigdir = $(prefix)/libdata/pkgconfig
diff --git a/audio/libao/pkg-plist b/audio/libao/pkg-plist
index 19a6e415cdc1..fed280d2eb59 100644
--- a/audio/libao/pkg-plist
+++ b/audio/libao/pkg-plist
@@ -15,6 +15,7 @@ lib/ao/plugins-4/liboss.so
%%PULSEAUDIO%%lib/ao/plugins-4/libpulse.la
%%PULSEAUDIO%%lib/ao/plugins-4/libpulse.so
libdata/pkgconfig/ao.pc
+man/man5/libao.conf.5.gz
share/aclocal/ao.m4
%%PORTDOCS%%%%DOCSDIR%%/ao_append_option.html
%%PORTDOCS%%%%DOCSDIR%%/ao_close.html