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-runtime16 | |
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-runtime16')
-rw-r--r-- | lang/erlang-runtime16/Makefile | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/lang/erlang-runtime16/Makefile b/lang/erlang-runtime16/Makefile index 124fbac2ea8f..79d97f30c86c 100644 --- a/lang/erlang-runtime16/Makefile +++ b/lang/erlang-runtime16/Makefile @@ -3,7 +3,7 @@ PORTNAME= erlang PORTVERSION= 16.b.03.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang parallel java MASTER_SITES= http://www.erlang.org/download/:erlangorg \ http://erlang.stacken.kth.se/download/:erlangorg \ @@ -29,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 @@ -40,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= R${PORTVERSION:S/.//g:tu:S/1$/-1/} @@ -163,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} \ @@ -178,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' \ |