blob: 467b8d7dae925ccf9a3a643b5b06c91ed24d69a0 (
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
|
# $NetBSD: Makefile,v 1.2 2012/10/28 06:30:16 asau Exp $
#
DISTNAME= gwt-2.4.0
CATEGORIES= www
MASTER_SITES= http://google-web-toolkit.googlecode.com/files/
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://developers.google.com/web-toolkit/
COMMENT= Google Web Toolkit
LICENSE= apache-2.0
NO_BUILD= yes
USE_LANGUAGES= # none
USE_JAVA= run
USE_JAVA2= yes
USE_TOOLS+= pax
GWTDOCDIR= share/doc/gwt
GWTDIR= lib/java/gwt
INSTALLATION_DIRS= bin ${GWTDOCDIR} ${GWTDIR}
SUBST_CLASSES+= gwt
SUBST_STAGE.gwt= pre-configure
SUBST_MESSAGE.gwt= Fix for GWT
SUBST_FILES.gwt= benchmarkViewer
SUBST_FILES.gwt+= i18nCreator
SUBST_FILES.gwt+= webAppCreator
SUBST_SED.gwt= -e 's,java ,${PKG_JAVA_HOME}/bin/java ,g'
SUBST_SED.gwt+= -e 's,HOMEDIR=.*,HOMEDIR=${PREFIX}/${GWTDIR};,g'
SUBST_SED.gwt+= -e 's,APPDIR=.*,APPDIR=${PREFIX}/${GWTDIR};,g'
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/benchmarkViewer ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/i18nCreator ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/webAppCreator ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/*jar ${DESTDIR}${PREFIX}/${GWTDIR}
${INSTALL_DATA} ${WRKSRC}/*dtd ${DESTDIR}${PREFIX}/${GWTDIR}
${INSTALL_DATA} ${WRKSRC}/*war ${DESTDIR}${PREFIX}/${GWTDIR}
${INSTALL_DATA} ${WRKSRC}/*dll ${DESTDIR}${PREFIX}/${GWTDIR}
cd ${WRKSRC} && pax -rw -pmp \
doc samples COPYING COPYING.html \
about.html about.txt release_notes.html \
${DESTDIR}${PREFIX}/${GWTDOCDIR}
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|