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)
48 lines
1 KiB
Makefile
48 lines
1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jfreechart
|
|
PORTVERSION= 1.0.17
|
|
CATEGORIES= java graphics
|
|
MASTER_SITES= SF/${PORTNAME}/1.%20JFreeChart/${PORTVERSION}
|
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
|
COMMENT= Free Java class library for generating charts
|
|
|
|
LICENSE= LGPL21
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/jcommon.jar:java/jcommon
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
OPTIONS_DEFINE= COMPILE DOCS
|
|
OPTIONS_DEFAULT=COMPILE
|
|
COMPILE_DESC= Build from source
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCOMPILE}
|
|
USE_ANT= yes
|
|
USE_LOCALE= en_US.UTF-8
|
|
ALL_TARGET= compile
|
|
BUILD_WRKSRC= ${WRKSRC}/ant
|
|
.else
|
|
NO_BUILD= yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
|
|
ALL_TARGET+= javadoc
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/jfreechart.jar
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|