summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2002-06-13 19:25:48 +0000
committerGreg Lewis <glewis@FreeBSD.org>2002-06-13 19:25:48 +0000
commitba8c398f70f09f7937a365966fbd21161e796c4d (patch)
tree53e892897b9a5e24437729e5a7082bbaf6af5323 /java
parentAdd ${REINPLACE_CMD}, which will be used to get rid of depencency on perl (diff)
Fix problems I created with the previous change:
. Add a post-patch target to clean up *.orig files (taken from the linux-sun-jdk13 port). . Fix the name of the installation location to be consistent with other JDK ports and to not move with, for example, PORTREVISION changes. Approved by: znerd (maintainer)
Notes
Notes: svn path=/head/; revision=61235
Diffstat (limited to 'java')
-rw-r--r--java/linux-sun-jdk12/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/linux-sun-jdk12/Makefile b/java/linux-sun-jdk12/Makefile
index 50824f06d350..710177128085 100644
--- a/java/linux-sun-jdk12/Makefile
+++ b/java/linux-sun-jdk12/Makefile
@@ -33,7 +33,7 @@ RESTRICTED= "Redistribution of repackaged binaries not permitted"
IGNORE= "You can not legally distribute binaries"
.endif
-APP_HOME= ${PREFIX}/${PKGNAME}
+APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}jdk1.2.2
DOWNLOAD_URL= http://java.sun.com/Download5?config-file=${PORTNAME}-${JDK_VERSION:S/./_/g}.config&platform=linux-${ARCH}
.include <bsd.port.pre.mk>
@@ -42,6 +42,9 @@ DOWNLOAD_URL= http://java.sun.com/Download5?config-file=${PORTNAME}-${JDK_VERSIO
IGNORE=You must manually fetch the Sun Java 2 Standard Edition SDK ${JDK_VERSION} for Linux archive (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again.
.endif
+post-patch:
+ @${FIND} ${WRKSRC} -name '*.orig' -print | xargs ${RM} -f
+
do-install:
@${ECHO} -n "Creating destination directory ${APP_HOME}..."
@${MKDIR} ${APP_HOME}