Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 11:46:28 +0100
From:      Ernst de Haan <znerd@FreeBSD.org>
To:        portmgr@FreeBSD.org
Cc:        ports@FreeBSD.org, java@FreeBSD.org, sobomax@FreeBSD.org, kevlo@FreeBSD.org, sebster@sebster.org
Subject:   Re: Request for changing bsd.port.mk and adding bsd.java.mk
Message-ID:  <200202251046.g1PAkTH02215@zaphod.euronet.nl>
In-Reply-To: <200202251018.g1PAIqi02136@zaphod.euronet.nl>
References:  <200202251018.g1PAIqi02136@zaphod.euronet.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
To avoid confusion, note that I'm znerd@FreeBSD.org. This ernsth@nl.euro.net 
address is my email address at work, I forgot to select znerd@FreeBSD.org as 
my identity.

Ernst

On Monday 25 February 2002 11:18, Ernst de Haan wrote:
> Hi,
>
>
> In order to make writing Java-based ports much easier, I've developped a
> bsd.java.mk.
>
> Below I explain how this bsd.java.mk works. My request is threefold. First
> I would ask for permission to modify bsd.port.mk to include bsd.java.mk
> (see attached diff). Secondly, I would like to add the attached bsd.java.mk
> file as Mk/bsd.java.mk in the ports CVS module. Third, I would like to get
> the right to make updates to this latter file.
>
> When this bsd.java.mk is added, it will have *no* effect on current ports,
> these will keep working. Note that this bsd.java.mk is specific for
> FreeBSD, I do not know if that is a problem.
>
>
> This bsd.java.mk is loosely based on the following proposal:
>
> http://www.metaverse.nl/~ernst/freebsd-java-proposal-20011116.html
>
> It is loosely modelled after bsd.ruby.mk.
>
> The current bsd.java.mk allows ports to use the following construction to
> use a Java runtime environment in their Makefile:
>
>    USE_JAVA=	[ "YES" | "1.1" | "1.2" | "1.3" | "1.4" ]
>
> If it set to "YES" then the default version of Java will be used, currently
> 1.3, this can be overridden (for example in /etc/make.conf) by defining
> DEFAULT_JAVA_VER.
>
> After setting USE_JAVA to a valid value, the port writer can use the
> following variables in the targets:
>
>    JAVA_VENDOR: Vendor of the Java
>    JAVA_VER: Java version, for example "1.1.8" or "1.3.1"
>    JAVA_OS: Target OS for the JDK/JRE, "FreeBSD" or "Linux"
>    JAVA_HOME: Home directory of the Java runtime environment
>    JAVA_PORT: The location for the JDK/JRE port
>    JAVA_CLASSES: Reference to classes.zip or rt.jar
>    JAVAC: Points to a Java compiler (possibly Jikes)
>    APPLETVIEWER: Appletviewer location
>    JAVA: Points to JRE or JDK java executable
>    JAVADOC: Points to the javadoc utility
>    JAVAH: Points to the javah utility
>    JAVAP: Points to the javap utility
>    JAVA_N2A: Points to the native2ascii utility
>    RMIC: Points to the rmic program
>    RMIREGISTRY: Points to the rmiregistry program
>    JAVA_SERIALVER: Points to the serialver program
>
> And only for JDK 1.2+:
>
>    JAVA_POLICYTOOL: Points to the policytool program
>    RMID: Points to the rmid program
>
> The correct JDK/JRE will be added to BUILD_DEPENDS unless
> JAVA_NO_BUILD_DEPENDS. It will be added to RUN_DEPENDS unless
> JAVA_NO_RUN_DEPENDS is defined.
>
> Any and all comments are welcome, of course.
>
>
> Ernst

-- 
Ernst de Haan
EuroNet Internet B.V.

    "Come to me all who are weary and burdened
        and I will give you rest" -- Jesus Christ

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202251046.g1PAkTH02215>