summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2019-04-10 10:31:25 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2019-04-10 10:31:25 +0000
commitb4bbb8cb0a4132ca9e1f4cd2c775acd57c3f80b2 (patch)
treeb70101b4b1f2843490e356cab4099abc70a14f36
parente800c8caa85602a0e0aa23d155e751bae0988698 (diff)
downloadfreebsd-ports-b4bbb8cb0a4132ca9e1f4cd2c775acd57c3f80b2.zip
lang/erlang-runtime15: switch to GitHub build.
-rw-r--r--lang/erlang-runtime15/Makefile40
-rw-r--r--lang/erlang-runtime15/distinfo6
2 files changed, 21 insertions, 25 deletions
diff --git a/lang/erlang-runtime15/Makefile b/lang/erlang-runtime15/Makefile
index 713df32591b3..bf5e9f44f9c9 100644
--- a/lang/erlang-runtime15/Makefile
+++ b/lang/erlang-runtime15/Makefile
@@ -2,32 +2,28 @@
# $FreeBSD$
PORTNAME= erlang
-PORTVERSION= 15.b.03.1
-PORTREVISION= 13
+DISTVERSIONPREFIX= OTP_R
+DISTVERSION= 15B03-1
+PORTEPOCH= 1
CATEGORIES= lang parallel java
-MASTER_SITES= http://www.erlang.org/download/:erlangorg \
- http://erlang.stacken.kth.se/download/:erlangorg \
- http://www.csd.uu.se/ftp/mirror/erlang/download/:erlangorg \
- http://olgeni.olgeni.com/~olgeni/distfiles/:local \
- LOCAL/olgeni:local
PKGNAMESUFFIX= -runtime15
-DISTNAME= otp_src_${ERLANG_REL}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:erlangorg
DIST_SUBDIR= erlang
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= erlang@FreeBSD.org
COMMENT= Functional programming language from Ericsson
-WRKSRC= ${WRKDIR}/otp_src_R15B03
+USES= autoreconf:build gmake ncurses perl5
+USE_GITHUB= yes
+GH_PROJECT= otp
+USE_PERL5= build
-ERLANG_LIB= ${PORTNAME}${PORTVERSION:C/\..*//}
-ERLANG_REL= R${PORTVERSION:S/.//g:tu:S/1$/-1/}
+GNU_CONFIGURE= yes
+MAKE_JOBS_UNSAFE=yes
SUB_FILES= pkg-message
SUB_LIST= ERLANG_LIB=${ERLANG_LIB}
-MAKE_JOBS_UNSAFE=yes
+ERLANG_LIB= ${PORTNAME}${PORTVERSION:C/\..*//}
OPTIONS_DEFINE= DTRACE GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX
OPTIONS_DEFAULT=KQUEUE OPENSSL SCTP SMP THREADS
@@ -47,11 +43,6 @@ OPTIONS_EXCLUDE_DragonFly= HIPE SCTP
OPENSSL_VARS= BROKEN_SSL=openssl111
-GNU_CONFIGURE= yes
-LDFLAGS+= -L${LOCALBASE}/lib
-USES= gmake ncurses perl5
-USE_PERL5= build
-
# If you run Erlang and get a message resembling "WARNING: number of
# probes fixed does not match the number of defined probes (54 != 132,
# respectively)" you probably misconfigured DTrace in some way.
@@ -73,10 +64,9 @@ SCTP_CONFIGURE_ENABLE= sctp
SMP_CONFIGURE_ENABLE= smp-support
THREADS_CONFIGURE_ENABLE= threads
WX_CONFIGURE_WITH= wx-config=${WX_CONFIG}
+WX_USES= gl
WX_VARS= USE_WX=2.8+ WX_COMPS="wx contrib" USE_GL="gl glu"
-.include <bsd.port.options.mk>
-
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
@@ -97,7 +87,13 @@ MAKE_ARGS+= ARCH=x86
MAKE_ARGS+= ARCH=arm
.endif
-pre-configure-MX-off:
+pre-configure:
+ @cd ${WRKSRC} && ./otp_build autoconf
+
+pre-configure-WX-off:
+ echo "disabled by port options" > ${WRKSRC}/lib/debugger/SKIP
+ echo "disabled by port options" > ${WRKSRC}/lib/et/SKIP
+ echo "disabled by port options" > ${WRKSRC}/lib/observer/SKIP
echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP
post-configure-ODBC-on:
diff --git a/lang/erlang-runtime15/distinfo b/lang/erlang-runtime15/distinfo
index 1318bc931ca5..5b6fa6a42ba4 100644
--- a/lang/erlang-runtime15/distinfo
+++ b/lang/erlang-runtime15/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1523228884
-SHA256 (erlang/otp_src_R15B03-1.tar.gz) = 4bccac86dd76aec050252e44276a0283a0df9218e6470cf042a9b9f9dfc9476c
-SIZE (erlang/otp_src_R15B03-1.tar.gz) = 76123810
+TIMESTAMP = 1552839129
+SHA256 (erlang/erlang-otp-OTP_R15B03-1_GH0.tar.gz) = bc0defdb2b234e56a39a28ca8341ea102d5aa09a41b64258bee199ef912b47eb
+SIZE (erlang/erlang-otp-OTP_R15B03-1_GH0.tar.gz) = 33936773