diff options
author | phantom <phantom@FreeBSD.org> | 2005-02-01 00:47:37 +0800 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2005-02-01 00:47:37 +0800 |
commit | 5e37df69651f2a8ad238134fc8928db13d8b4549 (patch) | |
tree | 28bc2d7638e6d641adf94bd5c9b4d51491af8f64 /java | |
parent | aad3d876c20c459462a53f057116c6f604766afe (diff) | |
download | freebsd-ports-gnome-5e37df69651f2a8ad238134fc8928db13d8b4549.tar.gz freebsd-ports-gnome-5e37df69651f2a8ad238134fc8928db13d8b4549.tar.zst freebsd-ports-gnome-5e37df69651f2a8ad238134fc8928db13d8b4549.zip |
Add support for picking up of motif includes and libraries via newly
added open-motif-jdk port. It's controlled via WITH_OPENMOTIF_JDK
knob and currently disabled by default (it still requires additional
testing and checking)
Diffstat (limited to 'java')
-rw-r--r-- | java/jdk14/Makefile | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile index 211a22df6661..1f4020bed97c 100644 --- a/java/jdk14/Makefile +++ b/java/jdk14/Makefile @@ -21,13 +21,18 @@ 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 RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper .if !defined(MINIMAL) RUN_DEPENDS+= ${X11BASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts .endif +.if defined(WITH_OPENMOTIF_JDK) +BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/x11-toolkits/open-motif-jdk:extract +.else +BUILD_DEPENDS+= ${X11BASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif +.endif + PKGINSTALL= ${WRKDIR}/pkg-install WRKSRC= ${WRKDIR}/control/make @@ -53,6 +58,12 @@ LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.4.2_03 \ .include <bsd.port.pre.mk> +.if defined(WITH_OPENMOTIF_JDK) +OPENMOTIF_DIR= ${WRKDIR}/jdkmotif +.else +OPENMOTIF_DIR= ${X11BASE} +.endif + # do we have valid native jdk installed? .if !defined(WITH_LINUX_BOOTSTRAP) .for CJDK in ${NATIVE_BOOTSTRAP_JDKS} @@ -89,7 +100,7 @@ USE_REINPLACE= YES RESTRICTED= "Redistribution of pre-compiled binaries is not permitted" NO_CDROM= "Redistribution of pre-compiled binaries is not permitted" MAKE_ENV= ALT_BOOTDIR="${JDK14DIR}" \ - ALT_MOTIF_DIR="${X11BASE}" \ + ALT_MOTIF_DIR="${OPENMOTIF_DIR}" \ SYS_CFLAGS="${CFLAGS}" \ DEV_ONLY="YES" \ LANG="C" \ @@ -229,8 +240,8 @@ post-patch: ${WRKSRC}/$${file}; \ done +pre-build-linuxcheck: .if defined(WITH_LINUX_BOOTSTRAP) -pre-build: @if [ "$${WRKDIRPREFIX}" -a \ -L "/compat/linux/$${WRKDIRPREFIX}" -a \ x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \ @@ -266,6 +277,14 @@ pre-build: fi .endif +pre-build: pre-build-linuxcheck +.if defined(WITH_OPENMOTIF_JDK) + cd ${PORTSDIR}/x11-toolkits/open-motif-jdk && \ + ${MAKE} WITH_JDK_PATCH=${WRKDIR}/patch-java-dnd-fix \ + PREFIX=${OPENMOTIF_DIR} \ + NO_PKG_REGISTER=YES install +.endif + do-build: # Start of jdk build @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) |