pkgsrc/www/gwt/Makefile

53 lines
1.5 KiB
Makefile

# $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"