aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-10-18 10:00:24 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-10-18 10:00:24 +0000
commit9395d497c5611f28a4e642c90d01399ea97e8261 (patch)
treed38fbd9ccdc1d828ee50fc0df34ec887ee9fad6f /math
parentdb9a1185a4b478ef1cac1841ceed2c0ea19ed81e (diff)
downloadports-9395d497c5611f28a4e642c90d01399ea97e8261.tar.gz
ports-9395d497c5611f28a4e642c90d01399ea97e8261.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/scilab/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/scilab/Makefile b/math/scilab/Makefile
index 89f718ed2b2e..ef8a2f426d8c 100644
--- a/math/scilab/Makefile
+++ b/math/scilab/Makefile
@@ -216,8 +216,10 @@ post-patch:
${REINPLACE_CMD} -e 's|$$jardir/fop.jar|${LOCALBASE}/share/java/fop/build/fop.jar|' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|$$jardir/jeuclid-core*.jar|${LOCALBASE}/share/java/jeuclid/repo/jeuclid-core*.jar|' ${WRKSRC}/configure
${MKDIR} ${WRKSRC}/thirdparty
+.if !defined(WITHOUT_GUI)
${CP} ${DISTDIR}/${JGRAPHX_JAR} ${WRKSRC}/thirdparty/jgraphx.jar
${REINPLACE_CMD} -e 's|@JGRAPHX@|${DATADIR}/modules/jgraphx.jar|g' ${WRKSRC}/etc/classpath.xml.in
+.endif
# Build fixes
${REINPLACE_CMD} -e 's|$$(CFLAGS:-O%=)|-I${LOCALBASE}/include -L${LOCALBASE}/lib|' ${WRKSRC}/modules/elementary_functions/Makefile.in
${REINPLACE_CMD} -e 's|freebsd|__FreeBSD__|g' ${WRKSRC}/modules/sparse/includes/spConfig.h
@@ -245,6 +247,8 @@ pre-install:
@${FIND} ${WRKSRC} -name \*.orig -delete
@${FIND} ${WRKSRC} -name \*.bak -delete
@${FIND} ${WRKSRC} -name .cvsignore -delete
+.if !defined(WITHOUT_GUI)
@${MKDIR} ${DATADIR}/modules && ${INSTALL_DATA} ${DISTDIR}/${JGRAPHX_JAR} ${DATADIR}/modules/jgraphx.jar
+.endif
.include <bsd.port.mk>