ok sthen@
This commit is contained in:
jasper 2015-06-26 06:35:54 +00:00
parent f9a4eb4d93
commit 6e3cf8b335
11 changed files with 7845 additions and 0 deletions

85
lang/erlang/18/Makefile Normal file
View File

@ -0,0 +1,85 @@
# $OpenBSD: Makefile,v 1.1 2015/06/26 06:35:54 jasper Exp $
BROKEN-alpha= beam/erl_process.c:6692: internal compiler error: in final_scan_insn, at final.c:2449
BROKEN-hppa = error: No native atomic implementation found.
BROKEN-sparc= Requires v9|v9a|v9b; requested architecture is sparclite.
V= 18.0
MAJ_V= 18
DISTNAME= otp_src_$V
PKGNAME= erlang-$V
EPOCH= 0
PKGSPEC= erlang->=18v0,<19v0
WANTLIB= c crypto kvm m ncurses pthread util
CONFIGURE_ARGS= --without-jinterface \
--without-odbc \
--enable-threads \
--enable-kernel-poll \
--disable-hipe \
--enable-smp-support
DOC_DIR= ${PREFIX}/lib/erlang${MAJ_V}/
FAKE_FLAGS = libdir_suffix="/erlang${MAJ_V}"
# Use the target 'gen-versions' to update this list
ERL_VERSIONS= \
ASN1_VSN 4.0 \
COMMON_TEST_VSN 1.11 \
COMPILER_VSN 6.0 \
COSEVENTDOMAIN_VSN 1.2 \
COSEVENT_VSN 2.2 \
COSFILETRANSFER_VSN 1.2 \
COSNOTIFICATION_VSN 1.2 \
COSPROPERTY_VSN 1.2 \
COSTIME_VSN 1.2 \
COSTRANSACTIONS_VSN 1.3 \
CRYPTO_VSN 3.6 \
DEBUGGER_VSN 4.1 \
DIALYZER_VSN 2.8 \
DIAMETER_VSN 1.10 \
EDOC_VSN 0.7.17 \
EI_VSN 3.8 \
ELDAP_VSN 1.2 \
EMACS_VSN 2.7.0 \
ERL_DOCGEN_VSN 0.4 \
ERL_INTERFACE_VSN 3.8 \
ET_VSN 1.5.1 \
EUNIT_VSN 2.2.10 \
GS_VSN 1.6 \
HIPE_VSN 3.12 \
IC_VSN 4.4 \
INETS_VSN 6.0 \
JINTERFACE_VSN 1.6 \
KERNEL_VSN 4.0 \
MEGACO_VSN 3.18 \
MNESIA_VSN 4.13 \
OBSERVER_VSN 2.1 \
ODBC_VSN 2.11 \
ORBER_VSN 3.8 \
OSE_VSN 1.1 \
OS_MON_VSN 2.4 \
OTP_MIBS_VSN 1.1 \
PARSETOOLS_VSN 2.1 \
PERCEPT_VSN 0.8.11 \
PUBLIC_KEY_VSN 1.0 \
RELTOOL_VSN 0.7 \
RUNTIME_TOOLS_VSN 1.9 \
SASL_VSN 2.5 \
SNMP_VSN 5.2 \
SSH_VSN 4.0 \
SSL_VSN 7.0 \
STDLIB_VSN 2.5 \
SYNTAX_TOOLS_VSN 1.7 \
TEST_SERVER_VSN 3.9 \
TOOLS_VSN 2.8 \
TYPER_VSN 0.9.9 \
WX_VSN 1.4 \
XMERL_VSN 1.3.8 \
WEBTOOL_VSN 0.9 \
ERTS_VSN 7.0
SYSTEM_VSN= ${V:R}
.include <bsd.port.mk>

6
lang/erlang/18/distinfo Normal file
View File

