# New ports collection makefile for: diablo-jdk16 # Date created: July 26 2008 # Whom: Greg Lewis # # $FreeBSD$ # PORTNAME= jdk PORTVERSION= ${JDK_VERSION}.${RELEASE_VERSION}.${BUILD_VERSION} CATEGORIES= java devel MASTER_SITES= # PKGNAMEPREFIX= diablo- DISTNAME= ${PKGNAMEPREFIX}caffe-${JDK_OSREL}-${ARCH}-${JDK_VERSION}_${RELEASE_VERSION}-b${BUILD_VERSION} EXTRACT_SUFX= .tar.bz2 MAINTAINER= glewis@FreeBSD.org COMMENT= Java Development Kit ${JDK_VERSION}_${RELEASE_VERSION}.${BUILD_VERSION} RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper RESTRICTED= License does not allow distribution with fee USE_BZIP2= yes USE_XORG+= xi xp xt xtst ONLY_FOR_ARCHS= amd64 i386 JDK_VERSION= 1.6.0 RELEASE_VERSION=07 BUILD_VERSION= 02 PLIST_SUB+= JDK_VERSION=${JDK_VERSION} PLIST_SUB+= ARCH=${ARCH} DOWNLOAD_URL= http://www.FreeBSDFoundation.org/cgi-bin/download?download=${DISTNAME}${EXTRACT_SUFX} LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}16 WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}jdk${JDK_VERSION}_${RELEASE_VERSION} NO_BUILD= yes SUB_FILES+= pkg-install \ pkg-deinstall SUB_LIST+= ARCH="${ARCH}" \ JDK_VERSION="${JDK_VERSION}" PKG_IGNORE_DEPENDS= '^[^x|^j]' INSTALL_DIR= ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION} .include .if ${OSVERSION} >= 700000 JDK_OSREL= freebsd7 PLIST_SUB+= RELEASENOTE="@comment " .elif ${OSVERSION} >= 600000 JDK_OSREL= freebsd6 PLIST_SUB+= RELEASENOTE="" .else IGNORE= only available for FreeBSD 6.x/i386 and FreeBSD 6.x/amd64 and later .endif .if ${ARCH} == "i386" PLIST_SUB+= CLIENTVM="" .else PLIST_SUB+= CLIENTVM="@comment " .endif .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) && defined(JDK_OSREL) DISTFILE_INSTRUCTIONS=\n\ Because of licensing restrictions, you must fetch the distribution\n\ manually.\n\n\ Please access\n\ \n\ ${DOWNLOAD_URL}\n\ \n\ with a web browser and \"Accept\" the End User License Agreement for\n\ \"Caffe Diablo ${JDK_VERSION}\". Please place the downloaded\n\ ${DISTNAME}${EXTRACT_SUFX} in ${DISTDIR}.\n\n .endif pre-fetch: .if defined(DISTFILE_INSTRUCTIONS) @${PRINTF} "${DISTFILE_INSTRUCTIONS}" @exit 1 .endif do-install: ${MKDIR} "${INSTALL_DIR}" cd "${WRKSRC}" && ${FIND} . \ | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} "${INSTALL_DIR}" post-install: # Register the VM "${LOCALBASE}/bin/registervm" \ "${INSTALL_DIR}/bin/java # DiabloCaffe${JDK_VERSION}" # Install the shared archives and plugin ${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include