[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] lbuilds: libogg 1.1.4, libvorbis 1.2.3



From: Max Reitz <max@xxxxxxxxxx>

+ lbuilds: libogg 1.1.4 hinzugefügt
+ lbuilds: libvorbis 1.2.3 hinzugefügt

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 lbuilds/libogg/1.1.4/files/configure.patch     |   13 ++++++
 lbuilds/libogg/1.1.4/libogg-1.1.4.lbuild       |   53 ++++++++++++++++++++++++
 lbuilds/libvorbis/1.2.3/files/configure.patch  |   13 ++++++
 lbuilds/libvorbis/1.2.3/libvorbis-1.2.3.lbuild |   53 ++++++++++++++++++++++++
 4 files changed, 132 insertions(+), 0 deletions(-)
 create mode 100644 lbuilds/libogg/1.1.4/files/configure.patch
 create mode 100644 lbuilds/libogg/1.1.4/libogg-1.1.4.lbuild
 create mode 100644 lbuilds/libvorbis/1.2.3/files/configure.patch
 create mode 100644 lbuilds/libvorbis/1.2.3/libvorbis-1.2.3.lbuild

diff --git a/lbuilds/libogg/1.1.4/files/configure.patch b/lbuilds/libogg/1.1.4/files/configure.patch
new file mode 100644
index 0000000..5807a46
--- /dev/null
+++ b/lbuilds/libogg/1.1.4/files/configure.patch
@@ -0,0 +1,13 @@
+Index: libogg-1.1.4/config.sub
+===================================================================
+--- libogg-1.1.4.orig/config.sub
++++ libogg-1.1.4/config.sub
+@@ -1195,7 +1195,7 @@ case $os in
+ 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+-	      | -aos* \
++	      | -aos* | -tyndur* \
+ 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
diff --git a/lbuilds/libogg/1.1.4/libogg-1.1.4.lbuild b/lbuilds/libogg/1.1.4/libogg-1.1.4.lbuild
new file mode 100644
index 0000000..cd41bea
--- /dev/null
+++ b/lbuilds/libogg/1.1.4/libogg-1.1.4.lbuild
@@ -0,0 +1,53 @@
+include toolchain
+include lutils
+
+DESCRIPTION="libogg"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/libogg";
+SRC_URI="http://downloads.xiph.org/releases/ogg/${P}.tar.gz";
+PS="lib"
+
+LICENSE="unknown"
+
+BUILD_DEPEND=""
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_unpack() {
+lunpack ${P}.tar.gz
+cd ${MY_S}
+
+    ln -s ${F} patches
+    [ -f ${F}/series ] && ln -s ${F}/series series
+    for i in ${F}/*.patch; do
+        [ -L series ] || echo `basename $i` >> series
+        (which quilt > /dev/null 2>&1) || (patch -p1 < $i) || die "Fehler beim Anwenden von $i"
+    done
+    (which quilt > /dev/null 2>&1) && quilt push -a || die "Fehler beim Anwenden der Patches"
+}
+
+src_configure() {
+	cd ${MY_S}
+
+	./configure \
+                CC=`tc-cc` \
+                --build=`tc-build` \
+                --target=`tc-host` \
+                --host=`tc-host` \
+                --prefix="${R}" \
+                || die "configure failed"
+}
+
+src_compile() {
+	cd ${MY_S}
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+
+	lmake install prefix="${D}${R}" || die "make install failed"
+	rm -rf ${D}${R}/share
+}
diff --git a/lbuilds/libvorbis/1.2.3/files/configure.patch b/lbuilds/libvorbis/1.2.3/files/configure.patch
new file mode 100644
index 0000000..f0a02de
--- /dev/null
+++ b/lbuilds/libvorbis/1.2.3/files/configure.patch
@@ -0,0 +1,13 @@
+Index: libvorbis-1.2.3/config.sub
+===================================================================
+--- libvorbis-1.2.3.orig/config.sub
++++ libvorbis-1.2.3/config.sub
+@@ -1195,7 +1195,7 @@ case $os in
+ 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+-	      | -aos* \
++	      | -aos* | -tyndur* \
+ 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
diff --git a/lbuilds/libvorbis/1.2.3/libvorbis-1.2.3.lbuild b/lbuilds/libvorbis/1.2.3/libvorbis-1.2.3.lbuild
new file mode 100644
index 0000000..f4621b3
--- /dev/null
+++ b/lbuilds/libvorbis/1.2.3/libvorbis-1.2.3.lbuild
@@ -0,0 +1,53 @@
+include toolchain
+include lutils
+
+DESCRIPTION="libvorbis"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/libvorbis";
+SRC_URI="http://downloads.xiph.org/releases/vorbis/${P}.tar.bz2";
+PS="lib"
+
+LICENSE="unknown"
+
+BUILD_DEPEND=""
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_unpack() {
+lunpack ${P}.tar.bz2
+cd ${MY_S}
+
+    ln -s ${F} patches
+    [ -f ${F}/series ] && ln -s ${F}/series series
+    for i in ${F}/*.patch; do
+        [ -L series ] || echo `basename $i` >> series
+        (which quilt > /dev/null 2>&1) || (patch -p1 < $i) || die "Fehler beim Anwenden von $i"
+    done
+    (which quilt > /dev/null 2>&1) && quilt push -a || die "Fehler beim Anwenden der Patches"
+}
+
+src_configure() {
+	cd ${MY_S}
+
+	./configure \
+                CC=`tc-cc` \
+                --build=`tc-build` \
+                --target=`tc-host` \
+                --host=`tc-host` \
+                --prefix="${R}" \
+                || die "configure failed"
+}
+
+src_compile() {
+	cd ${MY_S}
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+
+	lmake install prefix="${D}${R}" || die "make install failed"
+	rm -rf ${D}${R}/share
+}
-- 
1.6.3.3