summaryrefslogtreecommitdiff
path: root/graphics/imlib
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-03-03 20:38:30 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-03-03 20:38:30 +0000
commit0ee70b01f8d8365d40b692ccb116f9d8b9287d41 (patch)
tree7ef7b410a55be2715cf83db6fbf2aae026fa1a85 /graphics/imlib
parentUse EXTRA_PATCHES instead of copying a patch into ${PATCHDIR}, which (diff)
Add -L${LOCALBASE}/lib in front of -ltiff and stuff in imlib-config;
without it, ports (like astro/xplanet) that only require X-related stuff will fail (since they will only put -L${X11BASE}/lib in the linker command line).
Notes
Notes: svn path=/head/; revision=26509
Diffstat (limited to 'graphics/imlib')
-rw-r--r--graphics/imlib/Makefile3
-rw-r--r--graphics/imlib/files/patch-ab11
2 files changed, 14 insertions, 0 deletions
diff --git a/graphics/imlib/Makefile b/graphics/imlib/Makefile
index c1c07d8c0d03..43cf654facf2 100644
--- a/graphics/imlib/Makefile
+++ b/graphics/imlib/Makefile
@@ -30,4 +30,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/imlib \
--disable-gtktest
+pre-configure:
+ ${PERL} -pi -e "s^%%LOCALBASE%%^${LOCALBASE}^" ${WRKSRC}/imlib-config.in
+
.include <bsd.port.mk>
diff --git a/graphics/imlib/files/patch-ab b/graphics/imlib/files/patch-ab
new file mode 100644
index 000000000000..ed31cf167d97
--- /dev/null
+++ b/graphics/imlib/files/patch-ab
@@ -0,0 +1,11 @@
+--- ./imlib-config.in.org Thu Aug 26 08:09:25 1999
++++ ./imlib-config.in Fri Mar 3 11:08:41 2000
+@@ -3,7 +3,7 @@
+ # Shamelessly ripped form gtk's gtk-config.in
+ #
+
+-gx_libs="@SUPPORT_LIBS@"
++gx_libs="-L%%LOCALBASE%%/lib @SUPPORT_LIBS@"
+ gdk_gx_libs=" @GDK_SUPPORT_LIBS@"
+ gdk_libs="@LIBS@"
+