aboutsummaryrefslogtreecommitdiff
path: root/print/pdftk/Makefile
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2010-05-03 19:56:44 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2010-05-03 19:56:44 +0000
commita1299cdb32ba4db4fdfdc68dc4b786e87789cb2c (patch)
tree418d5677335accff90d9970afb7ec4f283d6c91f /print/pdftk/Makefile
parent55943fc5ea2e77c62ed9986f4d01e437171c764c (diff)
downloadports-a1299cdb32ba4db4fdfdc68dc4b786e87789cb2c.tar.gz
ports-a1299cdb32ba4db4fdfdc68dc4b786e87789cb2c.zip
Notes
Diffstat (limited to 'print/pdftk/Makefile')
-rw-r--r--print/pdftk/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/print/pdftk/Makefile b/print/pdftk/Makefile
index a24a690c5b1b..032fd3e0ce93 100644
--- a/print/pdftk/Makefile
+++ b/print/pdftk/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pdftk
PORTVERSION= 1.41
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= http://www.pdfhacks.com/pdftk/ \
http://www.accesspdf.com/pdftk/
@@ -24,18 +24,20 @@ BUILD_DEPENDS= gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
# Get gcc version suffix without the dot in USE_GCC
CSUFF= ${_USE_GCC:S/.//}
-USE_GCC= 4.2
+USE_GCC= 4.5
USE_GMAKE= yes
USE_ICONV= yes
+USE_LDCONFIG= ${PREFIX}/lib/gcc${CSUFF}
# gcj/libgcj don't exist on some platforms
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= GNU gcj does not exist on this platform
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
+PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
MAKEFILE= Makefile.Generic
-MAKE_ENV= GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF}
+MAKE_ENV= GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF} OBJCOPY=${OBJCOPY}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/pdftk
@@ -52,8 +54,8 @@ post-extract:
#Based on info found via Google USENET Search: Adam McDougall, Gerald Pfeifer
#
- @${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L${LOCALBASE}/lib|g" ${WRKSRC}/Makefile.Generic
- @${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz -L${LOCALBASE}/lib|g" \
+ @${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib/gcc${CSUFF} -w|g" ${WRKSRC}/Makefile.Generic
+ @${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz -L${LOCALBASE}/lib -Wl,-rpath=${LOCALBASE}/lib/gcc${CSUFF} -w|g" \
${WRKSRC}/Makefile.Generic
@${REINPLACE_CMD} -e "s|//SID import com.lowagie.text.ImgRaw;|import com.lowagie.text.ImgRaw;|g" \
${WRKSRC}/../java_libs/com/lowagie/text/pdf/codec/PngImage.java