diff options
author | olgeni <olgeni@FreeBSD.org> | 2003-06-23 23:51:31 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2003-06-23 23:51:31 +0800 |
commit | c01c1972090414166a271d2bf77f5935db2b6857 (patch) | |
tree | fbe96e24db8f3bc17f8b4f6d213750925794c8e7 | |
parent | 4fe209ea1b8ad1d05a27fb6a2e55d0d1c6b1da3c (diff) | |
download | freebsd-ports-gnome-c01c1972090414166a271d2bf77f5935db2b6857.tar.gz freebsd-ports-gnome-c01c1972090414166a271d2bf77f5935db2b6857.tar.zst freebsd-ports-gnome-c01c1972090414166a271d2bf77f5935db2b6857.zip |
* Set java/jdk14 as the default JDK.
* Rearrange Makefile using bsd.port.pre.mk and bsd.port.post.mk: the check
for ${JAVABINDIR}/java always returned false because JAVABINDIR depends on
LOCALBASE, which was not defined because the Makefile used bsd.port.mk.
-rw-r--r-- | lang/erlang/Makefile | 57 | ||||
-rw-r--r-- | lang/erlang14/Makefile | 57 |
2 files changed, 56 insertions, 58 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index c1fbfab28e78..9aa3885c0946 100644 --- a/lang/erlang/Makefile +++ b/lang/erlang/Makefile @@ -14,6 +14,7 @@ MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \ http://erlang.stacken.kth.se/download/ \ http://www.csd.uu.se/ftp/mirror/erlang/download/ DISTNAME= otp_src_R9B-1 +DIST_SUBDIR= erlang DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ERLANG_MAN} ${ERLANG_DOCS} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -25,33 +26,31 @@ MAINTAINER= olgeni@FreeBSD.org COMMENT= A functional programming language from Ericsson # Set JAVABINDIR to where you have javac, if different from below -JAVABINDIR?= ${LOCALBASE}/jdk1.3.1/bin -JAVAPORT?= ${JAVABINDIR}/javac:${PORTSDIR}/java/jdk13 - -.if !exists(${JAVABINDIR}/java) -WITHOUT_JAVA= yes -.endif - -CONFIGURE_TARGET= # Empty - -# Don't clutter up /usr/ports/distfiles with all distfiles (including patches) -DIST_SUBDIR= erlang +JAVABINDIR?= ${LOCALBASE}/jdk1.4.1/bin +JAVAPORT?= ${JAVABINDIR}/javac:${PORTSDIR}/java/jdk14 ERLANG_MAN= otp_man_R9B-1.tar.gz .if !defined(NOPORTDOCS) ERLANG_DOCS= otp_html_R9B-1.tar.gz .endif -.if !defined(WITHOUT_X11) -RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 -.endif - USE_GMAKE= yes USE_PERL5= yes GNU_CONFIGURE= yes +CONFIGURE_TARGET= # Empty CONFIGURE_ARGS+= --enable-threads --enable-hipe +.if !defined(WITHOUT_X11) +RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 +.endif + +.include <bsd.port.pre.mk> + +.if !exists(${JAVABINDIR}/java) +WITHOUT_JAVA= yes +.endif + .if !defined(WITHOUT_JAVA) # The Java applications that are part of the Erlang distribution are # not strictly necessary - it is included for completeness sake. A @@ -67,8 +66,21 @@ BUILD_DEPENDS+= ${JAVAPORT} CONFIGURE_ENV+= PATH=${PATH}:${JAVABINDIR} MAKE_ENV+= PATH=${PATH}:${JAVABINDIR} SCRIPT_ENV+= PATH=${PATH}:${JAVABINDIR} + .endif +# The man-pages are put (in spite of FreeBSD's port convention) in a private +# subdir. This is to avoid cluttering up the man page name space. Also the +# Erlang man pages are more of internal documentation using the man format than +# actual system man pages. (erl.1 and epmd.1 perhaps being the exception). + +NOMANCOMPRESS= yes + +MAN1PREFIX= ${PREFIX}/lib/erlang +MAN3PREFIX= ${PREFIX}/lib/erlang +MAN4PREFIX= ${PREFIX}/lib/erlang +MAN6PREFIX= ${PREFIX}/lib/erlang + # Workaround for a ./configure recursion bug which leads to INSTALL being # set to "../../../../[...]" post-patch: @@ -143,20 +155,7 @@ post-install: @${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-erlang @cd ${WRKDIR} ; ex < ex.script -# The man-pages are put (in spite of FreeBSD's port convention) in a -# private subdir. This is to avoid cluttering up the man page name -# space. Also the Erlang man pages are more of internal documentation -# using the man format than actual system man pages. (The erl.1 and -# epmd.1 perhaps being the exception). - -NOMANCOMPRESS= yes - -MAN1PREFIX= ${PREFIX}/lib/erlang -MAN3PREFIX= ${PREFIX}/lib/erlang -MAN4PREFIX= ${PREFIX}/lib/erlang -MAN6PREFIX= ${PREFIX}/lib/erlang - .include "Makefile.lib" .include "Makefile.man" -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index c1fbfab28e78..9aa3885c0946 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/Makefile @@ -14,6 +14,7 @@ MASTER_SITES= ftp://ftp.erlang.org/pub/download/ \ http://erlang.stacken.kth.se/download/ \ http://www.csd.uu.se/ftp/mirror/erlang/download/ DISTNAME= otp_src_R9B-1 +DIST_SUBDIR= erlang DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${ERLANG_MAN} ${ERLANG_DOCS} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} @@ -25,33 +26,31 @@ MAINTAINER= olgeni@FreeBSD.org COMMENT= A functional programming language from Ericsson # Set JAVABINDIR to where you have javac, if different from below -JAVABINDIR?= ${LOCALBASE}/jdk1.3.1/bin -JAVAPORT?= ${JAVABINDIR}/javac:${PORTSDIR}/java/jdk13 - -.if !exists(${JAVABINDIR}/java) -WITHOUT_JAVA= yes -.endif - -CONFIGURE_TARGET= # Empty - -# Don't clutter up /usr/ports/distfiles with all distfiles (including patches) -DIST_SUBDIR= erlang +JAVABINDIR?= ${LOCALBASE}/jdk1.4.1/bin +JAVAPORT?= ${JAVABINDIR}/javac:${PORTSDIR}/java/jdk14 ERLANG_MAN= otp_man_R9B-1.tar.gz .if !defined(NOPORTDOCS) ERLANG_DOCS= otp_html_R9B-1.tar.gz .endif -.if !defined(WITHOUT_X11) -RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 -.endif - USE_GMAKE= yes USE_PERL5= yes GNU_CONFIGURE= yes +CONFIGURE_TARGET= # Empty CONFIGURE_ARGS+= --enable-threads --enable-hipe +.if !defined(WITHOUT_X11) +RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 +.endif + +.include <bsd.port.pre.mk> + +.if !exists(${JAVABINDIR}/java) +WITHOUT_JAVA= yes +.endif + .if !defined(WITHOUT_JAVA) # The Java applications that are part of the Erlang distribution are # not strictly necessary - it is included for completeness sake. A @@ -67,8 +66,21 @@ BUILD_DEPENDS+= ${JAVAPORT} CONFIGURE_ENV+= PATH=${PATH}:${JAVABINDIR} MAKE_ENV+= PATH=${PATH}:${JAVABINDIR} SCRIPT_ENV+= PATH=${PATH}:${JAVABINDIR} + .endif +# The man-pages are put (in spite of FreeBSD's port convention) in a private +# subdir. This is to avoid cluttering up the man page name space. Also the +# Erlang man pages are more of internal documentation using the man format than +# actual system man pages. (erl.1 and epmd.1 perhaps being the exception). + +NOMANCOMPRESS= yes + +MAN1PREFIX= ${PREFIX}/lib/erlang +MAN3PREFIX= ${PREFIX}/lib/erlang +MAN4PREFIX= ${PREFIX}/lib/erlang +MAN6PREFIX= ${PREFIX}/lib/erlang + # Workaround for a ./configure recursion bug which leads to INSTALL being # set to "../../../../[...]" post-patch: @@ -143,20 +155,7 @@ post-install: @${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-erlang @cd ${WRKDIR} ; ex < ex.script -# The man-pages are put (in spite of FreeBSD's port convention) in a -# private subdir. This is to avoid cluttering up the man page name -# space. Also the Erlang man pages are more of internal documentation -# using the man format than actual system man pages. (The erl.1 and -# epmd.1 perhaps being the exception). - -NOMANCOMPRESS= yes - -MAN1PREFIX= ${PREFIX}/lib/erlang -MAN3PREFIX= ${PREFIX}/lib/erlang -MAN4PREFIX= ${PREFIX}/lib/erlang -MAN6PREFIX= ${PREFIX}/lib/erlang - .include "Makefile.lib" .include "Makefile.man" -.include <bsd.port.mk> +.include <bsd.port.post.mk> |