mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Add option (on by default) to make the help browser work
- Relocate JGraphx substitution to allow running Scilab Java components from WRKDIR before install (necessary to build docs) - DATADIR/.atoms shouldn't be GUI only PR: ports/153402 Submitted by: Rob Farmer (maintainer)
This commit is contained in:
parent
0affa6686a
commit
75eb220ebb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266804
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= scilab
|
||||
PORTVERSION= 5.3.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math cad parallel java
|
||||
MASTER_SITES= http://www.scilab.org/download/${PORTVERSION}/:scilab \
|
||||
http://www.predatorlabs.net/dl/:jgraphx \
|
||||
@ -35,7 +36,8 @@ FFLAGS+= -fPIC
|
||||
|
||||
OPTIONS= ATLAS "Use Atlas instead of Blas" OFF \
|
||||
FFTW "Use FFTW" ON \
|
||||
GUI "Build GUI (requires Java and required for docs)" ON \
|
||||
GUI "Build GUI (requires Java)" ON \
|
||||
HELP "Help Browser (Java based, requires GUI)" ON \
|
||||
NLS "Build localization" OFF \
|
||||
MATIO "Matlab compatibility" OFF \
|
||||
OCAML "Build ocaml modelica compiler (requires GUI)" OFF \
|
||||
@ -127,7 +129,8 @@ JAVA_RUN= yes
|
||||
USE_XORG= x11
|
||||
|
||||
CONFIGURE_ARGS+= --with-jdk=${JAVA_HOME} \
|
||||
--with-docbook=${LOCALBASE}/share/xsl/docbook
|
||||
--with-docbook=${LOCALBASE}/share/xsl/docbook \
|
||||
--enable-build-help
|
||||
|
||||
DESKTOP_ENTRIES= "SciLab" \
|
||||
"${COMMENT}" \
|
||||
@ -136,6 +139,10 @@ DESKTOP_ENTRIES= "SciLab" \
|
||||
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_HELP)
|
||||
ALL_TARGET= all doc
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_FFTW)
|
||||
CONFIGURE_ARGS+= --without-fftw
|
||||
.else
|
||||
@ -213,7 +220,6 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|$$jardir/jeuclid-core*.jar|${LOCALBASE}/share/java/jeuclid/repo/jeuclid-core*.jar|' ${WRKSRC}/configure
|
||||
@${MKDIR} ${WRKSRC}/thirdparty
|
||||
@${CP} ${DISTDIR}/${JGRAPHX_JAR} ${WRKSRC}/thirdparty/jgraphx.jar
|
||||
@${REINPLACE_CMD} -e 's|@JGRAPHX@|${DATADIR}/modules/jgraphx.jar|g' ${WRKSRC}/etc/classpath.xml.in
|
||||
@# Run fixes
|
||||
@${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|' ${WRKSRC}/etc/librarypath.xml
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/etc/librarypath.xml
|
||||
@ -222,9 +228,10 @@ post-patch:
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${DATADIR}/.atoms
|
||||
.if !defined(WITHOUT_GUI)
|
||||
@${MKDIR} ${DATADIR}/modules && ${INSTALL_DATA} ${DISTDIR}/${JGRAPHX_JAR} ${DATADIR}/modules/jgraphx.jar
|
||||
@${MKDIR} ${DATADIR}/.atoms
|
||||
@${REINPLACE_CMD} -e 's|${WRKSRC}/thirdparty/jgraphx.jar|${DATADIR}/modules/jgraphx.jar|g' ${WRKSRC}/etc/classpath.xml
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
Loading…
Reference in New Issue
Block a user