2004-06-08 08:26:12 +00:00
# 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
2005-09-29 22:07:08 +00:00
PORTVERSION = 2.2
2004-06-08 08:26:12 +00:00
CATEGORIES = java devel
MASTER_SITES = #
PKGNAMEPREFIX = sun-
2005-09-29 22:07:08 +00:00
DISTNAME = j2me_wireless_toolkit-${ PORTVERSION : S /./_/ } -linux-i386
2004-06-08 08:26:12 +00:00
EXTRACT_SUFX = .bin
MAINTAINER = past@noc.ntua.gr
COMMENT = Sun J2ME Wireless Toolkit
USE_JAVA = yes
JAVA_VERSION = 1.4+
NO_BUILD = yes
NO_WRKSUBDIR = yes
ONLY_FOR_ARCHS = i386
2005-09-29 22:07:08 +00:00
DOWNLOAD_URL = http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId= 22& PartDetailId = j2me_wireless_toolkit-${ PORTVERSION : S /./_/ } -oth-JPR& SiteId = JSC& TransactionId = noreg
2004-06-08 08:26:12 +00:00
RESTRICTED = License does not allow redistribution of any kind
NO_CDROM = ${ RESTRICTED }
NO_PACKAGE = ${ RESTRICTED }
PKGMESSAGE = ${ WRKDIR } /pkg-message
APP_HOME = ${ PREFIX } /${ PKGNAMEPREFIX } ${ PORTNAME }
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } ) & & ! d e f i n e d ( P A C K A G E _ B U I L D I N G )
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
. e n d i f
do-extract :
@${ MKDIR } ${ WRKDIR }
@cd ${ WRKDIR } \
&& dd bs = 1024 if = ${ DISTDIR } /${ DISTNAME } ${ EXTRACT_SUFX } \
of = ${ WRKDIR } /j2mewtk-solaris.zip skip = 20 2>/dev/null
do-install :
@${ MKDIR } ${ APP_HOME }
@cd ${ APP_HOME } && ${ JAR } xf ${ WRKDIR } /j2mewtk-solaris.zip 2>/dev/null
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/ktoolbar > ${ APP_HOME } /bin/ktoolbar_
@${ RM } ${ APP_HOME } /bin/ktoolbar
@${ MV } ${ APP_HOME } /bin/ktoolbar_ ${ APP_HOME } /bin/ktoolbar
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/emulator > ${ APP_HOME } /bin/emulator_
@${ RM } ${ APP_HOME } /bin/emulator
@${ MV } ${ APP_HOME } /bin/emulator_ ${ APP_HOME } /bin/emulator
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/prefs > ${ APP_HOME } /bin/prefs_
@${ RM } ${ APP_HOME } /bin/prefs
@${ MV } ${ APP_HOME } /bin/prefs_ ${ APP_HOME } /bin/prefs
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/utils > ${ APP_HOME } /bin/utils_
@${ RM } ${ APP_HOME } /bin/utils
@${ MV } ${ APP_HOME } /bin/utils_ ${ APP_HOME } /bin/utils
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/defaultdevice > ${ APP_HOME } /bin/defaultdevice_
@${ RM } ${ APP_HOME } /bin/defaultdevice
@${ MV } ${ APP_HOME } /bin/defaultdevice_ ${ APP_HOME } /bin/defaultdevice
@${ SED } -e " s@javapathtowtk=.*@javapathtowtk= ${ JAVA_HOME } /bin/@ " \
-e "s@/usr/bin/expr@/bin/expr@g" \
< ${ APP_HOME } /bin/wscompile > ${ APP_HOME } /bin/wscompile_
@${ RM } ${ APP_HOME } /bin/wscompile
@${ MV } ${ APP_HOME } /bin/wscompile_ ${ APP_HOME } /bin/wscompile
@${ CHMOD } ugo+x ${ APP_HOME } /bin/*
@${ CHMOD } ugo-x ${ APP_HOME } /bin/*.jar
@${ MV } ${ APP_HOME } /wtklib/Linux ${ APP_HOME } /wtklib/FreeBSD
@${ LN } -sf ${ APP_HOME } /bin/ktoolbar ${ PREFIX } /bin/ktoolbar
post-install :
@${ SED } -e 's,%%PREFIX%%,${APP_HOME},' \
< ${ .CURDIR } /pkg-message > ${ PKGMESSAGE }
@${ CAT } ${ PKGMESSAGE }
. i n c l u d e < b s d . p o r t . p o s t . m k >