From owner-freebsd-ports Mon Feb 25 2:46:40 2002 Delivered-To: freebsd-ports@freebsd.org Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.128.241]) by hub.freebsd.org (Postfix) with ESMTP id 310CA37B400; Mon, 25 Feb 2002 02:46:30 -0800 (PST) Received: (from ernst@localhost) by zaphod.euronet.nl (8.11.6/8.11.6) id g1PAkTH02215; Mon, 25 Feb 2002 11:46:29 +0100 (CET) (envelope-from ernst) Message-Id: <200202251046.g1PAkTH02215@zaphod.euronet.nl> Content-Type: text/plain; charset="iso-8859-1" From: Ernst de Haan To: portmgr@FreeBSD.org Subject: Re: Request for changing bsd.port.mk and adding bsd.java.mk Date: Mon, 25 Feb 2002 11:46:28 +0100 X-Mailer: KMail [version 1.3.2] Cc: ports@FreeBSD.org, java@FreeBSD.org, sobomax@FreeBSD.org, kevlo@FreeBSD.org, sebster@sebster.org References: <200202251018.g1PAIqi02136@zaphod.euronet.nl> In-Reply-To: <200202251018.g1PAIqi02136@zaphod.euronet.nl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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-ports" in the body of the message