summaryrefslogtreecommitdiff
path: root/community/gavl
diff options
context:
space:
mode:
Diffstat (limited to 'community/gavl')
-rw-r--r--community/gavl/PKGBUILD10
-rw-r--r--community/gavl/gavl-autoconf.patch61
2 files changed, 67 insertions, 4 deletions
diff --git a/community/gavl/PKGBUILD b/community/gavl/PKGBUILD
index 5af667871..99e9de3e2 100644
--- a/community/gavl/PKGBUILD
+++ b/community/gavl/PKGBUILD
@@ -7,17 +7,19 @@ pkgname=gavl
pkgver=1.4.0
pkgrel=1
pkgdesc='A low level library, upon which multimedia APIs can be built.'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://gmerlin.sourceforge.net/'
license=('GPL')
depends=('glibc')
options=('!libtool')
-source=("http://downloads.sourceforge.net/sourceforge/gmerlin/$pkgname-$pkgver.tar.gz")
-md5sums=('2752013a817fbc43ddf13552215ec2c0')
+source=("http://downloads.sourceforge.net/sourceforge/gmerlin/$pkgname-$pkgver.tar.gz"
+ "gavl-autoconf.patch")
+md5sums=('2752013a817fbc43ddf13552215ec2c0'
+ '8825521b3658b447855cf84c637e5fe3')
build() {
cd "$srcdir/$pkgname-$pkgver"
-
+ patch -Np1 -i ${srcdir}/gavl-autoconf.patch
./configure --prefix=/usr --without-doxygen --with-cpuflags=none
make
}
diff --git a/community/gavl/gavl-autoconf.patch b/community/gavl/gavl-autoconf.patch
new file mode 100644
index 000000000..5853abd8f
--- /dev/null
+++ b/community/gavl/gavl-autoconf.patch
@@ -0,0 +1,61 @@
+Index: gavl-1.4.0/acinclude.m4
+===================================================================
+--- gavl-1.4.0.orig/acinclude.m4
++++ gavl-1.4.0/acinclude.m4
+@@ -46,7 +46,9 @@ AC_DEFUN([AC_C99_FUNC_LRINT],
+ ac_cv_c99_lrint,
+ [
+ lrint_save_CFLAGS=$CFLAGS
+-CFLAGS="-O2 -lm"
++lrint_save_LIBS=$LIBS
++CFLAGS="$CFLAGS -O2"
++LIBS="$LIBS -lm"
+ AC_TRY_LINK([
+ #define _ISOC9X_SOURCE 1
+ #define _ISOC99_SOURCE 1
+@@ -57,6 +59,7 @@ AC_TRY_LINK([
+ ], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
+
+ CFLAGS=$lrint_save_CFLAGS
++LIBS=$lrint_save_LIBS
+
+ ])
+
+Index: gavl-1.4.0/configure.ac
+===================================================================
+--- gavl-1.4.0.orig/configure.ac
++++ gavl-1.4.0/configure.ac
+@@ -129,6 +129,7 @@ fi
+ dnl
+ dnl Check for library functions
+ dnl
++AC_CHECK_FUNC(m,sinf)
+
+ AC_CHECK_FUNCS([memalign])
+ AC_CHECK_FUNCS([sched_setaffinity])
+Index: gavl-1.4.0/src/Makefile.am
+===================================================================
+--- gavl-1.4.0.orig/src/Makefile.am
++++ gavl-1.4.0/src/Makefile.am
+@@ -30,7 +30,7 @@ benchmark_LDADD = ../gavl/libgavl.la @RT
+
+
+ volume_test_SOURCES = volume_test.c
+-volume_test_LDADD = ../gavl/libgavl.la
++volume_test_LDADD = ../gavl/libgavl.la -lm
+
+ dump_frame_table_SOURCES = dump_frame_table.c
+ dump_frame_table_LDADD = ../gavl/libgavl.la
+Index: gavl-1.4.0/src/Makefile.in
+===================================================================
+--- gavl-1.4.0.orig/src/Makefile.in
++++ gavl-1.4.0/src/Makefile.in
+@@ -282,7 +282,7 @@ pixelformat_penalty_LDADD = ../gavl/libg
+ benchmark_SOURCES = benchmark.c
+ benchmark_LDADD = ../gavl/libgavl.la @RT_LIBS@
+ volume_test_SOURCES = volume_test.c
+-volume_test_LDADD = ../gavl/libgavl.la
++volume_test_LDADD = ../gavl/libgavl.la -lm
+ dump_frame_table_SOURCES = dump_frame_table.c
+ dump_frame_table_LDADD = ../gavl/libgavl.la
+ colorspace_test_SOURCES = colorspace_test.c \ No newline at end of file