summaryrefslogtreecommitdiff
path: root/package/libvorbis
diff options
context:
space:
mode:
Diffstat (limited to 'package/libvorbis')
-rw-r--r--package/libvorbis/Config.in20
-rw-r--r--package/libvorbis/Makefile34
-rw-r--r--package/libvorbis/ipkg/libvorbis.control4
-rw-r--r--package/libvorbis/ipkg/libvorbisenc.control4
-rw-r--r--package/libvorbis/patches/patch-Makefile_in12
5 files changed, 74 insertions, 0 deletions
diff --git a/package/libvorbis/Config.in b/package/libvorbis/Config.in
new file mode 100644
index 000000000..9990cb8c1
--- /dev/null
+++ b/package/libvorbis/Config.in
@@ -0,0 +1,20 @@
+config ADK_PACKAGE_LIBVORBIS
+ prompt "libvorbis......................... The Vorbis General Audio Compression Codec library"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBOGG
+ help
+ The Vorbis General Audio Compression Codec library.
+
+ http://www.vorbis.com/
+
+config ADK_PACKAGE_LIBVORBISENC
+ prompt "libvorbisenc...................... The Vorbis General Audio Compression Codec library"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBVORBIS
+ help
+ The Vorbis General Audio Compression Codec library.
+ This is the encoding part, needed f.e. for mpd shout support.
+ http://www.vorbis.com/
+
diff --git a/package/libvorbis/Makefile b/package/libvorbis/Makefile
new file mode 100644
index 000000000..ea4f4f56a
--- /dev/null
+++ b/package/libvorbis/Makefile
@@ -0,0 +1,34 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= libvorbis
+PKG_VERSION:= 1.2.0
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 478646358c49f34aedcce58948793619
+MASTER_SITES:= http://downloads.xiph.org/releases/vorbis/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBVORBIS,libvorbis,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,LIBVORBISENC,libvorbisenc,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= LIBS="-lm -logg"
+CONFIGURE_ARGS+= --with-ogg="${STAGING_DIR}/usr" \
+ --with-ogg-includes="${STAGING_DIR}/usr/include" \
+ --with-ogg-libraries="${STAGING_DIR}/usr/lib"
+BUILD_STYLE= auto
+INSTALL_STYLE= auto confprog
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBVORBIS}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libvorbis.so.* ${IDIR_LIBVORBIS}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libvorbisfile.so.* ${IDIR_LIBVORBIS}/usr/lib/
+ ${INSTALL_DIR} ${IDIR_LIBVORBISENC}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libvorbisenc.so.* ${IDIR_LIBVORBISENC}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libvorbis/ipkg/libvorbis.control b/package/libvorbis/ipkg/libvorbis.control
new file mode 100644
index 000000000..d122faa2e
--- /dev/null
+++ b/package/libvorbis/ipkg/libvorbis.control
@@ -0,0 +1,4 @@
+Package: libvorbis
+Priority: optional
+Section: libs
+Description: The Vorbis General Audio Compression Codec library
diff --git a/package/libvorbis/ipkg/libvorbisenc.control b/package/libvorbis/ipkg/libvorbisenc.control
new file mode 100644
index 000000000..16167ef32
--- /dev/null
+++ b/package/libvorbis/ipkg/libvorbisenc.control
@@ -0,0 +1,4 @@
+Package: libvorbisenc
+Priority: optional
+Section: libs
+Description: The Vorbis General Audio Compression Codec library
diff --git a/package/libvorbis/patches/patch-Makefile_in b/package/libvorbis/patches/patch-Makefile_in
new file mode 100644
index 000000000..51c885573
--- /dev/null
+++ b/package/libvorbis/patches/patch-Makefile_in
@@ -0,0 +1,12 @@
+$Id$
+--- libvorbis-1.2.0.orig/Makefile.in 2007-07-25 16:46:36.000000000 +0000
++++ libvorbis-1.2.0/Makefile.in 2007-10-11 09:22:14.000000000 +0000
+@@ -221,7 +221,7 @@ target_vendor = @target_vendor@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = 1.6 foreign dist-zip dist-bzip2
+-SUBDIRS = lib include doc examples vq
++SUBDIRS = lib include doc vq
+ m4datadir = $(datadir)/aclocal
+ m4data_DATA = vorbis.m4
+ pkgconfigdir = $(libdir)/pkgconfig