1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

* 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.
This commit is contained in:
Jimmy Olgeni 2003-06-23 15:51:31 +00:00
parent d8217313f5
commit f42465beb5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83496
2 changed files with 56 additions and 58 deletions

View File

@ -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>

View File

@ -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>