Sun Sep 12 19:03:45 2010 UTC ()
Add rpath for expat, so that builtin expat will work.
Addresses PR 43862.


(wiz)
diff -r1.17 -r1.18 pkgsrc/graphics/cambevao/Makefile
diff -r1.5 -r1.6 pkgsrc/graphics/cambevao/distinfo
diff -r0 -r1.1 pkgsrc/graphics/cambevao/patches/patch-ad

cvs diff -r1.17 -r1.18 pkgsrc/graphics/cambevao/Makefile (expand / switch to context diff)
--- pkgsrc/graphics/cambevao/Makefile 2010/01/18 09:58:56 1.17
+++ pkgsrc/graphics/cambevao/Makefile 2010/09/12 19:03:45 1.18
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2010/01/18 09:58:56 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2010/09/12 19:03:45 wiz Exp $
 #
 
 DISTNAME=		cambevao-2.2
@@ -20,8 +20,10 @@
 ONLY_FOR_PLATFORM=	NetBSD-*-* FreeBSD-*-* DragonFly-*-*
 PKG_DESTDIR_SUPPORT= 	user-destdir
 
-INSTALLATION_DIRS+=    ${PREFIX}/share/examples/cambevao
-INSTALLATION_DIRS+=    ${PREFIX}/share/doc
+INSTALLATION_DIRS+=	${PREFIX}/share/examples/cambevao
+INSTALLATION_DIRS+=	${PREFIX}/share/doc
+
+MAKE_FLAGS+=		EXPAT_PATH=${BUILDLINK_PREFIX.expat}/lib
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/cambevao ${DESTDIR}${PREFIX}/bin

cvs diff -r1.5 -r1.6 pkgsrc/graphics/cambevao/distinfo (expand / switch to context diff)
--- pkgsrc/graphics/cambevao/distinfo 2008/06/21 20:59:32 1.5
+++ pkgsrc/graphics/cambevao/distinfo 2010/09/12 19:03:45 1.6
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2008/06/21 20:59:32 joerg Exp $
+$NetBSD: distinfo,v 1.6 2010/09/12 19:03:45 wiz Exp $
 
 SHA1 (cambevao-2.2.tar.gz) = 98d67a1e8e79cdb5b3cc8b099065f90c2c204b36
 RMD160 (cambevao-2.2.tar.gz) = 922fc6e98503917e503ab4e5a7271dc882be3455
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = 9b37747201dca6e86484c69f50e57ca9dd91339c
 SHA1 (patch-ab) = 4c489afb31b8e713ab75776dc154d8545d4833e0
 SHA1 (patch-ac) = e9490b52ca8b61efce9d9bdbb66314aec25cd8b1
+SHA1 (patch-ad) = c7180c06eda35e52357a1f86dbb327b127bda007

File Added: pkgsrc/graphics/cambevao/patches/patch-ad
$NetBSD: patch-ad,v 1.1 2010/09/12 19:03:45 wiz Exp $

--- Makefile.orig	2004-11-20 14:04:33.000000000 +0000
+++ Makefile
@@ -14,7 +14,7 @@ RM      = rm -f
 INSTALL = /usr/bin/install -c -s -o root -g wheel -m 555
 CFLAGS  = -Wall -O2 -I$(includedir) -DPROGRAM=\"$(PROGRAM)\" -DMAX_CONN=3
 # CFLAGS  = -Wall -g -I$(includedir) -DPROGRAM=\"$(PROGRAM)\" -DMAX_CONN=3
-LDFLAGS =  -L$(libdir) -Wl,-R$(libdir)
+LDFLAGS =  -L$(libdir) -Wl,-R$(libdir) -L$(EXPAT_PATH) -Wl,-R$(EXPAT_PATH)
 LDLIBS  = -lexpat -ljpeg -lutil -lm
 #this for FreeBSD
 #LDLIBS  = -lexpat -ljpeg -lm