blob: 9c47335897eb7f96e08510690d3a51d5d6f60e59 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# New ports collection makefile for: diablo-jdk15
# Date created: February 26 2006
# Whom: Greg Lewis <glewis@FreeBSD.org>
#
# $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 doesn't allow distribution with fee"
USE_BZIP2= yes
USE_XLIB= yes
ONLY_FOR_ARCHS= amd64 i386
JDK_VERSION= 1.5.0
RELEASE_VERSION=07
BUILD_VERSION= 00
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}15
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}jdk${JDK_VERSION}_${RELEASE_VERSION}
NO_BUILD= yes
SUB_FILES+= pkg-install \
pkg-deinstall
PKG_IGNORE_DEPENDS= '^[^x|^j]'
INSTALL_DIR= ${PREFIX}/${PKGNAMEPREFIX}jdk${JDK_VERSION}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 600000
JDK_OSREL=freebsd6
.elif ${OSVERSION} >= 500000
JDK_OSREL=freebsd5
.else
IGNORE= Only available for FreeBSD 5.x and later
.endif
.if ${ARCH} == "i386"
PLIST_SUB+= WEB=""
PLIST_SUB+= CLIENTVM=""
.else
PLIST_SUB+= WEB="@comment "
PLIST_SUB+= CLIENTVM="@comment "
.endif
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
Because of licensing restrictions, you must fetch the distribution\n\
manually. 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
.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 plugin
${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|