aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2004-06-27 09:38:01 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2004-06-27 09:38:01 +0000
commit849d2ece7c54e28129adb04ab9197bc40cec3b26 (patch)
tree54c586e0ed835c35773fd10589da5bc2e70fd773 /lang
parent0ce877c8488e218be0a6dbe3b780e060360e6f1f (diff)
downloadports-849d2ece7c54e28129adb04ab9197bc40cec3b26.tar.gz
ports-849d2ece7c54e28129adb04ab9197bc40cec3b26.zip
Enable SAE/escript function, which allows creation of standalone Erlang
scripts.
Notes
Notes: svn path=/head/; revision=112354
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/Makefile10
-rw-r--r--lang/erlang/Makefile.lib1
-rw-r--r--lang/erlang/files/patch-Makefile.in19
-rw-r--r--lang/erlang/files/patch-erts_emulator_Makefile.in13
-rw-r--r--lang/erlang/pkg-plist8
-rw-r--r--lang/erlang14/Makefile10
-rw-r--r--lang/erlang14/Makefile.lib1
-rw-r--r--lang/erlang14/files/patch-Makefile.in19
-rw-r--r--lang/erlang14/files/patch-erts_emulator_Makefile.in13
-rw-r--r--lang/erlang14/pkg-plist8
10 files changed, 94 insertions, 8 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index a5ea9239a684..d1247bfbab36 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= r9c2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
@@ -36,6 +37,7 @@ ERLANG_DOCS= otp_html_R9C-2.tar.gz
USE_GMAKE= yes
USE_PERL5= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386
@@ -102,6 +104,14 @@ pre-configure:
# rest, not in share/doc/erlang as it should, because of relative
# links in the documentation.
post-install:
+ @for SCRIPT in ecc elink ear escript; do \
+ ${REINPLACE_CMD} -e "s@ERLANG_EARS=.*@ERLANG_EARS=${LOCALBASE}/lib/erlang/erts-${ERTS_VSN}@" ${LOCALBASE}/bin/$${SCRIPT}; \
+ done
+
+ @for SCRIPT in ecc elink; do \
+ ${REINPLACE_CMD} -e "s@exec .*beam_evm@exec beam_evm@" ${LOCALBASE}/bin/$${SCRIPT}; \
+ done
+
@${LN} -sf ${LOCALBASE}/lib/erlang/lib/erl_interface-*/bin/erl_call ${LOCALBASE}/bin/erl_call
@${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_MAN} \
-C ${PREFIX}/lib/erlang
diff --git a/lang/erlang/Makefile.lib b/lang/erlang/Makefile.lib
index 717ef39de5fc..5a12ba431947 100644
--- a/lang/erlang/Makefile.lib
+++ b/lang/erlang/Makefile.lib
@@ -1,5 +1,6 @@
# $FreeBSD$
+ERTS_VSN= 5.3.6.3
OTP_LIBS= appmon-2.1.2 \
asn1-1.4.4.2 \
compiler-4.2.3 \
diff --git a/lang/erlang/files/patch-Makefile.in b/lang/erlang/files/patch-Makefile.in
index 76cd405e8322..f3c31acac387 100644
--- a/lang/erlang/files/patch-Makefile.in
+++ b/lang/erlang/files/patch-Makefile.in
@@ -1,21 +1,32 @@
$FreeBSD$
---- Makefile.in.orig Sat Jan 24 21:18:56 2004
-+++ Makefile.in Sat Jan 24 21:19:22 2004
-@@ -505,14 +505,9 @@
+--- Makefile.in.orig Fri Dec 19 13:55:58 2003
++++ Makefile.in Sat Jun 26 20:25:23 2004
+@@ -534,14 +534,20 @@
# Erlang base public files
#
install.bin:
- rm -f $(BINDIR)/erl $(BINDIR)/erlc \
- $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/ear $(BINDIR)/escript
-+ rm -f $(BINDIR)/erl $(BINDIR)/erlc
++ rm -f $(BINDIR)/erl $(BINDIR)/erlc $(BINDIR)/run_erl \
++ $(BINDIR)/to_erl $(BINDIR)/beam_evm $(BINDIR)/ear \
++ $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/erlexec \
++ $(BINDIR)/escript
${LN_S} $(ERLANG_BINDIR)/erl $(BINDIR)/erl
${LN_S} $(ERLANG_BINDIR)/erlc $(BINDIR)/erlc
- ${LN_S} $(ERLANG_BINDIR)/ecc $(BINDIR)/ecc
- ${LN_S} $(ERLANG_BINDIR)/elink $(BINDIR)/elink
- ${LN_S} $(ERLANG_BINDIR)/ear $(BINDIR)/ear
- ${LN_S} $(ERLANG_BINDIR)/escript $(BINDIR)/escript
++ ${LN_S} $(ERLANG_BINDIR)/run_erl $(BINDIR)/run_erl
++ ${LN_S} $(ERLANG_BINDIR)/to_erl $(BINDIR)/to_erl
++ ${LN_S} $(ERLANG_ERTSBINDIR)/beam_evm $(BINDIR)/beam_evm
++ ${LN_S} $(ERLANG_ERTSBINDIR)/ear $(BINDIR)/ear
++ ${LN_S} $(ERLANG_ERTSBINDIR)/ecc $(BINDIR)/ecc
++ ${LN_S} $(ERLANG_ERTSBINDIR)/elink $(BINDIR)/elink
++ ${LN_S} $(ERLANG_ERTSBINDIR)/erlexec $(BINDIR)/erlexec
++ ${LN_S} $(ERLANG_ERTSBINDIR)/escript $(BINDIR)/escript
#
# Directories needed before we can install
diff --git a/lang/erlang/files/patch-erts_emulator_Makefile.in b/lang/erlang/files/patch-erts_emulator_Makefile.in
new file mode 100644
index 000000000000..cae12b839cda
--- /dev/null
+++ b/lang/erlang/files/patch-erts_emulator_Makefile.in
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- erts/emulator/Makefile.in.orig Sat Jun 26 13:57:01 2004
++++ erts/emulator/Makefile.in Sat Jun 26 13:57:39 2004
+@@ -220,6 +220,7 @@
+ $(INSTALL_DATA) $(RELEASE_INCLUDES) $(RELSYSDIR)/src
+ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE) $(RELSYSDIR)/bin
+ ifeq ($(ERLANG_OSTYPE), unix)
++ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_SAE) $(RELSYSDIR)/bin
+ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_ELIB) $(RELSYSDIR)/bin
+ $(INSTALL_PROGRAM) $(BINDIR)/$(CS_EXECUTABLE) $(RELSYSDIR)/bin
+ endif
diff --git a/lang/erlang/pkg-plist b/lang/erlang/pkg-plist
index 022066e8e3f7..49046c4e9cf0 100644
--- a/lang/erlang/pkg-plist
+++ b/lang/erlang/pkg-plist
@@ -1,6 +1,14 @@
+bin/beam_evm
+bin/ear
+bin/ecc
+bin/elink
bin/erl
bin/erl_call
bin/erlc
+bin/erlexec
+bin/escript
+bin/run_erl
+bin/to_erl
@comment Insert PLIST.lib-erlang here
@comment -=[ begin PLIST.lib-erlang ]=-
@comment -=[ end PLIST.lib-erlang ]=-
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index a5ea9239a684..d1247bfbab36 100644
--- a/lang/erlang14/Makefile
+++ b/lang/erlang14/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= r9c2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \
@@ -36,6 +37,7 @@ ERLANG_DOCS= otp_html_R9C-2.tar.gz
USE_GMAKE= yes
USE_PERL5= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386
@@ -102,6 +104,14 @@ pre-configure:
# rest, not in share/doc/erlang as it should, because of relative
# links in the documentation.
post-install:
+ @for SCRIPT in ecc elink ear escript; do \
+ ${REINPLACE_CMD} -e "s@ERLANG_EARS=.*@ERLANG_EARS=${LOCALBASE}/lib/erlang/erts-${ERTS_VSN}@" ${LOCALBASE}/bin/$${SCRIPT}; \
+ done
+
+ @for SCRIPT in ecc elink; do \
+ ${REINPLACE_CMD} -e "s@exec .*beam_evm@exec beam_evm@" ${LOCALBASE}/bin/$${SCRIPT}; \
+ done
+
@${LN} -sf ${LOCALBASE}/lib/erlang/lib/erl_interface-*/bin/erl_call ${LOCALBASE}/bin/erl_call
@${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_MAN} \
-C ${PREFIX}/lib/erlang
diff --git a/lang/erlang14/Makefile.lib b/lang/erlang14/Makefile.lib
index 717ef39de5fc..5a12ba431947 100644
--- a/lang/erlang14/Makefile.lib
+++ b/lang/erlang14/Makefile.lib
@@ -1,5 +1,6 @@
# $FreeBSD$
+ERTS_VSN= 5.3.6.3
OTP_LIBS= appmon-2.1.2 \
asn1-1.4.4.2 \
compiler-4.2.3 \
diff --git a/lang/erlang14/files/patch-Makefile.in b/lang/erlang14/files/patch-Makefile.in
index 76cd405e8322..f3c31acac387 100644
--- a/lang/erlang14/files/patch-Makefile.in
+++ b/lang/erlang14/files/patch-Makefile.in
@@ -1,21 +1,32 @@
$FreeBSD$
---- Makefile.in.orig Sat Jan 24 21:18:56 2004
-+++ Makefile.in Sat Jan 24 21:19:22 2004
-@@ -505,14 +505,9 @@
+--- Makefile.in.orig Fri Dec 19 13:55:58 2003
++++ Makefile.in Sat Jun 26 20:25:23 2004
+@@ -534,14 +534,20 @@
# Erlang base public files
#
install.bin:
- rm -f $(BINDIR)/erl $(BINDIR)/erlc \
- $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/ear $(BINDIR)/escript
-+ rm -f $(BINDIR)/erl $(BINDIR)/erlc
++ rm -f $(BINDIR)/erl $(BINDIR)/erlc $(BINDIR)/run_erl \
++ $(BINDIR)/to_erl $(BINDIR)/beam_evm $(BINDIR)/ear \
++ $(BINDIR)/ecc $(BINDIR)/elink $(BINDIR)/erlexec \
++ $(BINDIR)/escript
${LN_S} $(ERLANG_BINDIR)/erl $(BINDIR)/erl
${LN_S} $(ERLANG_BINDIR)/erlc $(BINDIR)/erlc
- ${LN_S} $(ERLANG_BINDIR)/ecc $(BINDIR)/ecc
- ${LN_S} $(ERLANG_BINDIR)/elink $(BINDIR)/elink
- ${LN_S} $(ERLANG_BINDIR)/ear $(BINDIR)/ear
- ${LN_S} $(ERLANG_BINDIR)/escript $(BINDIR)/escript
++ ${LN_S} $(ERLANG_BINDIR)/run_erl $(BINDIR)/run_erl
++ ${LN_S} $(ERLANG_BINDIR)/to_erl $(BINDIR)/to_erl
++ ${LN_S} $(ERLANG_ERTSBINDIR)/beam_evm $(BINDIR)/beam_evm
++ ${LN_S} $(ERLANG_ERTSBINDIR)/ear $(BINDIR)/ear
++ ${LN_S} $(ERLANG_ERTSBINDIR)/ecc $(BINDIR)/ecc
++ ${LN_S} $(ERLANG_ERTSBINDIR)/elink $(BINDIR)/elink
++ ${LN_S} $(ERLANG_ERTSBINDIR)/erlexec $(BINDIR)/erlexec
++ ${LN_S} $(ERLANG_ERTSBINDIR)/escript $(BINDIR)/escript
#
# Directories needed before we can install
diff --git a/lang/erlang14/files/patch-erts_emulator_Makefile.in b/lang/erlang14/files/patch-erts_emulator_Makefile.in
new file mode 100644
index 000000000000..cae12b839cda
--- /dev/null
+++ b/lang/erlang14/files/patch-erts_emulator_Makefile.in
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- erts/emulator/Makefile.in.orig Sat Jun 26 13:57:01 2004
++++ erts/emulator/Makefile.in Sat Jun 26 13:57:39 2004
+@@ -220,6 +220,7 @@
+ $(INSTALL_DATA) $(RELEASE_INCLUDES) $(RELSYSDIR)/src
+ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE) $(RELSYSDIR)/bin
+ ifeq ($(ERLANG_OSTYPE), unix)
++ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_SAE) $(RELSYSDIR)/bin
+ $(INSTALL_PROGRAM) $(BINDIR)/$(EMULATOR_EXECUTABLE_ELIB) $(RELSYSDIR)/bin
+ $(INSTALL_PROGRAM) $(BINDIR)/$(CS_EXECUTABLE) $(RELSYSDIR)/bin
+ endif
diff --git a/lang/erlang14/pkg-plist b/lang/erlang14/pkg-plist
index 022066e8e3f7..49046c4e9cf0 100644
--- a/lang/erlang14/pkg-plist
+++ b/lang/erlang14/pkg-plist
@@ -1,6 +1,14 @@
+bin/beam_evm
+bin/ear
+bin/ecc
+bin/elink
bin/erl
bin/erl_call
bin/erlc
+bin/erlexec
+bin/escript
+bin/run_erl
+bin/to_erl
@comment Insert PLIST.lib-erlang here
@comment -=[ begin PLIST.lib-erlang ]=-
@comment -=[ end PLIST.lib-erlang ]=-