blob: 2728645281346af5fab4fe3b9f1b042abb3af9db (
plain)
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
|
# $NetBSD: Makefile,v 1.17 2001/12/05 15:00:49 agc Exp $
DISTNAME= swing1_1_1
PKGNAME= swing-1.1.1
CATEGORIES= devel x11
MASTER_SITES= # none
EXTRACT_SUFX= .zip
MAINTAINER= jwise@netbsd.org
HOMEPAGE= http://www.javasoft.com/products/jfc/
COMMENT= Sun's Java Foundation Classes (the Swing UI toolkit), version 1.1.1
BUILD_DEPENDS+= urlget>=1.3:../../www/urlget
RESTRICTED= "Read license before redistributing the Java(tm) Foundation Classes"
NO_SRC_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
LICENSE= sun-swing-license
USE_JAVA= yes
WRKSRC= ${WRKDIR}/swing-1.1.1fcs
NO_PATCH=
NO_CONFIGURE=
NO_BUILD=
.include "../../mk/bsd.prefs.mk"
TEMPDIR?= /tmp
TEMPFILE!= echo ${TEMPDIR}/swing.location.$$$$
URLGET?= ${LOCALBASE}/bin/urlget
pre-fetch:
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
if [ ! -x ${URLGET} ]; then \
${MAKE} install-depends DEPENDS=; \
fi; \
fi
do-fetch:
-@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ] ; then \
${URLGET} -p http://java.sun.com/Download3 \
referer= \
protocol="FTP Download" \
download-name=${DISTNAME}${EXTRACT_SUFX} \
config-file=swing111.config \
platform=zip \
domain-checked= \
> ${TEMPFILE}; \
${FETCH_CMD} -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
`${GREP} ftp:// ${TEMPFILE} | \
${SED} -e 's|.*\(ftp://.*.zip\).*|\1|'`; \
fi
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/swingall.jar ${PREFIX}/lib/java
${INSTALL_DATA} -c -m 644 ${WRKSRC}/beaninfo.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/mac.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/motif.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/multi.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/swing.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/windows.jar ${PREFIX}/lib/java/swing
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/java/swing
cd ${WRKSRC}/doc && ${PAX} -rwpe . ${PREFIX}/share/doc/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/CHANGES.txt ${PREFIX}/share/doc/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/LICENSE.txt ${PREFIX}/share/doc/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/README.html ${PREFIX}/share/doc/java/swing
${INSTALL_DATA} -c -m 644 ${WRKSRC}/README.txt ${PREFIX}/share/doc/java/swing
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/java/swing
cd ${WRKSRC}/examples && ${PAX} -rwpe . ${PREFIX}/share/examples/java/swing
${CHOWN} -R ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/share/doc/java/swing \
${PREFIX}/share/examples/java/swing
.include "../../mk/bsd.pkg.mk"
|