Hi all,

This fixes library linking for imlib2.
Otherwise, some ports that use imlib2 can make a 
fool of lib-depends-check. E.g. graphics/feh:

===>  Building package for feh-1.3.4p0
Create /usr/ports/packages/i386/all/feh-1.3.4p0.tgz

/usr/ports/packages/i386/all/feh-1.3.4p0.tgz:
Extra:         pthread-stubs.0
Extra:         xcb.2

Comments? OKs?

ciao,
david

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/imlib2/Makefile,v
retrieving revision 1.24
diff -N -u -p Makefile
--- Makefile    10 Aug 2009 06:31:44 -0000      1.24
+++ Makefile    10 May 2010 16:43:33 -0000
@@ -3,7 +3,7 @@
 COMMENT=       image manipulation library
 
 DISTNAME=      imlib2-1.4.2
-PKGNAME=       ${DISTNAME}p0
+PKGNAME=       ${DISTNAME}p1
 SHARED_LIBS=   Imlib2  6.0     # .5.0
 CATEGORIES=    graphics
 
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/graphics/imlib2/patches/Attic/patch-configure,v
diff -N -u -p patches/patch-configure
--- /dev/null   10 May 2010 16:43:33 -0000
+++ patches/patch-configure     10 May 2010 16:43:33 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.orig     Mon May 10 18:25:06 2010
++++ configure  Mon May 10 18:25:28 2010
+@@ -17340,7 +17340,7 @@ fi
+ 
+   x_dir=${x_dir:-/usr/X11R6}
+   x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
+-  x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
++  x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext 
-lpthread-stubs -lxcb"
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define BUILD_X11 1
Index: patches/patch-imlib2_pc_in
===================================================================
RCS file: patches/patch-imlib2_pc_in
diff -N -u -p patches/patch-imlib2_pc_in
--- /dev/null   10 May 2010 16:43:33 -0000
+++ patches/patch-imlib2_pc_in  10 May 2010 16:43:33 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- imlib2.pc.in.orig  Sun Aug 17 11:39:14 2008
++++ imlib2.pc.in       Mon May 10 18:33:26 2010
+@@ -6,6 +6,6 @@ included...@includedir@
+ Name: imlib2
+ Description: Powerful image loading and rendering library
+ Version: @VERSION@
+-Libs: -L${libdir} -lImlib2
+-Cflags: -I${includedir}
++Libs: -L${libdir} -lImlib2 @my_libs@
++Cflags: -I${includedir} @my_includes@
+ 

Reply via email to