2012-12-10 14:43:43 +01:00
|
|
|
# Created by: Andreas Fehlner (fehlner@gmx.de)
|
2005-02-09 09:04:01 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= geonext
|
2014-08-31 14:55:19 +02:00
|
|
|
PORTVERSION= 1.74
|
2005-09-07 11:12:10 +02:00
|
|
|
CATEGORIES+= math graphics java
|
2014-08-31 14:55:19 +02:00
|
|
|
MASTER_SITES= http://geonext.uni-bayreuth.de/data/download/${PORTVERSION}/
|
2005-02-09 09:04:01 +01:00
|
|
|
DISTNAME= geonext.${PORTVERSION}
|
|
|
|
|
2014-08-25 12:08:55 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-09-04 08:38:07 +02:00
|
|
|
COMMENT= Interactive (dynamic) elementary Geometry Software
|
2005-02-09 09:04:01 +01:00
|
|
|
|
2014-08-31 14:55:19 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
|
2005-12-14 21:54:12 +01:00
|
|
|
WRKSRC= ${WRKDIR}/geonext_install
|
2005-02-09 09:04:01 +01:00
|
|
|
NO_BUILD= yes
|
2014-03-10 17:25:33 +01:00
|
|
|
USES= zip
|
2005-02-10 19:11:04 +01:00
|
|
|
USE_JAVA= yes
|
2012-12-10 14:43:43 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2007-08-12 13:10:15 +02:00
|
|
|
|
2014-08-31 14:55:19 +02:00
|
|
|
DATA= cacerts didmat.crt geonext-batik.jar geonext.html geonext.jar \
|
|
|
|
help.jar help_de.jar help_fr.jar help_gr.jar help_it.jar \
|
|
|
|
help_uk.jar index.html license.txt
|
|
|
|
|
|
|
|
IMG= geoint.png gxt.gif ubt.gif x.ico xwc.ico
|
2005-02-09 09:04:01 +01:00
|
|
|
|
2014-08-31 14:55:19 +02:00
|
|
|
#available languages:
|
|
|
|
# al, ar, bg, cz, da, de, en, es, fi, fr, gr, hu,
|
|
|
|
# it, ja, lv, mk, nb, nn, no, pl, pt_BR, ro, ru,
|
|
|
|
# sk, sl, uk, vn, zh_CN, zh_TW
|
|
|
|
#
|
2005-02-09 09:04:01 +01:00
|
|
|
# default: en
|
|
|
|
.if !defined(WITH_LANG)
|
2014-08-31 14:55:19 +02:00
|
|
|
MASTER= yes
|
|
|
|
PLIST_SUB+= MASTER=""
|
2005-02-09 09:04:01 +01:00
|
|
|
WITH_LANG= en
|
2014-08-31 14:55:19 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= MASTER="@comment "
|
2005-02-09 09:04:01 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# For the slave ports
|
2014-08-31 14:55:19 +02:00
|
|
|
LANG= language=${WITH_LANG}
|
2005-02-09 09:04:01 +01:00
|
|
|
.if ${WITH_LANG} != "en"
|
|
|
|
PKGNAMEPREFIX= ${WITH_LANG}-
|
|
|
|
.endif
|
|
|
|
|
2014-08-31 14:55:19 +02:00
|
|
|
PLIST_SUB+= LANG=${WITH_LANG}
|
|
|
|
SUB_FILES= geonext
|
|
|
|
SUB_LIST+= JAVA="${LOCALBASE}/bin/java" LANG=${WITH_LANG}
|
2005-02-09 09:04:01 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2014-08-31 14:55:19 +02:00
|
|
|
.if defined(MASTER)
|
2005-02-09 09:04:01 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "N - O - T - E"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "WITH_LANG=lang - Choose language"
|
|
|
|
@${ECHO_MSG} "Default language: en"
|
2005-09-04 08:38:07 +02:00
|
|
|
@${ECHO_MSG} ""
|
2014-08-31 14:55:19 +02:00
|
|
|
@${ECHO_MSG} "available languages:"
|
|
|
|
@${ECHO_MSG} " al, ar, bg, cz, da, de, en, es, fi, fr, gr, hu,"
|
|
|
|
@${ECHO_MSG} " it, ja, lv, mk, nb, nn, no, pl, pt_BR, ro, ru,"
|
|
|
|
@${ECHO_MSG} " sk, sl, uk, vn, zh_CN, zh_TW"
|
2005-09-04 08:38:07 +02:00
|
|
|
@${ECHO_MSG} "-------------------------------------------------"
|
|
|
|
@${ECHO_MSG} ""
|
2005-02-09 09:04:01 +01:00
|
|
|
@${ECHO_MSG} "example: make WITH_LANG=fr install"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Your current setting is:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "WITH_LANG=${WITH_LANG}"
|
|
|
|
@${ECHO_MSG} ""
|
2014-08-31 14:55:19 +02:00
|
|
|
.endif
|
2005-02-09 09:04:01 +01:00
|
|
|
|
|
|
|
do-install::
|
2014-08-31 14:55:19 +02:00
|
|
|
.if defined(MASTER)
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${DATA:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${IMG:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
|
|
|
|
.endif
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/geonext ${STAGEDIR}${PREFIX}/bin/geonext-${WITH_LANG}
|
2005-02-09 09:04:01 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|