diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-16 19:54:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-16 19:54:50 +0000 |
commit | 8bd2534b148e31be92dcab30499ac421b274ef91 (patch) | |
tree | 2079eb8acc0188dc9134a1cd2ef0d10a9f7df24a | |
parent | 259afe8a0431c0525432aeada498f93e520bd0d9 (diff) | |
download | pkgsrc-8bd2534b148e31be92dcab30499ac421b274ef91.tar.gz |
Use gtk-config, not @GTK_CONFIG@ to avoid putting buildlink references
in config script. Also add X_LDFLAGS for X libraries linker flags.
-rw-r--r-- | graphics/imlib/patches/patch-ae | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/imlib/patches/patch-ae b/graphics/imlib/patches/patch-ae new file mode 100644 index 00000000000..6e9f6ab5a64 --- /dev/null +++ b/graphics/imlib/patches/patch-ae @@ -0,0 +1,25 @@ +$NetBSD: patch-ae,v 1.3 2001/06/16 19:54:50 jlam Exp $ + +--- imlib-config.in.orig Thu Jan 14 04:43:29 1999 ++++ imlib-config.in Fri Jun 15 22:58:16 2001 +@@ -55,15 +55,15 @@ + if test @includedir@ != /usr/include ; then + includes=-I@includedir@ + fi +- echo `@GTK_CONFIG@ --cflags` $includes @X_CFLAGS@ ++ echo `gtk-config --cflags` $includes @X_CFLAGS@ + ;; + --libs) +- libdirs=-L@libdir@ +- echo $libdirs -lImlib $gx_libs @LDFLAGS@ @X_LIBS@ @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@ ++ libdirs="-L@libdir@ -Wl,-R@libdir@" ++ echo $libdirs -lImlib $gx_libs @X_LDFLAGS@ @X_LIBS@ @X_PRE_LIBS@ -lXext -lX11 @X_EXTRA_LIBS@ + ;; + --libs-gdk) +- libdirs=-L@libdir@ +- echo $libdirs -lgdk_imlib$gdk_gx_libs `@GTK_CONFIG@ --libs` $gdk_libs ++ libdirs="-L@libdir@ -Wl,-R@libdir@" ++ echo $libdirs -lgdk_imlib$gdk_gx_libs `gtk-config --libs` $gdk_libs + ;; + *) + echo "${usage}" 1>&2 |