diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile new file mode 100644 index 00000000000..2612d56f4bb --- /dev/null +++ b/audio/libcanberra/Makefile @@ -0,0 +1,36 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ + +COMMENT= implementation of the Freedesktop sound theme spec. + +DISTNAME= libcanberra-0.9 +SHARED_LIBS += canberra 0.0 # .1.2 +CATEGORIES= audio devel + +HOMEPAGE= http://0pointer.de/lennart/projects/libcanberra/ + +# LGPLv2.1 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE} + +WANTLIB= glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 m ogg \ + pcre xml2 z + +MODULES= devel/gettext + +LIB_DEPENDS= vorbis,vorbisfile::audio/libvorbis \ + ltdl::devel/libtool,-ltdl \ + gstreamer-0.10::multimedia/gstreamer-0.10/core + +USE_LIBTOOL= Yes +USE_GMAKE= Yes + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --disable-gtk # Needs GTK+2 > 2.13.4 +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" + +.include diff --git a/audio/libcanberra/distinfo b/audio/libcanberra/distinfo new file mode 100644 index 00000000000..b39e04fe968 --- /dev/null +++ b/audio/libcanberra/distinfo @@ -0,0 +1,5 @@ +MD5 (libcanberra-0.9.tar.gz) = HGxj1UYeahrkQ6Ek1J+Ptg== +RMD160 (libcanberra-0.9.tar.gz) = d8DUc4sVNm+BDzEdu96/DXDfw6M= +SHA1 (libcanberra-0.9.tar.gz) = Qrh68e53A3jb/Yv+s8Eabk9RPas= +SHA256 (libcanberra-0.9.tar.gz) = ovaOAqrhG6hTZdmp2lAGdPmn3n5tkQcuWdOis9YvUJk= +SIZE (libcanberra-0.9.tar.gz) = 823652 diff --git a/audio/libcanberra/patches/patch-Makefile_in b/audio/libcanberra/patches/patch-Makefile_in new file mode 100644 index 00000000000..831f0d3fda9 --- /dev/null +++ b/audio/libcanberra/patches/patch-Makefile_in @@ -0,0 +1,15 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ + +Don't build internal libltdl. + +--- Makefile.in.orig Thu Sep 25 21:13:52 2008 ++++ Makefile.in Thu Sep 25 21:14:04 2008 +@@ -265,7 +265,7 @@ top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + dist_doc_DATA = README + EXTRA_DIST = bootstrap.sh autogen.sh LGPL +-SUBDIRS = src gtkdoc libltdl doc ++SUBDIRS = src gtkdoc doc + MAINTAINERCLEANFILES = README + noinst_DATA = README + pkgconfigdir = $(libdir)/pkgconfig diff --git a/audio/libcanberra/patches/patch-configure b/audio/libcanberra/patches/patch-configure new file mode 100644 index 00000000000..89ac4105b42 --- /dev/null +++ b/audio/libcanberra/patches/patch-configure @@ -0,0 +1,30 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ + +Don't build internal libltdl. + +--- configure.orig Tue Sep 9 16:32:15 2008 ++++ configure Thu Sep 25 21:26:43 2008 +@@ -909,7 +909,6 @@ ac_ct_F77 + LIBTOOL + LTDLINCL + LIBLTDL +-subdirs + OS_IS_WIN32_TRUE + OS_IS_WIN32_FALSE + USE_VERSION_SCRIPT_TRUE +@@ -1046,7 +1045,6 @@ TDB_CFLAGS + TDB_LIBS + VORBIS_CFLAGS + VORBIS_LIBS' +-ac_subdirs_all='libltdl' + + # Initialize some variables set by options. + ac_init_help= +@@ -21192,7 +21190,6 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + +-subdirs="$subdirs libltdl" + + + #### Determine build environment #### diff --git a/audio/libcanberra/patches/patch-src_Makefile_in b/audio/libcanberra/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..9538ae675c1 --- /dev/null +++ b/audio/libcanberra/patches/patch-src_Makefile_in @@ -0,0 +1,17 @@ +$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ + +As long as we don't build the GTK+ modules, this only creates +empty directories. + +--- src/Makefile.in.orig Thu Sep 25 23:11:36 2008 ++++ src/Makefile.in Thu Sep 25 23:12:57 2008 +@@ -1322,8 +1322,7 @@ info: info-am + + info-am: + +-install-data-am: install-gnomeautostartDATA \ +- install-gnomeshutdownSCRIPTS install-gtkmoduleLTLIBRARIES \ ++install-data-am: install-gtkmoduleLTLIBRARIES \ + install-includeHEADERS install-pluginLTLIBRARIES + + install-dvi: install-dvi-am diff --git a/audio/libcanberra/patches/patch-src_common_h b/audio/libcanberra/patches/patch-src_common_h new file mode 100644 index 00000000000..29067bbdc3e --- /dev/null +++ b/audio/libcanberra/patches/patch-src_common_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_common_h,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ +--- src/common.h.orig Thu Sep 25 23:06:18 2008 ++++ src/common.h Thu Sep 25 23:06:27 2008 +@@ -21,6 +21,8 @@ + . + ***/ + ++#include ++ + #include "canberra.h" + #include "macro.h" + #include "mutex.h" diff --git a/audio/libcanberra/pkg/DESCR b/audio/libcanberra/pkg/DESCR new file mode 100644 index 00000000000..2e15c660a8c --- /dev/null +++ b/audio/libcanberra/pkg/DESCR @@ -0,0 +1,3 @@ +Libcanberra is an implementation of the Freedesktop Sound Theme +specification. It allows developers to play sounds given a list of +events. diff --git a/audio/libcanberra/pkg/PFRAG.shared b/audio/libcanberra/pkg/PFRAG.shared new file mode 100644 index 00000000000..b28d85c9f09 --- /dev/null +++ b/audio/libcanberra/pkg/PFRAG.shared @@ -0,0 +1,6 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ +@lib lib/libcanberra.so.${LIBcanberra_VERSION} +lib/libcanberra/libcanberra-gstreamer.so +lib/libcanberra/libcanberra-multi.so +lib/libcanberra/libcanberra-null.so +lib/libcanberra/libcanberra-oss.so diff --git a/audio/libcanberra/pkg/PLIST b/audio/libcanberra/pkg/PLIST new file mode 100644 index 00000000000..68679bfccaf --- /dev/null +++ b/audio/libcanberra/pkg/PLIST @@ -0,0 +1,33 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/09/26 12:01:43 jasper Exp $ +%%SHARED%% +include/canberra.h +lib/libcanberra/ +lib/libcanberra.a +lib/libcanberra.la +lib/libcanberra/libcanberra-gstreamer.a +lib/libcanberra/libcanberra-gstreamer.la +lib/libcanberra/libcanberra-multi.a +lib/libcanberra/libcanberra-multi.la +lib/libcanberra/libcanberra-null.a +lib/libcanberra/libcanberra-null.la +lib/libcanberra/libcanberra-oss.a +lib/libcanberra/libcanberra-oss.la +lib/pkgconfig/ +lib/pkgconfig/libcanberra.pc +share/doc/libcanberra/ +share/doc/libcanberra/README +share/gtk-doc/ +share/gtk-doc/html/ +share/gtk-doc/html/libcanberra/ +share/gtk-doc/html/libcanberra/ch01.html +share/gtk-doc/html/libcanberra/home.png +share/gtk-doc/html/libcanberra/index.html +share/gtk-doc/html/libcanberra/index.sgml +share/gtk-doc/html/libcanberra/left.png +share/gtk-doc/html/libcanberra/libcanberra-canberra-gtk.html +share/gtk-doc/html/libcanberra/libcanberra-canberra.html +share/gtk-doc/html/libcanberra/libcanberra.devhelp +share/gtk-doc/html/libcanberra/libcanberra.devhelp2 +share/gtk-doc/html/libcanberra/right.png +share/gtk-doc/html/libcanberra/style.css +share/gtk-doc/html/libcanberra/up.png