bsd.java.mk 2.0

bsd.java.mk 2.0

Post by Herve Quir » Fri, 20 Jun 2003 03:22:35



Hi Greg and all,

No feedback so far... Should I make and provide a patch for bsd.java.mk
and some java ports for testing with what we have discussed so far ?

Herve
_______________________________________________

http://lists.freebsd.org/mailman/listinfo/freebsd-java

 
 
 

1. bsd.java.mk 2.0

Hi,

Here are my ideas for the next major version of bsd.java.mk...

First there are two variable called NO_BUILD_DEPENDS and NO_RUN_DEPENDS. I
propose we only use one: USE_JAVA= [run | build | both]

USE_JAVA was previously used to specify the JDK version number the port
depends on. But as it has been said, it does not allow enough flexibility
nor it does not allow to specify a particular JDK to use. So what about
having three other variables ?

USE_JAVA_VENDOR= [sun | ibm | blackdown]...
USE_JAVA_VERSION= [1.1[+] | 1.2[+] | 1.3[+] | 1.4[+]]
USE_JAVA_OS= [linux | native]

Each of which may be empty or undefined if the choice is not important.
USE_JAVA_VENDOR may contain a list of vendors.

Then if the porter wants a specific JDK, he may use the following:

USE_JAVA_PORT

Where he specifies the directory of the JDK to use (e.g. java/jdk13)

[Optional: USE_JAVA_PORT could also contain several ports...]

Internally, the bsd.java.mk file manages the dependencies by taking user
preferences into account:

USE_JAVA_PORT contains a list of JDK ports to use ordered by preference.

USE_JAVA_1_{1|2|3|4}_PORTS contains a list of JDK ports to use when a
particular version is required, again ordered by preference.

Then bsd.java.mk build a list of the JDK specified by the port. Amongst
these ports, it chooses preferably one that is part of the  user choices.
And amongst these resulting ports, it chooses preferably a port that is
already installed.

IMHO it should lessen considerably the complexity and maintenance of
bsd.java.mk as the maintainer needs only to have a generic Makefile and
store JDK ports with variables.

What are your opinions ?

Regards,

Herve
_______________________________________________

http://lists.freebsd.org/mailman/listinfo/freebsd-java

2. Programmers Wanted

3. Can't find information on named pipes (for use in .plan files)

4. Proposal for bsd.port.mk -- [really about bsd.java.mk which then gets included]

5. networking with a W2K machine

6. Request for changing bsd.port.mk and adding bsd.java.mk (+ruby)

7. installing jdk 1.1.1

8. Request for changing bsd.port.mk and adding bsd.java.mk

9. Fwd: cvs commit: ports/Mk bsd.java.mk

10. java/44041: Generate bsd.java.mk from an XML file

11. bsd.java.mk and XML/XSLT Re: java/jdk13 does not autodetect itself