summaryrefslogtreecommitdiff
path: root/lang/J/files/patch-make_build__jconsole.sh
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2018-04-08 09:41:15 +0000
committerKurt Jaeger <pi@FreeBSD.org>2018-04-08 09:41:15 +0000
commitc83a73ccc887622e8f5839c2f681c5b28506f19e (patch)
treecca1662f9c7f5245a7854691bedfa0f13b506c08 /lang/J/files/patch-make_build__jconsole.sh
parent- Add LICENSE (diff)
New port: lang/J
J (J language) is a high-level, general-purpose, high-performance programming language. J is portable and runs on 32/64-bit Windows/Linux/Mac as well as iOS, Android, and other platforms. WWW: http://www.jsoftware.com PR: 226186 Submitted by: Joao Neves <sevenjp@gmail.com>
Diffstat (limited to 'lang/J/files/patch-make_build__jconsole.sh')
-rw-r--r--lang/J/files/patch-make_build__jconsole.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/J/files/patch-make_build__jconsole.sh b/lang/J/files/patch-make_build__jconsole.sh
new file mode 100644
index 000000000000..8a29ab13bba1
--- /dev/null
+++ b/lang/J/files/patch-make_build__jconsole.sh
@@ -0,0 +1,29 @@
+--- make/build_jconsole.sh.orig 2018-02-24 19:49:42 UTC
++++ make/build_jconsole.sh
+@@ -1,9 +1,8 @@
+ #!/usr/local/bin/bash
+ # $1 is j32 or j64
+-cd ~
+-. jvars.sh
++. make/jvars.sh
+
+-common=" -fPIC -O1 -Wextra -Wno-unused-parameter "
++common=" -fPIC -Wextra -Wno-unused-parameter "
+
+ case $jplatform\_$1 in
+
+@@ -31,6 +30,14 @@ darwin_j64)
+ COMPILE="$common -DREADLINE -mmacosx-version-min=10.5"
+ LINK=" -ledit -ldl -lncurses -mmacosx-version-min=10.5 -o jconsole "
+ ;;
++freebsd_j32)
++COMPILE="$common -m32 -DREADLINE"
++LINK="-L${LOCALBASE}/lib -ledit -m32 -o jconsole "
++;;
++freebsd_j64)
++COMPILE="$common -DREADLINE"
++LINK="-L${LOCALBASE}/lib -ledit -o jconsole "
++;;
+ *)
+ echo no case for those parameters
+ exit