aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.java.mk
Commit message (Collapse)AuthorAgeFilesLines
* Change DESTDIRNAME into a ant compatible argument when a port is stagedBaptiste Daroussin2013-11-121-0/+1
| | | | | | | | | | While here remove previous workarounds. Submitted by: ale Discussed with: jkim, glewis Notes: svn path=/head/; revision=333560
* - Remove CVS referenceMartin Wilke2013-05-201-1/+1
| | | | | | | | | | | | PR: 178381 177581 Submitted by: Eitan Adler <lists@eitanadler.com> Alex Kozlov <spam@rm-rf.kiev.ua> With hat: portmgr Notes: svn path=/head/; revision=318556
* . Split a long comment line.Greg Lewis2013-04-261-2/+3
| | | | Notes: svn path=/head/; revision=316544
* . Replace the use of != and shell utilities with actual make logic. ThisGreg Lewis2013-04-261-25/+36
| | | | | | | | | | should be much faster and avoid some complaints from make. PR: 177355 Submitted by: crees@ Notes: svn path=/head/; revision=316543
* . Fix all of the ports which still have as a version requirementGreg Lewis2012-12-111-3/+3
| | | | | | | | | | | | | | | | | JAVA_VERSION=1.5 or JAVA_VERSION=1.5+ The previous revision took this out as a valid version number meaning that we end up with the non-existent "/bin/java" as the desired JDK. Expand 1.5 to 1.6 and 1.5+ to 1.6 1.7 for now. This can be reverted once all the ports are updated. Notes: svn path=/head/; revision=308661
* Decommissioning java 1.5 (EOLed since October 2009):Baptiste Daroussin2012-12-101-23/+6
| | | | | | | | | | | | | removal of the different 1.5 jre and jdk vendors Removing outdated jdk16 vendors: removing all the bsdjava and freebsd vendors, consider using openjdk6 or openjsk7 instead. Discussed with: java (glarkin) Notes: svn path=/head/; revision=308619
* - Remove emacs mode, -*- mode: ...; -*- [1]Martin Wilke2012-05-231-1/+1
| | | | | | | | | | | | | | | | | | | - Comments for BUILD_ and RUN_DEPENDS fail to mention alternate means to specify dependencie [2] - Fix make reinstall [3] - Trivial comment change for PORTDATA [4] PR: 151954 [1] 161314 [2] 167085 [3] 167465 [4] Submitted by: Anonymous <swell.k@gmail.com> [1] dougb@ and Chris Rees <utisoft@gmail.com> [2] Garrett Cooper <yanegomi@gmail.com> [3] "Bryan Drewery" <bryan@shatow.net> [4] Tested via: phw Notes: svn path=/head/; revision=297274
* . Instead of bailing when we hit a possibly conflicting variable beingGreg Lewis2012-04-131-2/+2
| | | | | | | | | | defined just clear it and issue a warning that it was set. PR: 165115 Approved by: hq@ (co-maintainer) Notes: svn path=/head/; revision=294760
* . Add support for the new linux-sun-jdk17 port.Greg Lewis2012-02-091-0/+3
| | | | Notes: svn path=/head/; revision=290773
* . Make the openjdk6 port the preferred JDK by default.Greg Lewis2012-02-071-5/+1
| | | | | | | Many thanks to erwin@ for a -exp run. Notes: svn path=/head/; revision=290539
* . Make commented examples reference 1.6 (the current default) rather than 1.5.Greg Lewis2011-09-041-6/+6
| | | | Notes: svn path=/head/; revision=281175
* Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,Mark Linimon2011-07-211-86/+15
| | | | | | | | | | | | | | | | | | | remove support for them from bsd.java.mk. As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no). Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher. Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5. While here, replace static values of JAVA_VERSION in files/*.in by %%JAVA_VERSION%% . PR: ports/158969 Submitted by: rene Tested on: pointyhat-west -exp Notes: svn path=/head/; revision=278068
* - Unregister expired java/jdk14Rene Ladan2011-06-281-5/+2
| | | | | | | | | | | - Update example from java/jdk14 to java/jdk16 PR: ports/158030 Submitted by: myself Approved by: glewis Notes: svn path=/head/; revision=276596
* Update the list of possible values for JDK vendor in the header commentsHerve Quiroz2011-02-121-1/+2
| | | | | | | | | PR: 154553 Submitted by: Warren Block <wblock@wonkity.com> (PR), ryusuke (patch) Notes: svn path=/head/; revision=268993
* . Add support for the openjdk7 port.Greg Lewis2010-01-151-4/+9
| | | | | | | | | . Add support for a JAVA_VERSION requirement of 1.7. Reviewed by: hq@ Notes: svn path=/head/; revision=247916
* . Add support for openjdk6 as a possible JDK.Greg Lewis2009-05-221-1/+5
| | | | | | | | Submitted by: Jonathan Chen <jonc@chen.org.nz> Reviewed by: hq@ Notes: svn path=/head/; revision=234375
* . Add diablo-jdk16 and make it the default on 6.x and 7.x.Greg Lewis2008-08-181-5/+7
| | | | | | | . Make jdk16 the default on all other supported versions. Notes: svn path=/head/; revision=218774
* Major optimizations for 'make index' and other recursive traversalKris Kennaway2008-07-191-33/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | targets. * Use /rescue/sh for index builds instead of /bin/sh, when it exists. The former is statically linked and faster to execute, which becomes significant when executing it tens of thousands of times. This trick can be used with other recursive targets by passing in __MAKE_SHELL. * Get rid of make variable assignments that use != command invocations in the critical path, using several methods: - rewriting logic to use shell or make builtins instead of external command executions - macroizing commands and executing them in the targets where they are needed instead of with every invocation of make - precomputing the results of invariant commands in bsd.port.subdir.mk and passing them in explicitly to child makes, and using this to avoid recalculation in all the children. NB: the commands are still run one per top-level subdirectory but this does not currently seem to be a major issue. They could be moved further up into the top-level Makefile at the cost of some cleanliness. - Committers are strongly discouraged from adding further "bare" != assignments to the ports tree, even in their own ports. One of the above strategies should be used to avoid future bloat. * Rewrite the core 'describe' target to work entirely within a single shell process using only builtin commands. The old version is retained as a backup for use on systems older than 603104, which does not have the make :u modifier. This cuts down the number of processes executed during the course of a 'make index' by an order of magnitude, and we are essentially now amortized to the minimum of a single make + sh instance per port, plus whatever commands the port makefile itself executes (which are usually unnecessary and bogus). * Less validation of the WWW: target is performed; this can become policed at a port level by portlint. Specifically we look at the second word of the first line beginning with "WWW:" in pkg-descr, and append "http://" to it unless it already begins with "http://", "https://" or "ftp://". Thanks to dougb for the idea of how to extract WWW: using shell builtins. * Use the "true" shell builtin instead of echo > /dev/null for a measurable decrease in CPU use. * Add a note about dubious escaping strategy in bsd.port.subdir.mk * Minor change in output of 'make describe': it no longer strips trailing CR characters from pkg-descr files with MSDOS CR/LF termination. Instead the makeindex perl script that post-processes make describe into the INDEX is tweaked to strip on input. The bottom line is that on my test hardware INDEX builds are now faster by more than a factor of 2 and with a reduction in system time by a factor of 4-8 depending on configuration. Notes: svn path=/head/; revision=217132
* Remove support for Java 1.1 and 1.2 in the ports treeHerve Quiroz2007-10-281-36/+12
| | | | | | | | | | | | | | | To ease upgrade, bsd.java.mk now substitutes JAVA_VERSION values of 1.1+ and 1.2+ as 1.3+. The related JDK ports that have been marked as deprecated and scheduled for removal some time ago are now safe to be removed. The patch has been tested successfully on the cluster. PR: 116724 Notes: svn path=/head/; revision=202220
* . Remove a check for OSVERSION >= 500000 since this is now true for allGreg Lewis2007-10-071-1/+1
| | | | | | | | | | supported versions of FreeBSD. PR: 116890 Submitted by: edwin Notes: svn path=/head/; revision=201050
* . Enforce NO_JIKES when 1.6 is required as well.Greg Lewis2007-08-051-2/+3
| | | | Notes: svn path=/head/; revision=197151
* . Support for the JDK 1.6 ports.Greg Lewis2007-08-051-2/+8
| | | | | | | Submitted by: jkim Notes: svn path=/head/; revision=197149
* . Remove references to deprecated, forbidden and expired port of theGreg Lewis2007-06-061-3/+0
| | | | | | | | | | Linux Blackdown 1.3 JDK. PR: 113268 Submitted by: gabor@ Notes: svn path=/head/; revision=192931
* * Refine some comments about Linux emulation [1]Mark Linimon2007-03-061-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix 'make search' with non-default ${PORTSDIR} [2] * Fix typo in USE_LDCONFIG32 message [3] * Allow USE_PHP after inclusion of bsd.port.pre.mk [4] * Document NO_LDCONFIG_MTREE [5] * Update/enhance description of INSTALLS_SHLIB and USE_LDCONFIG [6] * Remove obsolete code in bsd.port.mk dealing with 4.X and other, even older, releases [7] * Remove references to obsolete ports from bsd.java.mk [8] PR: 105883 [1], 105917 [2], 106195 [3], 106557 [4], 108738 [5], 108739 [6], 108782 [7], 103357 [8] Submitted by: bsam [1], shaun [2], edwin [3], ale [4], gerald [5] [6], linimon [7], kris [7], gabor [4] Notes: svn path=/head/; revision=186638
* bsd.port.mkPav Lucistnik2007-01-311-58/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [1] Remove DEPENDS [2] Add a new pkg-plist keyword @stopdaemon [3] Provide rc.subr script suffix as RC_SUBR_SUFFIX [4] Add USE_CDRTOOLS to abstract dependency on sysutils/cdrtool[-cjk] [5] Add DOS2UNIX_REGEX, allowing to pass a filename regex to CRLF replacement routine [6] Support partially translated manpages in MAN* variables [7] Fix USE_LDCONFIG on ports with @cwd in pkg-plist [8] Remove support for XFree86 3.X [9] Add user settable WITH_DEBUG flag that turns on -g in CFLAGS and resets STRIP [9] Fix `make install' to refuse overwriting of older version of the port [10] New category ports-mgmt [11] New category gnustep [12] Removed category picobsd bsd.java.mk [13] Remove deprecated syntax bsd.tcl.mk [14] Provide TCL_VER when USE_TK[_BUILD] is defined. Fixes cad/netgen ports/Makefile [15] Make csup default `make update' method on FreeBSD 6.2 and up PR: ports/99742 [1], ports/93373 [2], ports/100915 [3], ports/105161 [4], ports/106029 [5], ports/106252 [6], ports/106235 [7], ports/100939 [9], ports/97507 [10], ports/103931 [11], ports/106921 [12], ports/104136 [13], ports/105215 [15] Submitted by: sem [1] [2], Matthias Andree <matthias.andree@gmx.de> [3], nork [4], pav [5] [7] [14], Nick Barkas <snb@threerings.net> [6], flz [8], gabor [9], shaun [10], erwin [12], hq [13], Gurkan Sengun <gurkan@linuks.mine.nu> [11] Notes: svn path=/head/; revision=183768
* . Add an entry for the linux-sun-jdk15 port.Greg Lewis2007-01-221-1/+4
| | | | | | | | PR: 108130 Submitted by: Milon Papezik Notes: svn path=/head/; revision=183020
* Convert whitespaces to tabsHerve Quiroz2006-10-071-6/+6
| | | | | | | | PR: 104012 Submitted by: edwin Notes: svn path=/head/; revision=174848
* . Prefer diablo-jdk15 on 5.x/i386, 6.x/i386 and 6.x/amd64 and jdk15Greg Lewis2006-09-141-3/+2
| | | | | | | | | | everywhere else. Reviewed by: hq Suggested by: kris Notes: svn path=/head/; revision=173079
* . Remove the entry for the defunct diablo-jdk13 port.Greg Lewis2006-04-241-3/+0
| | | | Notes: svn path=/head/; revision=160340
* . Add an entry for the new Diablo Caffe (JDK) 1.5.0 binary.Greg Lewis2006-04-071-2/+7
| | | | | | | | | | | | . Make Diablo Caffe 1.5.0 the default JDK for all the versions/architecture that its available for. . Make the standard jdk15 the default on FreeBSD 4.x as this should now be stable with the release of patchset 3. Reviewed by: hq Notes: svn path=/head/; revision=158994
* * Add bsd.database.mk [1]Clement Laforet2005-11-081-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - move out from bsd.port.mk USE_MYSQL and USE_PGSQL. - add support for Berkley DB and SQLite (via USE_BDB and USE_SQLITE knobs). * Espace '+' in make search [2] * Add "makepatch" target to simplify creation of patches during porting [3] * Replace deprecated MACHINE_ARCH with ARCH [4] * Remove support of OpenLDAP 2.1 [5] * Add bsd.tcl.mk [6] It introduces USE_TCL/USE_TCL_BUILD knobs to support various version of tcl (8.0 -> 8.4) * Fix cosmetic bugs in security-check target [7] * Add support for INDEX-7 and above (up to INDEX-9 actually) [8] * Add "package-recursive" to bsd.port.subdir.mk [9] * Remove check for FreeBSD version < 460101 [10] * New category: net-im [11] * Add .desktop file facilities It introduces DESKTOPDIR and DESKTOP_ENTRIES knobs [12] * Add SHA256 support to "*checksum" targets [13] * Fix USE_PYTHON with OPTIONS [14] * Force NO_LINT to MAKE_ENV to avoid library breaks [15] * Fix typo: s/RC_ORDER/USE_RCORDER/g [16] * Add support for PostgreSQL 8.1 [17] * Add bsd.apache.mk USE_APACHE knob enhancements [18] PR: ports/85695 [1], ports/85669 [2], ports/85488 [3], ports/84489 [4], ports/83835 [5], ports/83718 [6], ports/83716 [7], ports/83710 [8], ports/82753 [9], ports/82138 [10], ports/81206 [11], ports/79509 [12], ports/79123 [13], ports/74866 [14], ports/85490 [15], ports/83514 [16], ports/88466 [17] Submitted by: vsevolod [1] [6], Ricardo Alves dos Reis <ricardo_bsd@yahoo.com.br> [2], markm [3] [15], obrien [4], krion [5] [8] , Petr Rehor <prehor@gmail.com> [7], clement [8] [18], jhs@berklix.org [9], edwin [10] [13], pav [11], jylefort [12], mnag [14], leeym [16], girgen [17] Notes: svn path=/head/; revision=147554
* Disable the use of Jikes when using Java 1.5 because the current stable versionHerve Quiroz2005-11-031-0/+5
| | | | | | | | | | | | | | | | | | of Jikes not does support all of Java 1.5 extensions. Porters may still enforce the use of Jikes with Java 1.5 by explicitely setting: USE_JIKES= yes This fix is a temporary one and is bound to be removed whenever Java 1.5 gets fully supported in Jikes. Reported by: lawrance Approved by: glewis (co-maintainer) Notes: svn path=/head/; revision=147145
* . Prefer jdk15 over jdk14 on amd64 since the latter isn't supported onGreg Lewis2005-10-041-0/+4
| | | | | | | that architecture. Notes: svn path=/head/; revision=144176
* Fix typo in header documentationHerve Quiroz2005-07-151-1/+1
| | | | | | | | PR: 83498 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> Notes: svn path=/head/; revision=139263
* Add JAVA_VERSION, JAVA_OS and JAVA_VENDOR to SUB_LIST.Herve Quiroz2005-02-271-0/+9
| | | | | | | | | | | | | | | | | | | | | NOTE: these are only added if the related variables are defined by the port. This should ease the configuration of launcher shell scripts used for Java application ports, when they are using javavmwrapper to invoke a JVM. From now, a simple launcher that suits most of the Java application ports can be writen using the following scheme: #!/bin/sh JAVA_VERSION="%%JAVA_VERSION%%" \ "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/myport.jar" "$@" As mentioned above, this is of course only correct provided that the port defines JAVA_VERSION. Approved by: glewis (co-maintainer) Notes: svn path=/head/; revision=129936
* Fix a typo in header documentationHerve Quiroz2005-02-251-1/+1
| | | | | | | Submitted by: vs Notes: svn path=/head/; revision=129752
* Fix a typoHerve Quiroz2005-02-101-1/+1
| | | | | | | | PR: 77330 Submitted by: Conrad J. Sabatier <conrads@cox.net> Notes: svn path=/head/; revision=128440
* Add minimal support for jdk 1.5Alexey Zelkin2005-01-201-3/+6
| | | | Notes: svn path=/head/; revision=126911
* Add Java related substitutions to SUB_LIST: JAVASHAREDIR, JAVAJARDIR andHerve Quiroz2004-12-191-2/+5
| | | | | | | JAVALIBDIR Notes: svn path=/head/; revision=124468
* . Default 4.x to jdk14 as the Diablo JDK has been marked FORBIDDEN.Greg Lewis2004-12-051-3/+1
| | | | Notes: svn path=/head/; revision=123199
* When USE_ANT is defined, JAVA_BUILD is automatically set to 'jdk' but thisHerve Quiroz2004-11-291-8/+10
| | | | | | | | | | | | | | | | | | conflicts with the default values for JAVA_BUILD and JAVA_RUN. Those variables are indeed set a default value when none of the them (together with JAVA_EXTRACT) is defined. Having USE_ANT set a value for JAVA_BUILD will cause JAVA_RUN not to be set its default value. This has RUN_DEPENDS not correctly set (missing the JDK entry) on many ports that use USE_ANT. This patch addresses this issue by moving the statements dealing with default values to have them executed before USE_ANT handling. Approved by: glewis (co-maintainer) Notes: svn path=/head/; revision=122756
* Ports that use USE_ANT will now automatically build with Jikes if available andHerve Quiroz2004-11-091-0/+3
| | | | | | | | | | | not explicitly forbiden. PR: 44432 Suggested by: znerd Approved by: glewis (co-maintainer) Notes: svn path=/head/; revision=121164
* Additional error checking: check for defined variables that should not be. WithHerve Quiroz2004-11-071-0/+9
| | | | | | | | | | | | | | | | | this patch, for instance: $ cd /usr/port/devel/apache-ant $ make JAVA_HOME=toto apache-ant-1.6.2: Environement error: "JAVA_HOME" should not be defined. *** Error code 1 PR: 70914 Reported by: Rong-En Fan <rafan@infor.org> Approved by: glewis (co-maintainer) Notes: svn path=/head/; revision=121019
* . Update the location the linux-ibm-jdk14 port installs into based on itsGreg Lewis2004-09-091-1/+1
| | | | | | | | | | most recent update. Forgotten by: glewis Approved by: portmgr (marcus) Notes: svn path=/head/; revision=118139
* . java/javavmwrapper now uses JAVALIBDIR rather than JAVAJARDIR, so modifyGreg Lewis2004-09-031-1/+1
| | | | | | | a comment to that effect. Notes: svn path=/head/; revision=118048
* . Rope in hq as a co-maintainer since he wrote most of the current versionGreg Lewis2004-09-031-1/+1
| | | | | | | | | of this file. Approved by: hq Notes: svn path=/head/; revision=118002
* - Fix missing build dependency on devel/jikes (Jikes is effectively used forHerve Quiroz2004-09-021-22/+39
| | | | | | | | | | | | | | building the port but not added to BUILD_DEPENDS) - Use ${VAR:U} to test YES/NO values a more simple way - Refactor: Jikes now has its own sub-stages (error-handling and support) together in Stage 6 - New variable to be used by porters (and used internally by bsd.java.mk), HAVE_JIKES Approved by: glewis (mentor) Notes: svn path=/head/; revision=117936
* . Take maintainership. Ernst doesn't currently have time and I've beenGreg Lewis2004-09-021-1/+9
| | | | | | | | | | | | performing all of the recent changes. . Add to the header comment to document JAVASHAREDIR, JAVAJARDIR and JAVALIBDIR. . Add a definition for JAVALIBDIR. This is where other ports have installed their JAR files (a port should install in JAVAJARDIR but look for other JARs in JAVALIBDIR). Notes: svn path=/head/; revision=117890
* . Add a USE_ANT variable with that provides a simple way to build aGreg Lewis2004-08-021-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | Java-based port with ant, using MAKE_ENV, MAKE_ARGS and ALL_TARGET but using ant instead of make. When a port is built this way it also causes ant to respect the JDK selected by bsd.java.mk rather than using the JDK that ant was build with. Most ports should just be able to do USE_ANT= yes You may also need to set ALL_TARGET if your port doesn't use the default ant target. See the comments on USE_ANT at the head of bsd.java.mk for more information. PR: 59997 Reviewed by: hq (who spotted a bug and provided the comments documenting USE_ANT). Notes: svn path=/head/; revision=115312
* . Align some .endif with their corresponding .if.Greg Lewis2004-07-271-3/+3
| | | | Notes: svn path=/head/; revision=114841