summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/oss-sound/PKGBUILD.oss-free
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2008-11-30 04:11:03 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2008-11-30 04:11:03 (GMT)
commitf78fc8e0364cb99bf0b3c2fc941ba85c2fe5944f (patch)
tree35b4ab3030640a144537124112e3d65d138672f5 /abs/mv-core/oss-sound/PKGBUILD.oss-free
parentfba7ea15ad46f8655bf17ab4c1cc5a8228d39e1b (diff)
parentf0da28db238a7c58552446e2d87bae48a0f9718b (diff)
downloadlinhes_pkgbuild-f78fc8e0364cb99bf0b3c2fc941ba85c2fe5944f.zip
linhes_pkgbuild-f78fc8e0364cb99bf0b3c2fc941ba85c2fe5944f.tar.gz
linhes_pkgbuild-f78fc8e0364cb99bf0b3c2fc941ba85c2fe5944f.tar.bz2
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/mv-core/oss-sound/PKGBUILD.oss-free')
-rwxr-xr-xabs/mv-core/oss-sound/PKGBUILD.oss-free45
1 files changed, 45 insertions, 0 deletions
diff --git a/abs/mv-core/oss-sound/PKGBUILD.oss-free b/abs/mv-core/oss-sound/PKGBUILD.oss-free
new file mode 100755
index 0000000..b652603
--- /dev/null
+++ b/abs/mv-core/oss-sound/PKGBUILD.oss-free
@@ -0,0 +1,45 @@
+pkgname=oss-linux-free
+pkgver=4.0_1016
+pkgrel=3
+_realname=oss-v4.0-build1016-src-gpl
+pkgdesc="OSS/Open source driver"
+arch=('i686' 'x86_64')
+url="http://www.opensound.com/"
+license=('GPL2')
+depends=('gcc' 'make' 'gtk2' 'libtool' 'bc' 'sed')
+makedepends=('gawk' 'pkgconfig')
+conflicts=('oss-linux')
+provides=('oss')
+install=oss.install
+source=(rc.oss-linux-free http://www.4front-tech.com/developer/sources/stable/gpl/$_realname.tar.bz2 oss4_1016-kernel2626.diff oss4_1016-moduleinc.diff)
+md5sums=('f343bb70a4dbd1aabefabbea0f76e886'
+ 'b8c3409b477387dbe87118caf46773ed'
+ '376fce5cfd92d7793ee90d7352c1cafa'
+ '4077a972a6b26ae960ce15cfec8aa34f')
+
+build() {
+
+rm -rf build ; mkdir build ; cd build
+
+sed -i "s|export HAVE_ALSA=1|# export HAVE_ALSA=1|g" $srcdir/$_realname/configure
+sed -i "s|700|755|g" $srcdir/$_realname/setup/Linux/build.sh
+unset CFLAGS
+
+# Thanks to majeru of the OSS forums for this patch
+cd $srcdir/$_realname
+patch -p0 -i $srcdir/oss4_1016-kernel2626.diff || return 1
+# Thanks to cesium of the OSS forums for this patch
+patch -p1 -i $srcdir/oss4_1016-moduleinc.diff || return 1
+cd $srcdir/build
+$srcdir/$_realname/configure || return 1
+make build || return 1
+
+cp -r prototype/{etc,usr} $pkgdir/
+install -Dm755 ../rc.oss-linux-free $pkgdir/etc/rc.d/oss-linux-free
+
+if [ `uname -m` == "i686" ]; then
+cd setup/Linux/oss/lib
+gcc -m32 -shared -fPIC -O2 -Wall -Werror -lssl flashsupport.c -o libflashsupport.so || return 1
+cp libflashsupport.so $pkgdir/usr/lib/oss/lib/
+fi
+}