diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-12-01 23:23:45 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-12-01 23:23:45 +0800 |
commit | 5a88a8ba186cd8b622dcb6368943fb89db3facb1 (patch) | |
tree | 5e72fae261b7dc120756e5e69bd62dff690c6a43 /audio | |
parent | 846f06692045aa093a2e20c14e561b47d11540c7 (diff) | |
download | marcuscom-ports-5a88a8ba186cd8b622dcb6368943fb89db3facb1.tar.gz marcuscom-ports-5a88a8ba186cd8b622dcb6368943fb89db3facb1.tar.zst marcuscom-ports-5a88a8ba186cd8b622dcb6368943fb89db3facb1.zip |
Enable gtk3 module.
Maybe it is a idea to split off the gtk2 module from the main libcanberra port?
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14926 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libcanberra-gtk3/Makefile | 34 | ||||
-rw-r--r-- | audio/libcanberra-gtk3/pkg-plist | 8 | ||||
-rw-r--r-- | audio/libcanberra/Makefile | 68 | ||||
-rw-r--r-- | audio/libcanberra/distinfo | 2 | ||||
-rw-r--r-- | audio/libcanberra/files/patch-configure | 15 | ||||
-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 |
8 files changed, 197 insertions, 0 deletions
diff --git a/audio/libcanberra-gtk3/Makefile b/audio/libcanberra-gtk3/Makefile new file mode 100644 index 000000000..15b6048c1 --- /dev/null +++ b/audio/libcanberra-gtk3/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: libcanberra +# Date created: 05 August 2008 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/audio/libcanberra-gtk3/Makefile,v 1.1 2010/07/23 13:11:15 kwm Exp $ +# + +PORTREVISION= 0 +CATEGORIES= audio devel +PKGNAMESUFFIX= -gtk3 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Implementation of the Freedesktop sound theme spec + +MASTERDIR= ${.CURDIR}/../../audio/libcanberra +SLAVEPORT= gtk3 +PLIST= ${.CURDIR}/pkg-plist + +do-build: + cd ${WRKSRC} && ${GMAKE} libcanberra-gtk3.pc + cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3.la + cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3-module.la + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk3.pc \ + ${PREFIX}/libdata/pkgconfig/ +.for i in .a .la .so .so.0 + ${INSTALL_DATA} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \ + ${PREFIX}/lib/ +.endfor + cd ${WRKSRC}/src && ${GMAKE} install-gtk3moduleLTLIBRARIES + +.include "${MASTERDIR}/Makefile" diff --git a/audio/libcanberra-gtk3/pkg-plist b/audio/libcanberra-gtk3/pkg-plist new file mode 100644 index 000000000..79a752832 --- /dev/null +++ b/audio/libcanberra-gtk3/pkg-plist @@ -0,0 +1,8 @@ +lib/gtk-3.0/modules/libcanberra-gtk3-module.a +lib/gtk-3.0/modules/libcanberra-gtk3-module.la +lib/gtk-3.0/modules/libcanberra-gtk3-module.so +lib/libcanberra-gtk3.a +lib/libcanberra-gtk3.la +lib/libcanberra-gtk3.so +lib/libcanberra-gtk3.so.0 +libdata/pkgconfig/libcanberra-gtk3.pc diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile new file mode 100644 index 000000000..4fed30fff --- /dev/null +++ b/audio/libcanberra/Makefile @@ -0,0 +1,68 @@ +# 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.20 2010/11/21 23:48:16 marcus Exp $ +# $MCom$ + +PORTNAME= libcanberra +PORTVERSION= 0.26 +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..19779ba38 --- /dev/null +++ b/audio/libcanberra/distinfo @@ -0,0 +1,2 @@ +SHA256 (libcanberra-0.26.tar.gz) = 4b5d8d2c2835133620adbc53745dd107b6e58b9a2963059e8f457143fee00982 +SIZE (libcanberra-0.26.tar.gz) = 463209 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_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%% |