mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
84 lines
2.1 KiB
Makefile
84 lines
2.1 KiB
Makefile
# Created by: Andreas Fehlner (fehlner@gmx.de)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= geonext
|
|
PORTVERSION= 1.74
|
|
CATEGORIES+= math graphics java
|
|
MASTER_SITES= http://geonext.uni-bayreuth.de/data/download/${PORTVERSION}/
|
|
DISTNAME= geonext.${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Interactive (dynamic) elementary Geometry Software
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
WRKSRC= ${WRKDIR}/geonext_install
|
|
NO_BUILD= yes
|
|
USES= zip
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
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
|
|
|
|
#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
|
|
#
|
|
# default: en
|
|
.if !defined(WITH_LANG)
|
|
MASTER= yes
|
|
PLIST_SUB+= MASTER=""
|
|
WITH_LANG= en
|
|
.else
|
|
PLIST_SUB+= MASTER="@comment "
|
|
.endif
|
|
|
|
# For the slave ports
|
|
.if ${WITH_LANG} != "en"
|
|
PKGNAMEPREFIX= ${WITH_LANG}-
|
|
.endif
|
|
|
|
PLIST_SUB+= LANG=${WITH_LANG}
|
|
SUB_FILES= geonext
|
|
SUB_LIST+= JAVA="${LOCALBASE}/bin/java" LANG=${WITH_LANG}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(MASTER)
|
|
pre-everything::
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "N - O - T - E"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "WITH_LANG=lang - Choose language"
|
|
@${ECHO_MSG} "Default language: en"
|
|
@${ECHO_MSG} ""
|
|
@${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"
|
|
@${ECHO_MSG} "-------------------------------------------------"
|
|
@${ECHO_MSG} ""
|
|
@${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} ""
|
|
.endif
|
|
|
|
do-install::
|
|
.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}
|
|
|
|
.include <bsd.port.post.mk>
|