summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/fltk/files/fltk-1.1.7-fltk-config.patch')
-rw-r--r--x11-libs/fltk/files/fltk-1.1.7-fltk-config.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/x11-libs/fltk/files/fltk-1.1.7-fltk-config.patch b/x11-libs/fltk/files/fltk-1.1.7-fltk-config.patch
new file mode 100644
index 0000000..b9fd17f
--- /dev/null
+++ b/x11-libs/fltk/files/fltk-1.1.7-fltk-config.patch
@@ -0,0 +1,56 @@
+--- fltk-1.1.7.orig/fltk-config.in 2006-11-14 11:34:07.000000000 +0100
++++ fltk-1.1.7/fltk-config.in 2006-11-14 12:29:22.000000000 +0100
+@@ -53,9 +53,6 @@
+ POSTBUILD="@POSTBUILD@"
+
+ # flags for C++ compiler:
+-CFLAGS="@CFLAGS@"
+-CXXFLAGS="@CXXFLAGS@"
+-LDFLAGS="@LDFLAGS@"
+ LDLIBS="@LIBS@"
+
+ # Check for local invocation, and update paths accordingly...
+@@ -65,24 +62,24 @@
+ libdir="$selfdir/lib"
+
+ if test -f "$libdir/libfltk_jpeg.a"; then
+- CFLAGS="-I$includedir/jpeg $CFLAGS"
+- CXXFLAGS="-I$includedir/jpeg $CXXFLAGS"
++ CFLAGS="-I$includedir/jpeg"
++ CXXFLAGS="-I$includedir/jpeg"
+ fi
+
+ if test -f "$libdir/libfltk_z.a"; then
+- CFLAGS="-I$includedir/zlib $CFLAGS"
+- CXXFLAGS="-I$includedir/zlib $CXXFLAGS"
++ CFLAGS="-I$includedir/zlib"
++ CXXFLAGS="-I$includedir/zlib"
+ fi
+
+ if test -f "$libdir/libfltk_png.a"; then
+- CFLAGS="-I$includedir/png $CFLAGS"
+- CXXFLAGS="-I$includedir/png $CXXFLAGS"
++ CFLAGS="-I$includedir/png"
++ CXXFLAGS="-I$includedir/png"
+ fi
+ fi
+
+ if test -d $includedir/FL/images; then
+- CFLAGS="-I$includedir/FL/images $CFLAGS"
+- CXXFLAGS="-I$includedir/FL/images $CXXFLAGS"
++ CFLAGS="-I$includedir/FL/images"
++ CXXFLAGS="-I$includedir/FL/images"
+ fi
+
+ # libraries to link with:
+@@ -232,8 +229,8 @@
+ LDSTATIC="$libdir/libfltk_images.a $IMAGELIBS $LDSTATIC"
+ fi
+
+-LDLIBS="$DSOLINK $LDFLAGS $libs $LDLIBS"
+-LDSTATIC="$LDFLAGS $libs $LDSTATIC"
++LDLIBS="$DSOLINK $libs $LDLIBS"
++LDSTATIC="$libs $LDSTATIC"
+
+ # Answer to user requests
+ if test -n "$echo_help"; then