ports/80652: Update print/pdftk ports (gcc33 to gcc34)
Patrick Dung
patrick_dkt at yahoo.com.hk
Thu May 5 09:40:03 UTC 2005
>Number: 80652
>Category: ports
>Synopsis: Update print/pdftk ports (gcc33 to gcc34)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu May 05 09:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Patrick Dung
>Release: FreeBSD 5.4-STABLE
>Organization:
>Environment:
FreeBSD piii.nodomain 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Apr 24 16:41:50 HKT 2005
>Description:
GCC 3.3 no longer has gcj which this port needs. So we suggest updating to 3.4.
>How-To-Repeat:
N/A
>Fix:
The attached file is a generic patch (there will be fewer places needed to change for gcc version change)
--- Makefile.orig Thu May 5 16:50:42 2005
+++ Makefile Thu May 5 17:02:55 2005
@@ -15,13 +15,18 @@
MAINTAINER= patrick_dkt at 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 @@
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:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list