From ba8c398f70f09f7937a365966fbd21161e796c4d Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 13 Jun 2002 19:25:48 +0000 Subject: 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) --- java/linux-sun-jdk12/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'java/linux-sun-jdk12') 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 @@ -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} -- cgit v1.3