diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-23 21:11:15 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-23 21:11:15 +0800 |
commit | a44122b1c6826e383fe51e8042099e22ed00f16c (patch) | |
tree | f44f1193ba4bb457f102b9f379b107b66d977edf /audio/libcanberra | |
parent | 695270a10aafcaba879fd5cd484955d041b45f63 (diff) | |
download | marcuscom-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')
-rw-r--r-- | audio/libcanberra/Makefile | 70 | ||||
-rw-r--r-- | audio/libcanberra/distinfo | 3 | ||||
-rw-r--r-- | audio/libcanberra/files/patch-configure | 15 | ||||
-rw-r--r-- | audio/libcanberra/files/patch-src_Makefile.in | 56 | ||||
-rw-r--r-- | audio/libcanberra/files/patch-src_oss.c | 11 | ||||
-rw-r--r-- | audio/libcanberra/pkg-descr | 4 | ||||
-rw-r--r-- | audio/libcanberra/pkg-plist | 55 |
7 files changed, 214 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> diff --git a/audio/libcanberra/distinfo b/audio/libcanberra/distinfo new file mode 100644 index 000000000..6631ad47b --- /dev/null +++ b/audio/libcanberra/distinfo @@ -0,0 +1,3 @@ +MD5 (libcanberra-0.25.tar.gz) = d7a158d22d0b44fb2a67aadae74e28ab +SHA256 (libcanberra-0.25.tar.gz) = 46329eda4c877206232d4c906e8f5f401518cec52859395cde3a9e39ea97553c +SIZE (libcanberra-0.25.tar.gz) = 463014 diff --git a/audio/libcanberra/files/patch-configure b/audio/libcanberra/files/patch-configure new file mode 100644 index 000000000..c2a0d3cc8 --- /dev/null +++ b/audio/libcanberra/files/patch-configure @@ -0,0 +1,15 @@ +--- configure.orig 2010-07-14 13:00:51.000000000 +0200 ++++ configure 2010-07-14 13:02:26.000000000 +0200 +@@ -3273,12 +3273,6 @@ + AM_BACKSLASH='\' + + +-if type -p stow > /dev/null && test -d /usr/local/stow ; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 +-$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} +- ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" +-fi +- + #### Checks for programs. #### + + diff --git a/audio/libcanberra/files/patch-src_Makefile.in b/audio/libcanberra/files/patch-src_Makefile.in new file mode 100644 index 000000000..12688c7eb --- /dev/null +++ b/audio/libcanberra/files/patch-src_Makefile.in @@ -0,0 +1,56 @@ +--- src/Makefile.in.orig 2010-07-23 15:03:55.000000000 +0200 ++++ src/Makefile.in 2010-07-23 15:04:54.000000000 +0200 +@@ -238,7 +238,7 @@ + $(libcanberra_gtk_la_LDFLAGS) $(LDFLAGS) -o $@ + @HAVE_GTK_TRUE@am_libcanberra_gtk_la_rpath = -rpath $(libdir) + @HAVE_GTK3_TRUE@libcanberra_gtk3_module_la_DEPENDENCIES = \ +-@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) libcanberra.la \ ++@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) \ + @HAVE_GTK3_TRUE@ libcanberra-gtk3.la + am__libcanberra_gtk3_module_la_SOURCES_DIST = canberra-gtk-module.c + @HAVE_GTK3_TRUE@am_libcanberra_gtk3_module_la_OBJECTS = libcanberra_gtk3_module_la-canberra-gtk-module.lo +@@ -251,7 +251,7 @@ + @HAVE_GTK3_TRUE@am_libcanberra_gtk3_module_la_rpath = -rpath \ + @HAVE_GTK3_TRUE@ $(gtk3moduledir) + @HAVE_GTK3_TRUE@libcanberra_gtk3_la_DEPENDENCIES = \ +-@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) libcanberra.la ++@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) + am__libcanberra_gtk3_la_SOURCES_DIST = canberra-gtk.h canberra-gtk.c + @HAVE_GTK3_TRUE@am_libcanberra_gtk3_la_OBJECTS = \ + @HAVE_GTK3_TRUE@ libcanberra_gtk3_la-canberra-gtk.lo +@@ -360,7 +360,7 @@ + @HAVE_GTK3_FALSE@@HAVE_GTK_TRUE@ libcanberra.la \ + @HAVE_GTK3_FALSE@@HAVE_GTK_TRUE@ libcanberra-gtk.la + @HAVE_GTK3_TRUE@canberra_gtk_play_DEPENDENCIES = \ +-@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) libcanberra.la \ ++@HAVE_GTK3_TRUE@ $(am__DEPENDENCIES_1) \ + @HAVE_GTK3_TRUE@ libcanberra-gtk3.la + canberra_gtk_play_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ +@@ -750,7 +750,7 @@ + + @HAVE_GTK3_TRUE@libcanberra_gtk3_la_LIBADD = \ + @HAVE_GTK3_TRUE@ $(GTK3_LIBS) \ +-@HAVE_GTK3_TRUE@ libcanberra.la ++@HAVE_GTK3_TRUE@ -lcanberra + + @HAVE_GTK3_TRUE@libcanberra_gtk3_la_LDFLAGS = \ + @HAVE_GTK3_TRUE@ -export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO) +@@ -763,7 +763,7 @@ + + @HAVE_GTK3_TRUE@libcanberra_gtk3_module_la_LIBADD = \ + @HAVE_GTK3_TRUE@ $(GTK3_LIBS) \ +-@HAVE_GTK3_TRUE@ libcanberra.la \ ++@HAVE_GTK3_TRUE@ -lcanberra \ + @HAVE_GTK3_TRUE@ libcanberra-gtk3.la + + @HAVE_GTK3_TRUE@libcanberra_gtk3_module_la_LDFLAGS = \ +@@ -807,7 +807,7 @@ + + @HAVE_GTK3_TRUE@canberra_gtk_play_LDADD = \ + @HAVE_GTK3_TRUE@ $(GTK3_LIBS) \ +-@HAVE_GTK3_TRUE@ libcanberra.la \ ++@HAVE_GTK3_TRUE@ -lcanberra \ + @HAVE_GTK3_TRUE@ libcanberra-gtk3.la + + @HAVE_GTK3_FALSE@@HAVE_GTK_TRUE@canberra_gtk_play_CFLAGS = \ diff --git a/audio/libcanberra/files/patch-src_oss.c b/audio/libcanberra/files/patch-src_oss.c new file mode 100644 index 000000000..098792d93 --- /dev/null +++ b/audio/libcanberra/files/patch-src_oss.c @@ -0,0 +1,11 @@ +--- src/oss.c.orig 2010-02-19 18:39:40.000000000 -0500 ++++ src/oss.c 2010-03-14 15:04:16.000000000 -0400 +@@ -262,7 +262,7 @@ static int open_oss(ca_context *c, struc + val = AFMT_S16_NE; + break; + case CA_SAMPLE_S16RE: +-#if __BYTE_ORDER == __LITTLE_ENDIAN ++#if _BYTE_ORDER == _LITTLE_ENDIAN + val = AFMT_S16_BE; + #else + val = AFMT_S16_LE; diff --git a/audio/libcanberra/pkg-descr b/audio/libcanberra/pkg-descr new file mode 100644 index 000000000..bd46b142e --- /dev/null +++ b/audio/libcanberra/pkg-descr @@ -0,0 +1,4 @@ +Libcanberra is an implementation of the Freedesktop Sound Theme +specification. It allows developers to play sounds given a list of events. + +WWW: http://0pointer.de/lennart/projects/libcanberra/ diff --git a/audio/libcanberra/pkg-plist b/audio/libcanberra/pkg-plist new file mode 100644 index 000000000..af83fe4ed --- /dev/null +++ b/audio/libcanberra/pkg-plist @@ -0,0 +1,55 @@ +bin/canberra-gtk-play +include/canberra-gtk.h +include/canberra.h +lib/gtk-2.0/modules/libcanberra-gtk-module.a +lib/gtk-2.0/modules/libcanberra-gtk-module.la +lib/gtk-2.0/modules/libcanberra-gtk-module.so +lib/libcanberra-gtk.a +lib/libcanberra-gtk.la +lib/libcanberra-gtk.so +lib/libcanberra-gtk.so.0 +lib/libcanberra.a +lib/libcanberra.la +lib/libcanberra.so +lib/libcanberra.so.0 +%%GSTREAMER%%lib/libcanberra-%%VERSION%%/libcanberra-gstreamer.a +%%GSTREAMER%%lib/libcanberra-%%VERSION%%/libcanberra-gstreamer.la +%%GSTREAMER%%lib/libcanberra-%%VERSION%%/libcanberra-gstreamer.so +lib/libcanberra-%%VERSION%%/libcanberra-multi.a +lib/libcanberra-%%VERSION%%/libcanberra-multi.la +lib/libcanberra-%%VERSION%%/libcanberra-multi.so +lib/libcanberra-%%VERSION%%/libcanberra-null.a +lib/libcanberra-%%VERSION%%/libcanberra-null.la +lib/libcanberra-%%VERSION%%/libcanberra-null.so +lib/libcanberra-%%VERSION%%/libcanberra-oss.a +lib/libcanberra-%%VERSION%%/libcanberra-oss.la +lib/libcanberra-%%VERSION%%/libcanberra-oss.so +%%PULSE%%lib/libcanberra-%%VERSION%%/libcanberra-pulse.a +%%PULSE%%lib/libcanberra-%%VERSION%%/libcanberra-pulse.la +%%PULSE%%lib/libcanberra-%%VERSION%%/libcanberra-pulse.so +libdata/pkgconfig/libcanberra-gtk.pc +libdata/pkgconfig/libcanberra.pc +%%DOCSDIR%%/README +%%DOCSDIR%%/ch01.html +%%DOCSDIR%%/home.png +%%DOCSDIR%%/index.html +%%DOCSDIR%%/index.sgml +%%DOCSDIR%%/left.png +%%DOCSDIR%%/libcanberra-canberra-gtk.html +%%DOCSDIR%%/libcanberra-canberra.html +%%DOCSDIR%%/libcanberra.devhelp +%%DOCSDIR%%/libcanberra.devhelp2 +%%DOCSDIR%%/right.png +%%DOCSDIR%%/style.css +%%DOCSDIR%%/up.png +share/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop +share/gnome/autostart/libcanberra-login-sound.desktop +share/gnome/shutdown/libcanberra-logout-sound.sh +share/vala/vapi/libcanberra-gtk.vapi +share/vala/vapi/libcanberra.vapi +@dirrmtry share/gnome/shutdown +@dirrmtry share/gdm/autostart/LoginWindow +@dirrmtry share/gdm/autostart +@dirrmtry share/gdm +@dirrm %%DOCSDIR%% +@dirrm lib/libcanberra-%%VERSION%% |