diff options
author | glewis <glewis@FreeBSD.org> | 2002-06-15 03:08:49 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2002-06-15 03:08:49 +0800 |
commit | c867d13c0f01ae63a5f80df5bcbae85cf91cbb33 (patch) | |
tree | d9d0e39f3243567a3793ea08b0dedda67d5ca3b5 /java | |
parent | 70aed96fd02e71247ddafaa79a706fd9f7a38664 (diff) | |
download | freebsd-ports-gnome-c867d13c0f01ae63a5f80df5bcbae85cf91cbb33.tar.gz freebsd-ports-gnome-c867d13c0f01ae63a5f80df5bcbae85cf91cbb33.tar.zst freebsd-ports-gnome-c867d13c0f01ae63a5f80df5bcbae85cf91cbb33.zip |
. Fix the dependencies for this port following the renaming of the JDK
ports.
. Use (and define if necessary) ${FIND} and ${CPIO}, rather than
/usr/bin/find and /usr/bin/cpio, respectively.
Reviewed by: znerd
Diffstat (limited to 'java')
-rw-r--r-- | java/jdk12/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/java/jdk12/Makefile b/java/jdk12/Makefile index 7a6888130963..3198ddeba36b 100644 --- a/java/jdk12/Makefile +++ b/java/jdk12/Makefile @@ -17,8 +17,8 @@ MAINTAINER= glewis@FreeBSD.org BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \ zip:${PORTSDIR}/archivers/zip \ - ${JDK11DIR}/bin/javac:${PORTSDIR}/java/jdk \ - ${JDK12DIR}/bin/javac:${PORTSDIR}/java/linux-jdk \ + ${JDK11DIR}/bin/javac:${PORTSDIR}/java/jdk11 \ + ${JDK12DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk12 \ ${X11BASE}/lib/libMrm.a:${PORTSDIR}/x11-toolkits/open-motif \ ${NONEXISTENT}:${PORTSDIR}/java/jfc:extract LIB_DEPENDS= odbc.1:${PORTSDIR}/databases/unixODBC @@ -32,7 +32,7 @@ JDK_BETALEVEL= 10 JDK11DIR?= ${LOCALBASE}/jdk1.1.8 JFC11DIR?= ${WRKDIRPREFIX}${.CURDIR}/../../java/jfc/work/swing-1.1.1fcs -JDK12DIR?= ${LOCALBASE}/linux-jdk${JDK_VERSION} +JDK12DIR?= ${LOCALBASE}/linux-sun-jdk${JDK_VERSION} ONLY_FOR_ARCHS= i386 USE_GMAKE= yes @@ -55,6 +55,8 @@ JDKIMAGEDIR= ${WRKSRC}/jdk-image-i386 JDKIMAGEDIR_G= ${WRKSRC}/jdk-debug-image-i386 JREIMAGEDIR= ${WRKSRC}/jre-image-i386 +CPIO?= /usr/bin/cpio + .if defined(NODEBUG) PLIST_SUB+= DEBUG:="@comment " PKGNAMESUFFIX= -nodebug @@ -89,7 +91,7 @@ pre-patch: post-build: for dir in ${JDKIMAGEDIR} ${JDKIMAGEDIR_G} ${JREIMAGEDIR}; do \ - for file in `find $${dir} -type f -name "*.so"`; do \ + for file in `${FIND} $${dir} -type f -name "*.so"`; do \ if [ -f $${file}.${JDK_VERSION} ]; then \ ${RM} $${file}.${JDK_VERSION}; \ ${LN} -sf `${BASENAME} $${file}` $${file}.${JDK_VERSION}; \ @@ -111,11 +113,11 @@ pre-install: do-install: ${MKDIR} ${PREFIX}/jdk${JDK_VERSION} - cd ${JDKIMAGEDIR} && /usr/bin/find . \ - | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION} + cd ${JDKIMAGEDIR} && ${FIND} . \ + | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION} .if !defined(NODEBUG) - cd ${JDKIMAGEDIR_G} && /usr/bin/find . \ - | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION} + cd ${JDKIMAGEDIR_G} && ${FIND} . \ + | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION} .endif post-install: |