summaryrefslogtreecommitdiffstats
path: root/audio/libao
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-07-15 06:09:23 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-07-15 06:09:23 +0800
commit44e9caae84d159c357a6051e173a280c702b875e (patch)
treeea82024d79fe108a86bfea4c32ddd61d5ee6e17f /audio/libao
parentb84886b825b3d65494bfa6fabb379b4f5e4e67a8 (diff)
downloadmarcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar.gz
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar.bz2
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar.lz
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar.xz
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.tar.zst
marcuscom-ports-44e9caae84d159c357a6051e173a280c702b875e.zip
Add libao since it does not patch correctly with our new hacks.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9220 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio/libao')
-rw-r--r--audio/libao/Makefile75
-rw-r--r--audio/libao/distinfo3
-rw-r--r--audio/libao/files/patch-Makefile.in11
-rw-r--r--audio/libao/files/patch-configure45
-rw-r--r--audio/libao/files/patch-doc_Makefile.in14
-rw-r--r--audio/libao/files/patch-src_Makefile.in14
-rw-r--r--audio/libao/pkg-descr12
-rw-r--r--audio/libao/pkg-plist60
8 files changed, 234 insertions, 0 deletions
diff --git a/audio/libao/Makefile b/audio/libao/Makefile
new file mode 100644
index 000000000..c8c6018b5
--- /dev/null
+++ b/audio/libao/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: libao
+# Date created: 18 October 2000
+# Whom: t.vanklaveren@student.utwente.nl
+#
+# $FreeBSD: ports/audio/libao/Makefile,v 1.39 2007/07/14 20:06:15 naddy Exp $
+#
+
+PORTNAME= libao
+PORTVERSION= 0.8.8
+CATEGORIES= audio
+MASTER_SITES= http://downloads.xiph.org/releases/ao/
+
+MAINTAINER= naddy@FreeBSD.org
+COMMENT= Portable audio output library
+
+USE_AUTOTOOLS= libtool:15
+WANT_GNOME= yes
+USE_GNOME= gnomehack pkgconfig
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --mandir="${PREFIX}/man"
+INSTALLS_SHLIB= yes
+
+.if defined(NOPORTDOCS)
+MAKE_ENV= DOC=""
+.else
+MAKE_ENV= DOC=doc
+.endif
+
+MAN5= libao.conf.5
+
+OPTIONS= ARTS "Enable the aRts module" off \
+ ESOUND "Enable the EsounD module" off \
+ NAS "Enable the Network Audio System module" off \
+ PULSEAUDIO "Enable the PulseAudio module" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_ARTS)
+LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
+.else
+CONFIGURE_ARGS+=--disable-arts
+.endif
+
+.if defined(WITH_ESOUND)
+USE_GNOME+= esound
+.else
+CONFIGURE_ARGS+=--disable-esd
+.endif
+
+.if defined(WITH_NAS)
+LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
+.else
+CONFIGURE_ARGS+=--disable-nas
+.endif
+
+.if defined(WITH_PULSEAUDIO)
+LIB_DEPENDS+= pulse-simple.0:${PORTSDIR}/audio/pulseaudio
+.else
+CONFIGURE_ARGS+=--disable-pulse
+.endif
+
+.for m in ARTS ESOUND NAS PULSEAUDIO
+. if defined(WITH_$m)
+PLIST_SUB+= $m=""
+. else
+PLIST_SUB+= $m="@comment "
+. endif
+.endfor
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc/libao.conf|${PREFIX}&|' \
+ ${WRKSRC}/libao.conf.5 ${WRKSRC}/src/ao_private.h \
+ ${WRKSRC}/doc/config.html
+
+.include <bsd.port.post.mk>
diff --git a/audio/libao/distinfo b/audio/libao/distinfo
new file mode 100644
index 000000000..568dae53f
--- /dev/null
+++ b/audio/libao/distinfo
@@ -0,0 +1,3 @@
+MD5 (libao-0.8.8.tar.gz) = b92cba3cbcf1ee9bc221118a85d23dcd
+SHA256 (libao-0.8.8.tar.gz) = e52e05af6b10f42d2ee9845df1a581bf2b352060eabf7946aee0a600c3878954
+SIZE (libao-0.8.8.tar.gz) = 405619
diff --git a/audio/libao/files/patch-Makefile.in b/audio/libao/files/patch-Makefile.in
new file mode 100644
index 000000000..71fbe45f4
--- /dev/null
+++ b/audio/libao/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- 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/files/patch-configure b/audio/libao/files/patch-configure
new file mode 100644
index 000000000..aaedf4755
--- /dev/null
+++ b/audio/libao/files/patch-configure
@@ -0,0 +1,45 @@
+
+$FreeBSD: ports/audio/libao/files/patch-configure,v 1.7 2007/07/14 20:06:15 naddy Exp $
+
+--- configure.orig
++++ configure
+@@ -20076,7 +20076,7 @@
+ *)
+ PLUGIN_LDFLAGS="-export-dynamic -avoid-version"
+ DEBUG="-g"
+- CFLAGS="-O"
++ CFLAGS=""
+ PROFILE="-g -p" ;;
+ esac
+ else
+@@ -20099,9 +20099,9 @@
+ PROFILE="-g -pg -D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore" ;;
+ *)
+ PLUGIN_LDFLAGS="-export-dynamic -avoid-version"
+- DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
+- CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
+- PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
++ DEBUG="-g -Wall -fsigned-char"
++ CFLAGS="-fsigned-char"
++ PROFILE="-g -pg -fsigned-char" ;;
+ esac
+ fi
+ CFLAGS="$CFLAGS $cflags_save"
+@@ -24840,7 +24840,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laudio -lXau $X_LIBS $LIBS"
++LIBS="-laudio -lXau -lXt -lm $X_LIBS $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -25055,7 +25055,7 @@
+
+ if test "x$have_nas" = xyes; then
+ NAS_CFLAGS="$X_CFLAGS"
+- NAS_LIBS="-laudio -lXau $X_LIBS"
++ NAS_LIBS="-laudio -lXau -lXt -lm $X_LIBS"
+ else
+ NAS_CFLAGS=""
+ NAS_LIBS=""
diff --git a/audio/libao/files/patch-doc_Makefile.in b/audio/libao/files/patch-doc_Makefile.in
new file mode 100644
index 000000000..fb2b909cc
--- /dev/null
+++ b/audio/libao/files/patch-doc_Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD: ports/audio/libao/files/patch-doc_Makefile.in,v 1.3 2007/07/14 20:06:15 naddy Exp $
+
+--- doc/Makefile.in.orig
++++ doc/Makefile.in
+@@ -161,7 +161,7 @@
+ builddir = @builddir@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
++docdir = $(datadir)/doc/$(PACKAGE)
+ dvidir = @dvidir@
+ exec_prefix = @exec_prefix@
+ host = @host@
diff --git a/audio/libao/files/patch-src_Makefile.in b/audio/libao/files/patch-src_Makefile.in
new file mode 100644
index 000000000..50910a376
--- /dev/null
+++ b/audio/libao/files/patch-src_Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD: ports/audio/libao/files/patch-src_Makefile.in,v 1.3 2007/07/14 20:06:15 naddy Exp $
+
+--- src/Makefile.in.orig
++++ src/Makefile.in
+@@ -364,7 +364,7 @@
+ else \
+ local_target="$$target"; \
+ fi; \
+- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
++ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) LIBTOOL="$(LIBTOOL) --tag=disable-static" $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
diff --git a/audio/libao/pkg-descr b/audio/libao/pkg-descr
new file mode 100644
index 000000000..adf540f11
--- /dev/null
+++ b/audio/libao/pkg-descr
@@ -0,0 +1,12 @@
+libao is a cross-platform audio library that allows programs to
+output audio using a simple API on a wide variety of platforms.
+On FreeBSD, it currently supports:
+ * null output
+ * raw output
+ * AU files
+ * WAV files
+ * OSS (Open Sound System)
+ * ESD (ESounD or Enlightened Sound Daemon)
+ * aRts (KDE sound server)
+
+WWW: http://www.xiph.org/ao/
diff --git a/audio/libao/pkg-plist b/audio/libao/pkg-plist
new file mode 100644
index 000000000..d121f1ca5
--- /dev/null
+++ b/audio/libao/pkg-plist
@@ -0,0 +1,60 @@
+@comment $FreeBSD: ports/audio/libao/pkg-plist,v 1.19 2007/07/14 20:06:15 naddy Exp $
+include/ao/ao.h
+include/ao/os_types.h
+include/ao/plugin.h
+lib/libao.a
+lib/libao.la
+lib/libao.so
+lib/libao.so.3
+%%ARTS%%lib/ao/plugins-2/libarts.la
+%%ARTS%%lib/ao/plugins-2/libarts.so
+lib/ao/plugins-2/liboss.la
+lib/ao/plugins-2/liboss.so
+%%ESOUND%%lib/ao/plugins-2/libesd.la
+%%ESOUND%%lib/ao/plugins-2/libesd.so
+%%NAS%%lib/ao/plugins-2/libnas.la
+%%NAS%%lib/ao/plugins-2/libnas.so
+%%PULSEAUDIO%%lib/ao/plugins-2/libpulse.la
+%%PULSEAUDIO%%lib/ao/plugins-2/libpulse.so
+libdata/pkgconfig/ao.pc
+share/aclocal/ao.m4
+%%PORTDOCS%%%%DOCSDIR%%/ao_append_option.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_close.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_default_driver_id.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_device.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_driver_id.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_driver_info.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_driver_info_list.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_example.c
+%%PORTDOCS%%%%DOCSDIR%%/ao_file_extension.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_free_options.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_info.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_initialize.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_is_big_endian.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_open_file.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_open_live.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_option.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_play.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_close.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_device_clear.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_device_init.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_driver_info.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_file_extension.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_open.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_play.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_set_option.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_plugin_test.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_sample_format.html
+%%PORTDOCS%%%%DOCSDIR%%/ao_shutdown.html
+%%PORTDOCS%%%%DOCSDIR%%/config.html
+%%PORTDOCS%%%%DOCSDIR%%/drivers.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/libao-api.html
+%%PORTDOCS%%%%DOCSDIR%%/overview.html
+%%PORTDOCS%%%%DOCSDIR%%/plugin-api.html
+%%PORTDOCS%%%%DOCSDIR%%/plugin-overview.html
+%%PORTDOCS%%%%DOCSDIR%%/style.css
+@dirrm include/ao
+@dirrm lib/ao/plugins-2
+@dirrm lib/ao
+%%PORTDOCS%%@dirrm %%DOCSDIR%%