@ -0,0 +1,6 @@
SHA256 (otp_doc_html_18.0.tar.gz) = 5adm9oQG9QJfkh7DLolZk3GJ7RJF4ksDp0FWqImLA7I=
SHA256 (otp_doc_man_18.0.tar.gz) = 5E8Ow27gaDhnvCqpzH+7Ag2d/Vczjze5jc0HcfW5VnM=
SHA256 (otp_src_18.0.tar.gz) = oLado0tPIY631j2elvwSCqcle7bDeg9A+ziOGItBEao=
SIZE (otp_doc_html_18.0.tar.gz) = 33857396
SIZE (otp_doc_man_18.0.tar.gz) = 1389178
SIZE (otp_src_18.0.tar.gz) = 68124710

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-erts_emulator_Makefile_in,v 1.1 2015/06/26 06:35:54 jasper Exp $
--- erts/emulator/Makefile.in.orig Tue Jun 23 20:56:21 2015
+++ erts/emulator/Makefile.in Thu Jun 25 13:47:13 2015
@@ -267,13 +267,7 @@ ifeq (@EMU_LOCK_CHECKING@,yes)
NO_INLINE_FUNCTIONS=true
endif
-ifneq ($(filter tile-%,$(TARGET)), )
-# -O2 generally produces faster for tile-cc, because the code is smaller.
-# Since tile-cc looks like gcc, we need to override the normal gcc -O3 setting.
OPT_LEVEL = -O2
-else
-OPT_LEVEL = -O3
-endif
ifeq ($(GCC),yes)
ifeq ($(NO_INLINE_FUNCTIONS),true)

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-erts_etc_common_escript_c,v 1.1 2015/06/26 06:35:54 jasper Exp $
Let escript handle versioned binaries.
--- erts/etc/common/escript.c.orig Tue Jun 23 20:56:21 2015
+++ erts/etc/common/escript.c Thu Jun 25 13:47:10 2015
@@ -56,7 +56,7 @@ static int eargc; /* Number of arguments in eargv. */
# define DIRSEPSTR "/"
# define PATHSEPSTR ":"
# define PMAX PATH_MAX
-# define ERL_NAME "erl"
+# define ERL_NAME "erl${MAJ_V}"
#endif
#define UNSHIFT(s) eargc++, eargv--; eargv[0] = QUOTE(s)
@@ -473,7 +473,8 @@ main(int argc, char** argv)
if ( (_stricmp(basename, "escript.exe") == 0)
||(_stricmp(basename, "escript") == 0)) {
#else
- if (strcmp(basename, "escript") == 0) {
+ if ( (strcmp(basename, "escript") == 0)
+ ||(strcmp(basename, "escript${MAJ_V}") == 0)) {
#endif
/*
* Locate all options before the script name.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-erts_lib_src_Makefile_in,v 1.1 2015/06/26 06:35:54 jasper Exp $
--- erts/lib_src/Makefile.in.orig Tue Jun 23 20:56:21 2015
+++ erts/lib_src/Makefile.in Thu Jun 25 13:47:13 2015
@@ -39,7 +39,7 @@ INSTALL_PROGRAM=@INSTALL_PROGRAM@
ERLANG_OSTYPE=@ERLANG_OSTYPE@
OMIT_FP=false
-CFLAGS=$(subst O2,O3, @CFLAGS@)
+CFLAGS=@CFLAGS@
ifeq ($(TYPE),debug)
CFLAGS=@DEBUG_CFLAGS@ -DDEBUG

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_tools_c_src_Makefile_in,v 1.1 2015/06/26 06:35:54 jasper Exp $
--- lib/tools/c_src/Makefile.in.orig Tue Jun 23 20:56:21 2015
+++ lib/tools/c_src/Makefile.in Thu Jun 25 13:47:13 2015
@@ -114,7 +114,7 @@ EMEM_INCLUDES = -I$(ERL_TOP)/erts/include \
EMEM_HEADERS = erl_memory_trace_block_table.h
EMEM_SRCS = erl_memory.c erl_memory_trace_block_table.c
-EMEM_CFLAGS = $(THR_DEFS) $(subst O2,O3, $(CFLAGS)) $(EMEM_INCLUDES)
+EMEM_CFLAGS = $(THR_DEFS) $(CFLAGS) $(EMEM_INCLUDES)
EMEM_LDFLAGS = $(LDFLAGS)
ifeq ($(USING_VC), yes)

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-make_install_bin,v 1.1 2015/06/26 06:35:54 jasper Exp $
Create versioned symlinks in ${PREFIX}/bin/
--- make/install_bin.orig Tue Jun 23 20:56:21 2015
+++ make/install_bin Thu Jun 25 13:47:10 2015
@@ -691,9 +691,9 @@ done
# do it
for file in "$@"; do
- echo $ln_s "$DQ$src_dir/$file$DQ" "$file"
- $dbg $ln_s "$src_dir/$file" "$file" || {
- test "$tst" = "" || echo "{error,{$type,\"$file\",failed}}." > $tst
+ echo $ln_s "$DQ$src_dir/$file$DQ" "${file}${MAJ_V}"
+ $dbg $ln_s "$src_dir/$file" "${file}${MAJ_V}" || {
+ test "$tst" = "" || echo "{error,{$type,\"$file${MAJ_V}\",failed}}." > $tst
exit 1
}
done

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-make_target_mk,v 1.1 2015/06/26 06:35:55 jasper Exp $
--- make/target.mk.orig Tue Jun 23 20:56:21 2015
+++ make/target.mk Thu Jun 25 13:47:10 2015
@@ -25,6 +25,7 @@ ifeq ($(OVERRIDE_TARGET),)
ifeq ($(TARGET),)
TARGET := $(shell $(ERL_TOP)/erts/autoconf/config.guess)
+TARGET := $(shell $(ERL_TOP)/erts/autoconf/config.sub $(TARGET))
else

8
lang/erlang/18/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
Erlang is a programming language which has many features more commonly
associated with an operating system than with a programming language:
concurrent processes, scheduling, memory management, distribution,
networking, etc.
Erlang was designed at the Ericsson Computer Science Laboratory.
Open-source Erlang is being released to help encourage the spread
of Erlang outside Ericsson.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PFRAG.shared,v 1.1 2015/06/26 06:35:55 jasper Exp $
lib/erlang${SYSTEM_VSN}/lib/${ASN1}/priv/lib/asn1rt_nif.so
lib/erlang${SYSTEM_VSN}/lib/${CRYPTO}/priv/lib/crypto.so
lib/erlang${SYSTEM_VSN}/lib/${CRYPTO}/priv/lib/crypto_callback.so
lib/erlang${SYSTEM_VSN}/lib/${MEGACO}/priv/lib/megaco_flex_scanner_drv.so
lib/erlang${SYSTEM_VSN}/lib/${MEGACO}/priv/lib/megaco_flex_scanner_drv_mt.so
lib/erlang${SYSTEM_VSN}/lib/${RUNTIME_TOOLS}/priv/lib/dyntrace.so
lib/erlang${SYSTEM_VSN}/lib/${RUNTIME_TOOLS}/priv/lib/trace_file_drv.so
lib/erlang${SYSTEM_VSN}/lib/${RUNTIME_TOOLS}/priv/lib/trace_ip_drv.so

7641
lang/erlang/18/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff