1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/java/sun-wtk/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

88 lines
3.2 KiB
Makefile

# 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= 2
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
USE_JAVA= yes
JAVA_VERSION= 1.4+
NO_BUILD= yes
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= i386
DOWNLOAD_URL= http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2me_wireless_toolkit-${PORTVERSION:S/./_/}-oth-JPR&SiteId=JSC&TransactionId=try
RESTRICTED= License does not allow redistribution of any kind
PKGMESSAGE= ${WRKDIR}/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
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}
.include <bsd.port.post.mk>