freebsd-ports/java/jdk16/Makefile

326 lines
10 KiB
Makefile
Raw Normal View History

I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
# New ports collection makefile for: jdk14
# Date created: 6 March 2003
# Whom: Alexey Zelkin <phantom@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
# http://www.eyesbeyond.com/freebsddom/java/jdk14.html
SCSL_SRCFILE= j2sdk-${JDK_VERSION:S/./_/g}-src-scsl.zip
SCSL_BINFILE= j2sdk-${JDK_VERSION:S/./_/g}-bin-scsl.zip
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
PATCHSETFILE= bsd-jdk14-patches-${JDK_PATCHSET_VERSION}.tar.gz
DISTFILES= ${SCSL_SRCFILE} ${SCSL_BINFILE} ${PATCHSETFILE}
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
MAINTAINER= phantom@FreeBSD.org
COMMENT= Java Development Kit 1.4.2
EXTRACT_DEPENDS=zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
zip:${PORTSDIR}/archivers/zip \
${X11BASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif \
${LOCALBASE}/include/nspr/prtypes.h:${PORTSDIR}/devel/nspr
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
.if !defined(MINIMAL)
RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts
.endif
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
WRKSRC= ${WRKDIR}/control/make
JDK_VERSION= 1.4.2
JDK_PATCHSET_VERSION= 7
LATEST_LINK= jdk14
SUN_LINUX_JDK_VERSION= 1.4.2
.if !defined(WITH_LINUX_BOOTSTRAP)
NATIVE_BOOTSTRAP_JDKS= ${LOCALBASE}/jdk1.4.2 \
${LOCALBASE}/jdk1.4.1
.endif
LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.4.2_03 \
${LOCALBASE}/linux-sun-jdk1.4.2_02 \
${LOCALBASE}/linux-sun-jdk1.4.2_01 \
${LOCALBASE}/linux-sun-jdk1.4.2 \
${LOCALBASE}/linux-sun-jdk1.4.1_02 \
${LOCALBASE}/linux-sun-jdk1.4.1_01 \
${LOCALBASE}/linux-sun-jdk1.4.1
.include <bsd.port.pre.mk>
# do we have valid native jdk installed?
.if !defined(WITH_LINUX_BOOTSTRAP)
.for CJDK in ${NATIVE_BOOTSTRAP_JDKS}
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
JDK14DIR= ${CJDK}
. endif
.endfor
.endif
# do we have valid linux jdk installed?
.if !defined(JDK14DIR)
.for CJDK in ${LINUX_BOOTSTRAP_JDKS}
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
JDK14DIR= ${CJDK}
WITH_LINUX_BOOTSTRAP= YES
. endif
.endfor
.endif
# if no valid jdk found, set dependency
.if !defined(JDK14DIR)
JDK14DIR?= ${LOCALBASE}/linux-sun-jdk${SUN_LINUX_JDK_VERSION}
.endif
BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk14
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
# workaround to handle both 'zip' and 'tar.gz' distfiles
USE_ZIP= YES
EXTRACT_ONLY= ${SCSL_SRCFILE} ${SCSL_BINFILE}
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
ONLY_FOR_ARCHS= i386
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
USE_GMAKE= YES
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
USE_REINPLACE= YES
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
NO_CDROM= "Redistribution of pre-compiled binaries is not permitted"
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
MAKE_ENV= ALT_BOOTDIR="${JDK14DIR}" \
ALT_MOTIF_DIR="${X11BASE}" \
SYS_CFLAGS="${CFLAGS}" \
DEV_ONLY="YES" \
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
LANG="C" \
JAVA_HOME="" \
CLASSPATH="" \
LD_LIBRARY_PATH="" \
MAKEFLAGS=""
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.if defined(MINIMAL)
MAKE_ENV+= NO_PLUGIN="YES" \
NO_JAVAWS="YES"
.endif
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
ALL_TARGET= all
PLIST_SUB+= JDK_VERSION=${JDK_VERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
JDKIMAGEDIR= ${WRKSRC}/../build/bsd-i586/j2sdk-image
JDKIMAGEDIR_G= ${WRKSRC}/../build/bsd-i586/j2sdk-debug-image
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.if !defined(WITH_IPV6)
EXTRA_PATCHES+= ${PATCHDIR}/disable-ipv6.patch
.endif
.if defined(MINIMAL)
PLIST_SUB+= MINIMAL:="@comment "
PKGNAMESUFFIX= -minimal
.else
PLIST_SUB+= MINIMAL:=""
.endif
.if defined(WITH_DEBUG)
PLIST_SUB+= DEBUG:=""
.else
PLIST_SUB+= DEBUG:="@comment "
.endif
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
PTHREAD_FILES= ../../hotspot/build/bsd/makefiles/vm.make \
../../j2se/make/common/Defs.gmk \
../../j2se/make/common/Program.gmk \
../../j2se/make/common/Defs-bsd.gmk \
../../j2se/make/java/hpi/hpi_common.gmk \
../../j2se/make/java/hpi/native/Makefile \
../../j2se/make/java/net/Makefile \
../../deploy/make/common/Defs-bsd.gmk \
../../deploy/make/plugin/common/config.gmk
LD_LIBRARY_PATH_FILES= ../../hotspot/src/os/bsd/vm/os_bsd.cpp
# Check for JDK sources
.if !exists(${DISTDIR}/${SCSL_SRCFILE}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
Because of licensing restrictions, you must fetch the source distribution\n\
manually. Please access http://www.sun.com/software/java2/download.html\n\
with a web browser and follow the \"Download\" link for the\n\
\"Java(TM) SDK ${JDK_VERSION}\". You will be required to log in and register,\n\
but you can create an account on this page. After registration and\n\
accepting the Sun Community Source License, select \"J2SESDK\" and\n\
download the source file, ${SCSL_SRCFILE}. Please place this file in\n\
${DISTDIR}.\n
.endif
.if !exists(${DISTDIR}/${SCSL_BINFILE}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
Because of licensing restrictions, you must fetch the source distribution\n\
manually. Please access http://www.sun.com/software/java2/download.html\n\
with a web browser and follow the \"Download\" link for the\n\
\"Java(TM) SDK ${JDK_VERSION}\". You will be required to log in and register,\n\
but you can create an account on this page. After registration and\n\
accepting the Sun Community Source License, select \"J2SESDK\" and\n\
download the source file, ${SCSL_BINFILE}. Please place this file in\n\
${DISTDIR}.\n
.endif
# Check for patchset
2003-03-04 04:07:17 +01:00
.if !exists(${DISTDIR}/${PATCHSETFILE}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
The source distribution exists on your system, but due to\n\
licensing restrictions you still need to download the\n\
patchset, ${PATCHSETFILE}, from\n\
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\
Please place the patchset in ${DISTDIR}.\n
.endif
# JDK 1.4.2 require recent version of FreeBSD due to recent libc_r updates.
# Make check for reqiuired primities as early as possible
TESTPROG=testos
.if ${OSVERSION} > 500000
LINKIT= -lc_r
.else
LINKIT= -pthread
.endif
check-os:
.if !defined(SKIP_OS_TEST)
-@mkdir -p ${WRKDIR} ; \
rm -f ${WRKDIR}/${TESTPROG} ; \
gcc ${LINKIT} -o ${WRKDIR}/${TESTPROG} \
${FILESDIR}/${TESTPROG}.c > /dev/null 2>&1
@if [ ! -f ${WRKDIR}/${TESTPROG} ] ; \
then \
/usr/bin/printf "\n\
You must have a version of FreeBSD later than 4.7-STABLE\n\
February 2003 or 5-CURRENT February 2003 to compile and\n\
use JDK 1.4.2.\n\n" ; \
exit 1 ; \
fi
@${WRKDIR}/${TESTPROG} 2>/dev/null
.endif
pre-fetch: check-os
@${ECHO_MSG}
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
@${ECHO_MSG} "IMPORTANT: To build JDK 1.4.2 port, you should have at least"
@${ECHO_MSG} "1.7Gb of free disk space in build area!"
@${ECHO_MSG}
.if defined(WITH_LINUX_BOOTSTRAP)
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
@${ECHO_MSG} "IMPORTANT: To build JDK 1.4.2 port, you should have linux emulation"
@${ECHO_MSG} "enabled in the kernel and linux procfs (linprocfs) filesystem"
@${ECHO_MSG} "mounted."
@${ECHO_MSG}
.endif
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
@${ECHO_MSG} "Following port compile time options are available:"
@${ECHO_MSG}
@${ECHO_MSG} " WITH_DEBUG - install JDK binaries and libraries"
@${ECHO_MSG} " with debuging support"
@${ECHO_MSG}
@${ECHO_MSG} " MINIMAL - don't build/install mozilla java"
@${ECHO_MSG} " plugin, javaws and JDK demos"
@${ECHO_MSG}
@${ECHO_MSG} " WITH_IPV6 - enable JDK IPv6 support"
@${ECHO_MSG}
pre-patch:
@cd ${WRKDIR} && \
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
${GZIP_CMD} -dc ${DISTDIR}/${PATCHSETFILE} | ${TAR} -xf - && \
${CHMOD} -R u+w * && \
I am pleased to announce first public -beta patchset of FreeBSD/Java port for JDK 1.4.1. This is complete and close to production quality native JDK with both working client and server native JVMs. Local micro benchmarks shown very little difference between Linux and FreeBSD JVMs in speed. One of important points of this patchset that it marks point when we are very close to passing of Sun TCK tests. Currently about 20 of >27000 tests are known to be broken (tests were run at -STABLE). If testing of this patchset will be smooth and founding of this work will be continued we may expect to have binary distribution of JDK 1.4.1 in April or begining of May. BUT, don't forget that even TCK tests can't cover all possible problems and this is -beta patchset. Keep your eyes open and report your problems to freebsd-java mailing list or to me directly! * About supported FreeBSD releases: Altough 4.8-RELEASE will be first officially supported FreeBSD release, you may use JDK 1.4.1-p3 at stock post-02-Feb-2003 -STABLE or -CURRENT. You also may use it at post-07-Jan-2003 -STABLE and -CURRENT (including 5.0-RELEASE), but it's required to apply libc_r patch, distributed with patchset3 archive, and rebuild libc_r first. * About compiler: This port is supposed to be built with stock FreeBSD compiler (3.2.[12] for -CURRENT and 2.95.4 for -STABLE)! * Following issues are known, but not yet addressed: . IPv6 networking. IPv6 support is disabled in this patchset. . Asian languages support. Patches are welcome! . K6 (586-class) processors support. There're issues with building on old K6 processors. If you've problems with 586-class machines other than K6 - please let me know. . Mozilla plugin is not yet ported. * Following areas should be used with increased attention: . Java Virtual Machine Profiling Interface (JVMPI) . Java Virtual Machine Debugging Interface (JVMDI) . Host Porting Interface (HPI) If you have problems with these interfaces please let me know. * THANKS! I would thank very much to FreeBSD Foundation, without which support and sponsorship JDK 1.4.1 port would not happen in such timeframes (less than 2 months). Sponsored by: FreeBSD Foundation Approved by: portmgr
2003-03-07 00:18:24 +01:00
${PATCH} -p0 < ${WRKDIR}/jdk14.patches
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
post-patch:
@for file in ${LD_LIBRARY_PATH_FILES}; do \
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
${WRKSRC}/$${file}; \
done
@for file in ${PTHREAD_FILES}; do \
${REINPLACE_CMD} -e "s:-lkse:${PTHREAD_LIBS}:g" \
${WRKSRC}/$${file}; \
done
.if defined(WITH_LINUX_BOOTSTRAP)
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
2004-01-23 06:28:50 +01:00
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
then \
2002-10-25 07:54:09 +02:00
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \
${ECHO_MSG} "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
@if [ `/sbin/sysctl -n compat.linux.osname` != "Linux" ]; \
then \
2002-10-25 07:54:09 +02:00
${ECHO_MSG} "Please set the value of the sysctl compat.linux.osname"; \
${ECHO_MSG} "to 'Linux' with the command:"; \
${ECHO_MSG} " /sbin/sysctl compat.linux.osname=Linux"; \
2002-10-25 07:54:09 +02:00
${ECHO_MSG} "Having it set to other values, such as 'FreeBSD',"; \
${ECHO_MSG} "is known to cause problems during bootstrapping."; \
exit 1; \
fi
@if [ "`/sbin/mount | grep ^linprocfs`" = "" ]; \
then \
${ECHO_MSG} "ERROR: You have to have LINPROCFS mounted before" ; \
${ECHO_MSG} "starting to build of native JDK 1.4.2." ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "You may do it by following set of commands:" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "# kldload linprocfs" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "and" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "# mount -t linprocfs linprocfs /compat/linux/proc" ; \
${ECHO_MSG} "" ; \
exit 1 ; \
fi
.endif
do-build:
# Start of jdk build
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
post-build:
@# make sure that SwingSet2/resources does not exists
@${RM} -rf ${JDKIMAGEDIR}/demo/jfc/SwingSet2/resources
@${RM} -rf ${JDKIMAGEDIR}/demo/plugin/jfc/SwingSet2/resources
@# XXX don't install japanese manpages
@${RM} -rf ${JDKIMAGEDIR}/man/ja
@${RM} -rf ${JDKIMAGEDIR}/man/ja_JP.eucJP
pre-install:
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.if !defined(WITH_DEBUG)
@${ECHO_MSG}
@${ECHO_MSG} "Please use \`make -DWITH_DEBUG' if you want to install libraries and binaries"
@${ECHO_MSG} "with debugging support."
@${ECHO_MSG}
.endif
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.if defined(MINIMAL)
@${RM} -rf ${JDKIMAGEDIR}/demo
.endif
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
cd ${JDKIMAGEDIR} && ${FIND} . \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.if defined(WITH_DEBUG)
cd ${JDKIMAGEDIR_G} && ${FIND} . \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
${INSTALL_DATA} ${FILESDIR}/cacerts \
${PREFIX}/jdk${JDK_VERSION}/jre/lib/security/cacerts
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.if !defined(MINIMAL)
${INSTALL_DATA} ${FILESDIR}/cacerts \
${PREFIX}/jdk${JDK_VERSION}/jre/javaws/cacerts
1. Switch 5.x version of jdk14 back to libc_r as default threading library. We switched FreeBSD-5.x port to libkse as default threading library before releasing of patchset 6, but users who has most of stuff linked against libc_r and attempted to use jdk linked against libkse got into local hell of threading libraries mix. So, rollback to libc_r by default and add PTHREAD_LIBS support for this port. IMPORTANT: In order to use libkse as threading library for jdk14 you have to use rtld's libmap feature or recompile your ports stuff (like mozilla) with libkse. NOTE: libkse still has issues with java debug support, so if you're going to use debuging (JVMDI) stuff - leave with libc_r for now. 2. Disable IPv6 support by default. Unfortunatelly due to security reasons IPv4-to-IPv6 addresses mapping is disabled by default in FreeBSD-5.x, so those who would like to use Java Networking stuff had to manually enable it. To make jdk14 port more user-friendly IPv6 is disabled now on compile time. Those who need this stuff enabled have to use WITH_IPV6 compile time option. 3. Add MINIMAL compile option. If this option is used to build jdk14 port then plugin, javaws and demos stuff will not be installed and/or packaged. Also (as noted in [5]) X11 runtime dependancy will not be registered into built package. 4. Strip runtime depends of jdk14 port. There's no need to require open-motif to be runtime depends since libXm is staticly linked into libawt.so. 5. Make X11 runtime dependancy conditional (via urwfonts) in !WITHOUT_PLUGIN case only. This should affect only prebuilt package users: there's no need to install X11 libraries if you're going to use non-GUI stuff only (i.e. tomcat or jboss) 6. Add ${LOCALBASE}/lib to the deafult search path for JNI libraries. 7. Bump PORTVERSION Reported by: many [1] Submitted by: glewis [6] Requested by: marcus [6]
2004-01-28 15:00:27 +01:00
.endif
post-install:
.if !defined(MINIMAL)
${FIND} "${PREFIX}/jdk${JDK_VERSION}/jre/plugin" -type d | ${XARGS} ${CHMOD} a+rx
.endif
@${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}"
@${SED} -e "s:%%JRE_HOME%%:${PREFIX}/jdk${JDK_VERSION}/jre:g" \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>