blob: 5688a92158dfcc64e0141bd0a0d063b4b35d27fe (
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
|
# New ports collection makefile for: sun-wtk
# Date created: Mon 12 Apr 2004 19:42:00 EEST
# Whom: Panagiotis Astithas <past@noc.ntua.gr>
#
# $FreeBSD$
#
PORTNAME= wtk
PORTVERSION= 2.2
PORTREVISION= 3
CATEGORIES= java devel
MASTER_SITES= #
PKGNAMEPREFIX= sun-
DISTNAME= j2me_wireless_toolkit-${PORTVERSION:S/./_/}-linux-i386
EXTRACT_SUFX= .bin
MAINTAINER= ports@FreeBSD.org
COMMENT= Sun J2ME Wireless Toolkit
DEPRECATED= no more public distfiles, merged with Java ME SDK 3.0 upstream
EXPIRATION_DATE= 2013-01-01
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
USE_LINUX= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
NO_BUILD= yes
DOWNLOAD_URL= https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=j2me_wireless_toolkit-${PORTVERSION:S/./_/}-oth-JPR@CDS-CDS_Developer
RESTRICTED= License does not allow redistribution of any kind
SUB_FILES= pkg-message
APP_HOME= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
IGNORE=You must manually fetch the J2ME WTK self-extracting file for the Linux platform (${DISTNAME}${EXTRACT_SUFX}) from ${DOWNLOAD_URL}, place it in ${DISTDIR} and then run make again
.endif
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} \
&& dd bs=1024 if=${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
of=${WRKDIR}/j2mewtk-solaris.zip skip=20 2>/dev/null
@${UNZIP_CMD} -qo ${WRKDIR}/j2mewtk-solaris.zip -d ${WRKSRC}
@${FIND} ${WRKSRC} -type f -exec ${CHMOD} 0644 {} \+
@${FIND} ${WRKSRC} -type d -exec ${CHMOD} 0755 {} \+
@${FIND} ${WRKSRC}/bin ! -name '*.jar' -exec ${CHMOD} 0755 {} \;
do-patch:
@${REINPLACE_CMD} -e "\
s@javapathtowtk=.*@javapathtowtk=${JAVA_HOME}/bin/@; \
s@/usr/bin/expr@/bin/expr@g" \
${WRKSRC}/bin/defaultdevice ${WRKSRC}/bin/emulator \
${WRKSRC}/bin/ktoolbar ${WRKSRC}/bin/prefs \
${WRKSRC}/bin/utils ${WRKSRC}/bin/wscompile
@${MV} ${WRKSRC}/wtklib/Linux ${WRKSRC}/wtklib/FreeBSD
@${FIND} ${WRKSRC} -name '*.bak' -delete
do-install:
@${MKDIR} ${APP_HOME}
cd "${WRKSRC}" && ${FIND} . \
| ${CPIO} -pdmu -R root:wheel "${APP_HOME}"
@${LN} -sf ${APP_HOME}/bin/ktoolbar ${PREFIX}/bin/ktoolbar
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|