summaryrefslogtreecommitdiff
path: root/extra/fltk
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/fltk
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/fltk')
-rw-r--r--extra/fltk/PKGBUILD13
-rw-r--r--extra/fltk/fltk-config-dynlibs.patch37
2 files changed, 45 insertions, 5 deletions
diff --git a/extra/fltk/PKGBUILD b/extra/fltk/PKGBUILD
index 138bbad57..6c81007d7 100644
--- a/extra/fltk/PKGBUILD
+++ b/extra/fltk/PKGBUILD
@@ -1,23 +1,26 @@
-# $Id: PKGBUILD 197654 2013-10-27 19:10:51Z eric $
+# $Id: PKGBUILD 202754 2013-12-26 07:00:56Z bpiotrowski $
# Maintainer:
pkgbase=fltk
pkgname=('fltk' 'fltk-docs' 'fltk-games')
pkgver=1.3.2
-pkgrel=4
+pkgrel=5
arch=('i686' 'x86_64')
license=('custom:LGPL')
url="http://www.fltk.org/"
makedepends=('mesa' 'glu' 'doxygen' 'libjpeg' 'libxft' 'libxinerama' \
'alsa-lib' 'desktop-file-utils' 'libxcursor')
source=(http://fltk.org/pub/fltk/$pkgver/fltk-$pkgver-source.tar.gz
- tigervnc.patch)
+ tigervnc.patch
+ fltk-config-dynlibs.patch)
md5sums=('9f7e707d4fb7a5a76f0f9b73ff70623d'
- '9efdf03a449d7639b6da493cb0972bba')
+ '9efdf03a449d7639b6da493cb0972bba'
+ 'b7ca1a3f5055aabe9c823e650db5b0b0')
prepare() {
cd $pkgbase-$pkgver
- patch -Np1 -i ../tigervnc.patch
+ patch -p1 -i ../tigervnc.patch
+ patch -p1 -i ../fltk-config-dynlibs.patch
}
build() {
diff --git a/extra/fltk/fltk-config-dynlibs.patch b/extra/fltk/fltk-config-dynlibs.patch
new file mode 100644
index 000000000..0e7ffec94
--- /dev/null
+++ b/extra/fltk/fltk-config-dynlibs.patch
@@ -0,0 +1,37 @@
+diff -rupN a/fltk-config.in b/fltk-config.in
+--- a/fltk-config.in 2011-07-19 06:49:30.000000000 +0200
++++ b/fltk-config.in 2013-12-26 07:50:58.393155344 +0100
+@@ -357,26 +357,26 @@ if test "$echo_ldstaticflags" = "yes"; t
+ fi
+
+ if test "$echo_libs" = "yes"; then
+- USELIBS="$libdir/libfltk.a"
++ USELIBS="$libdir/libfltk.so"
+
+ if test x$use_forms = xyes; then
+- USELIBS="$libdir/libfltk_forms.a $USELIBS"
++ USELIBS="$libdir/libfltk_forms.so $USELIBS"
+ fi
+
+ if test x$use_gl = xyes; then
+- USELIBS="$libdir/libfltk_gl.a $USELIBS"
++ USELIBS="$libdir/libfltk_gl.so $USELIBS"
+ fi
+
+ if test x$use_cairo = xyes; then
+- USELIBS="$libdir/libfltk_cairo.a $USELIBS"
++ USELIBS="$libdir/libfltk_cairo.so $USELIBS"
+ fi
+
+ if test x$use_images = xyes; then
+- USELIBS="$libdir/libfltk_images.a $USELIBS"
++ USELIBS="$libdir/libfltk_images.so $USELIBS"
+
+ for lib in fltk_jpeg fltk_png fltk_z; do
+- if test -f $libdir/lib$lib.a; then
+- USELIBS="$libdir/lib$lib.a $USELIBS"
++ if test -f $libdir/lib$lib.so; then
++ USELIBS="$libdir/lib$lib.so $USELIBS"
+ fi
+ done
+ fi