aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-05 23:57:34 +0800
committerpav <pav@FreeBSD.org>2005-05-05 23:57:34 +0800
commit58cb11ff46e348bb0e26bf98b987ada44217ae32 (patch)
tree28fbe9d466825d2344a53b5e5fd52ff1d9840abd /print
parentd56984bacedb86e3779152074a59cd89e5536b73 (diff)
downloadfreebsd-ports-gnome-58cb11ff46e348bb0e26bf98b987ada44217ae32.tar.gz
freebsd-ports-gnome-58cb11ff46e348bb0e26bf98b987ada44217ae32.tar.zst
freebsd-ports-gnome-58cb11ff46e348bb0e26bf98b987ada44217ae32.zip
- Switch to gcc34, as gcc33 lost gcj lately
PR: ports/80652 Submitted by: Patrick Dung <patrick_dkt@yahoo.com.hk> (maintainer)
Diffstat (limited to 'print')
-rw-r--r--print/pdftk/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/print/pdftk/Makefile b/print/pdftk/Makefile
index 3f3659ec3fbf..1a5ca89ae83d 100644
--- a/print/pdftk/Makefile
+++ b/print/pdftk/Makefile
@@ -15,13 +15,18 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:R}.${PORTVERSION:E}
MAINTAINER= patrick_dkt@yahoo.com.hk
COMMENT= A simple tool for doing everyday things with PDF documents
-# needs gcj
-BUILD_DEPENDS= gcj33:${PORTSDIR}/lang/gcc33
-
-# gcj don't exist on (and gcc33 is broken on amd64)
+# gcj/libgcj don't exist on these platforms
NOT_FOR_ARCHS= amd64 ia64 sparc64
-USE_GCC= 3.3
+USE_GCC= 3.4
+
+# Get gcc version suffix without the dot in USE_GCC
+CSUFF= ${USE_GCC:S/.//}
+
+# needs gcj
+BUILD_DEPENDS= gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
+
+USE_GCC= 3.4
USE_GMAKE= yes
USE_ICONV= yes
USE_REINPLACE= yes
@@ -29,14 +34,14 @@ USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
MAKEFILE= Makefile.Generic
-MAKE_ENV= CXX=g++33 GCJ=gcj33 GCJH=gcjh33
+MAKE_ENV= CXX=g++${CSUFF} GCJ=gcj${CSUFF} GCJH=gcjh${CSUFF}
MAN1= ${PORTNAME}.1
PLIST_FILES= bin/pdftk
post-extract:
@${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|g" ${WRKSRC}/Makefile.Generic
- @${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=33|g" ${WRKSRC}/Makefile.Generic
+ @${REINPLACE_CMD} -e "s|VERSUFF=|VERSUFF=${CSUFF}|g" ${WRKSRC}/Makefile.Generic
@${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Generic
do-install: