ports/88377: gcc3.4 does not install gcj causing pdftk to fail
Michael Joyner
mjoyner at ewc.edu
Wed Nov 2 13:00:27 UTC 2005
The following reply was made to PR ports/88377; it has been noted by GNATS.
From: Michael Joyner <mjoyner at ewc.edu>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/88377: gcc3.4 does not install gcj causing pdftk to fail
Date: Wed, 02 Nov 2005 07:56:42 -0500
This is a multi-part message in MIME format.
--------------050204050007060409050100
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Marcus Alves Grando wrote:
>Dear submitter,
>
>You forgot patch. Please submit followup.
>
>Thanks
>
>
Oops!
--------------050204050007060409050100
Content-Type: text/plain;
name="pdftk.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pdftk.patch"
diff -U2 -urN pdftk.orig/Makefile pdftk/Makefile
--- pdftk/Makefile Thu Oct 20 16:11:09 2005
+++ pdftk/Makefile Tue Nov 1 21:25:40 2005
@@ -19,7 +19,7 @@
NOT_FOR_ARCHS= amd64 ia64 sparc64
-BROKEN= "Broken dependency"
-DEPRECATED= ${BROKEN}
-EXPIRATION_DATE=2005-09-22
+#BROKEN= "Broken dependency"
+#DEPRECATED= ${BROKEN}
+#EXPIRATION_DATE=2005-09-22
# Get gcc version suffix without the dot in USE_GCC
@@ -29,5 +29,5 @@
BUILD_DEPENDS= gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
-USE_GCC= 3.4
+USE_GCC= 4.1
USE_GMAKE= yes
USE_ICONV= yes
@@ -45,5 +45,22 @@
@${REINPLACE_CMD} -e "s|TOOLPATH=|TOOLPATH=${LOCALBASE}/bin/|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
+
+#2005-10-29 - mjoyner at vbservices.net/mjoyner at ewc.edu
+#as shipped, pdftk compiles fine with 3.4 gcj, as we currently only have 4.1 gcj available,
+#fix things so that it will compile. (compile tested on 5.4-STABLE)
+#
+#The resulting binary from using the 4.1 compiler suite has *NOT* been regression tested!
+#Based on info found via Google USENET Search: Adam McDougall, Gerald Pfeifer
+#
+
+ @${REINPLACE_CMD} -e "s|GCJFLAGS=|GCJFLAGS= -L/usr/local/lib|g" ${WRKSRC}/Makefile.Generic
+ @${REINPLACE_CMD} -e "s|CXXFLAGS= -lgcj|CXXFLAGS= -lgcj ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz -L/usr/local/lib|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
+ @${REINPLACE_CMD} -e "s|^..java_libs_root./gnu/gcj/convert/convert.a|# x-nay the convert.a|g" ${WRKSRC}/Makefile.Base
+ @${REINPLACE_CMD} -e "s|^..java_libs_root./gnu_local/java/security/security.a .|$$\(java_libs_root\)/gnu_local/java/security/security.a|g" ${WRKSRC}/Makefile.Base
+
+
do-install:
--------------050204050007060409050100--
More information about the freebsd-ports-bugs
mailing list