aboutsummaryrefslogtreecommitdiff
path: root/java/java-gcj-compat
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2006-07-29 12:35:48 +0000
committerMaho Nakata <maho@FreeBSD.org>2006-07-29 12:35:48 +0000
commitb5d561965712a074155c360231b238c2b5c1b8dc (patch)
treec6a605edd9ffd269b94931cd80adf01c35aa9a7c /java/java-gcj-compat
parent4b67be2fc9527fc52d32c37b41ac78d6b07fdafe (diff)
downloadports-b5d561965712a074155c360231b238c2b5c1b8dc.tar.gz
ports-b5d561965712a074155c360231b238c2b5c1b8dc.zip
Notes
Diffstat (limited to 'java/java-gcj-compat')
-rw-r--r--java/java-gcj-compat/Makefile2
-rw-r--r--java/java-gcj-compat/files/patch-java.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/java/java-gcj-compat/Makefile b/java/java-gcj-compat/Makefile
index 0ea58b2d02a6..318b64cea0a0 100644
--- a/java/java-gcj-compat/Makefile
+++ b/java/java-gcj-compat/Makefile
@@ -7,6 +7,7 @@
PORTNAME= java-gcj-compat
PORTVERSION= 1.0.56 # intentionally not upgrading
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= ftp://sources.redhat.com/pub/rhug/
@@ -31,6 +32,7 @@ CONFIGURE_ARGS+="-with-origin-name=gcj41" "--with-gcc-suffix=41" \
pre-configure:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e "s|%%GCCSUFFIX%%|${GCJVER}|" ${WRKSRC}/java.c
post-install:
@${LN} -sf ${PREFIX}/lib/jvm/java-1.4.2-gcj41-1.4.2.0 ${PREFIX}/lib/jvm/java-gcj
diff --git a/java/java-gcj-compat/files/patch-java.c b/java/java-gcj-compat/files/patch-java.c
new file mode 100644
index 000000000000..4798451e9eff
--- /dev/null
+++ b/java/java-gcj-compat/files/patch-java.c
@@ -0,0 +1,11 @@
+--- java.c~ Sat Jul 29 21:29:35 2006
++++ java.c Sat Jul 29 21:29:52 2006
+@@ -103,7 +103,7 @@
+
+ free (newpath);
+
+- error_code = execv (GCJ_BIN_DIR "/gij", set_java_ext_dir (argc, argv));
++ error_code = execv (GCJ_BIN_DIR "/gij%%GCCSUFFIX%%", set_java_ext_dir (argc, argv));
+
+ fprintf (stderr, "error spawning gij\n");
+