diff options
author | olgeni <olgeni@FreeBSD.org> | 2015-02-01 02:46:25 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2015-02-01 02:46:25 +0800 |
commit | 8c4eed39f4f5158c1d4d9565908e044d135c47fa (patch) | |
tree | 34fedd8bc0b5042f29ee4de5faaf89181eaa2973 /lang/erlang-runtime17 | |
parent | 63bac88f3d73b39fd68ed45a2148fc2e685d87ea (diff) | |
download | freebsd-ports-gnome-8c4eed39f4f5158c1d4d9565908e044d135c47fa.tar.gz freebsd-ports-gnome-8c4eed39f4f5158c1d4d9565908e044d135c47fa.tar.zst freebsd-ports-gnome-8c4eed39f4f5158c1d4d9565908e044d135c47fa.zip |
Sort OPTIONS_DEFINE and OPTIONS_DEFAULT.
Create SKIP files for applications disabled by port options.
Remove disabled applications from ${STAGEDIR}.
Diffstat (limited to 'lang/erlang-runtime17')
-rw-r--r-- | lang/erlang-runtime17/Makefile | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/lang/erlang-runtime17/Makefile b/lang/erlang-runtime17/Makefile index 6b5fec5c9ef9..e7b14f9fc86b 100644 --- a/lang/erlang-runtime17/Makefile +++ b/lang/erlang-runtime17/Makefile @@ -3,6 +3,7 @@ PORTNAME= erlang PORTVERSION= 17.4 +PORTREVISION= 1 CATEGORIES= lang parallel java MASTER_SITES= http://www.erlang.org/download/:erlangorg \ http://erlang.stacken.kth.se/download/:erlangorg \ @@ -28,7 +29,7 @@ SUB_LIST= ERLANG_LIB=${ERLANG_LIB} MAKE_JOBS_UNSAFE=yes -OPTIONS_DEFINE= GCC DOCS GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX DTRACE +OPTIONS_DEFINE= DOCS DTRACE GCC GS HIPE JAVA KQUEUE ODBC OPENSSL SCTP SMP THREADS WX GCC_DESC= Use current GCC HIPE_DESC= Build native HiPE compiler @@ -39,7 +40,7 @@ WX_DESC= Enable WX application GS_DESC= Enable GS application (deprecated) DTRACE_DESC= Enable DTrace support -OPTIONS_DEFAULT=SMP OPENSSL THREADS SCTP KQUEUE +OPTIONS_DEFAULT=KQUEUE OPENSSL SCTP SMP THREADS ERL_RELEASE= ${PORTVERSION} @@ -162,6 +163,14 @@ MAKE_ARGS+= ARCH=x86 # rest, not in share/doc/erlang as it should, because of relative # links in the documentation. +pre-configure: +.if ! ${PORT_OPTIONS:MHIPE} + echo "disabled by port options" > ${WRKSRC}/lib/hipe/SKIP +.endif +.if ! ${PORT_OPTIONS:MWX} + echo "disabled by port options" > ${WRKSRC}/lib/wx/SKIP +.endif + post-install: for SECTION in 1 3 4 6 7; do \ ${TAR} --unlink -xzpf ${DISTDIR}/${DIST_SUBDIR}/${ERLANG_MAN} \ @@ -177,6 +186,24 @@ post-install: ${STAGEDIR}${PREFIX}/lib/${ERLANG_LIB}/lib/dialyzer-*/doc/ .endif +.if ! ${PORT_OPTIONS:MGS} + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/gs-* +.endif +.if ! ${PORT_OPTIONS:MJAVA} + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/jinterface-* +.endif +.if ! ${PORT_OPTIONS:MODBC} + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/odbc-* +.endif +.if ! ${PORT_OPTIONS:MOPENSSL} + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/crypto-* + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/ssh-* + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/ssl-* +.endif +.if ! ${PORT_OPTIONS:MWX} + ${RM} -r ${STAGEDIR}${PREFIX}/lib/erlang/lib/wx-* +.endif + @cd ${STAGEDIR}${PREFIX}; ${FIND} lib/${ERLANG_LIB}/* -type d -empty \ | ${SORT} \ | ${SED} -e 's#^#@dir #g' \ |