aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2013-04-24 20:48:08 +0800
committerolgeni <olgeni@FreeBSD.org>2013-04-24 20:48:08 +0800
commit231fcf2ca46c414738ee6bec00bf0d4c40212b9a (patch)
tree2b8ee971c3b92230f4a11aeddae389c97d6aada2 /lang
parentcc6afbb853e2b66b2bf14d3578fa247ef73cab82 (diff)
downloadfreebsd-ports-gnome-231fcf2ca46c414738ee6bec00bf0d4c40212b9a.tar.gz
freebsd-ports-gnome-231fcf2ca46c414738ee6bec00bf0d4c40212b9a.tar.zst
freebsd-ports-gnome-231fcf2ca46c414738ee6bec00bf0d4c40212b9a.zip
Only fetch the documentation files if DOCS is defined (the otp_doc_html
tarball can he heavy if you are short on bandwidth).
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index d3f90da15071..8f072a467ea6 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -15,7 +15,6 @@ MASTER_SITES= http://www.erlang.org/download/:erlangorg \
DISTNAME= otp_src_${ERL_RELEASE}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:erlangorg \
${ERLANG_MAN}:erlangorg \
- ${ERLANG_DOCS}:erlangorg \
${DOC_DISTFILES}
DIST_SUBDIR= erlang
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
@@ -25,13 +24,6 @@ PATCH_SITES= http://www.erlang.org/download
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A functional programming language from Ericsson
-DOC_DISTFILES= armstrong_thesis_2003.pdf:joe \
- bjarnelic.pdf:publications \
- erlang-book-part1.pdf:erlangorg \
- master_thesis_patterns.pdf:local \
- mnesia_overview.pdf:publications \
- programming_rules.pdf:erlangse
-
WRKSRC= ${WRKDIR}/otp_src_R15B03
SUB_FILES= pkg-message
@@ -58,6 +50,16 @@ ERL_RELEASE= R${PORTVERSION:S/.//g:U:S/1$/-1/}
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MDOCS}
+DOC_DISTFILES= ${ERLANG_DOCS}:erlangorg \
+ armstrong_thesis_2003.pdf:joe \
+ bjarnelic.pdf:publications \
+ erlang-book-part1.pdf:erlangorg \
+ master_thesis_patterns.pdf:local \
+ mnesia_overview.pdf:publications \
+ programming_rules.pdf:erlangse
+.endif
+
# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace
# on your system. You will need to configure STRIP, WITH_CTF and
# CFLAGS in your make.conf before building.