mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
Convert to new option framework
This commit is contained in:
parent
9ed5dd49d2
commit
ab707d34ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308832
1 changed files with 7 additions and 5 deletions
|
@ -22,13 +22,13 @@ USE_ANT= yes
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
OPTIONS= FOP "textproc/fop plugin (required for math/scilab)" ON
|
OPTIONS_DEFINE= FOP EXAMPLES
|
||||||
|
OPTIONS_DEFAULT= FOP
|
||||||
|
FOP_DESC= textproc/fop plugin (required for math/scilab)
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if defined(WITHOUT_FOP)
|
.if ${PORT_OPTIONS:MFOP}
|
||||||
PLIST_SUB+= FOP="@comment "
|
|
||||||
.else
|
|
||||||
BUILD_DEPENDS= fop:${PORTSDIR}/textproc/fop \
|
BUILD_DEPENDS= fop:${PORTSDIR}/textproc/fop \
|
||||||
${JAVALIBDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \
|
${JAVALIBDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \
|
||||||
${JAVASHAREDIR}/batik/batik.jar:${PORTSDIR}/graphics/batik \
|
${JAVASHAREDIR}/batik/batik.jar:${PORTSDIR}/graphics/batik \
|
||||||
|
@ -42,6 +42,8 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||||
ALL_TARGET+= fop
|
ALL_TARGET+= fop
|
||||||
|
|
||||||
PLIST_SUB+= FOP=""
|
PLIST_SUB+= FOP=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= FOP="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
@ -52,7 +54,7 @@ post-patch:
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-${PORTVERSION}.jar ${JAVAJARDIR}/jlatexmath.jar
|
${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-${PORTVERSION}.jar ${JAVAJARDIR}/jlatexmath.jar
|
||||||
${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-fop-${PORTVERSION}.jar ${JAVAJARDIR}/jlatexmath-fop.jar
|
${INSTALL_DATA} ${WRKSRC}/dist/jlatexmath-fop-${PORTVERSION}.jar ${JAVAJARDIR}/jlatexmath-fop.jar
|
||||||
.if !defined(NOPORTEXAMPLES)
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||||
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue