2012-12-10 13:18:28 +00:00
|
|
|
# Created by: nork@FreeBSD.org
|
2003-12-30 08:58:41 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= java3d
|
2008-09-03 14:41:58 +00:00
|
|
|
PORTVERSION= 1.5.2
|
2017-05-23 05:03:14 +00:00
|
|
|
PORTREVISION= 5
|
2012-09-27 23:03:38 +00:00
|
|
|
CATEGORIES= java graphics games devel
|
|
|
|
MASTER_SITES= https://sites.google.com/site/daemonwizard/
|
2003-12-30 08:58:41 +00:00
|
|
|
|
2012-09-27 23:03:38 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Provides API for creating and manipulation of 3D geometry
|
2003-12-30 08:58:41 +00:00
|
|
|
|
2016-08-04 23:59:15 +00:00
|
|
|
LICENSE= BSD2CLAUSE GPLv2
|
2014-09-25 20:52:28 +00:00
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
2018-06-22 01:15:19 +00:00
|
|
|
BROKEN_aarch64= fails to compile: GVector.java:168: bad use of '>'
|
2017-05-26 20:02:44 +00:00
|
|
|
BROKEN_armv6= fails to compile: build.xml: Compile failed; see the compiler error output for details
|
2017-11-30 06:13:34 +00:00
|
|
|
BROKEN_armv7= fails to compile: build.xml: Compile failed; see the compiler error output for details
|
2017-05-26 20:02:44 +00:00
|
|
|
|
2019-11-06 18:03:34 +00:00
|
|
|
USES= gl tar:bzip2 xorg
|
2020-07-24 15:24:40 +00:00
|
|
|
USE_JAVA= 8
|
2008-09-09 18:49:02 +00:00
|
|
|
USE_GL= gl
|
2009-06-12 19:15:18 +00:00
|
|
|
USE_XORG= xt
|
2012-12-10 16:49:34 +00:00
|
|
|
JAVA_VENDOR= openjdk
|
2008-09-03 14:41:58 +00:00
|
|
|
USE_ANT= yes
|
2018-03-29 10:33:45 +00:00
|
|
|
LLD_UNSAFE= yes
|
2003-12-30 08:58:41 +00:00
|
|
|
|
2008-09-03 14:41:58 +00:00
|
|
|
PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///} ARCH=${ARCH}
|
2003-12-30 08:58:41 +00:00
|
|
|
|
2008-09-03 14:41:58 +00:00
|
|
|
DOCSSRC= ${WRKSRC}/j3d-core/build/freebsd/javadocs/docs-public
|
|
|
|
PORTDOCS= *
|
2012-09-27 23:03:38 +00:00
|
|
|
|
2014-02-21 13:37:40 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2018-11-05 23:27:49 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-08-26 06:42:26 +00:00
|
|
|
post-patch:
|
2016-08-04 23:59:15 +00:00
|
|
|
${REINPLACE_CMD} -e 's|gcc|${CC}|g' \
|
2013-08-26 06:42:26 +00:00
|
|
|
${WRKSRC}/j3d-core/src/native/ogl/build-freebsd.xml
|
|
|
|
|
2008-09-03 14:41:58 +00:00
|
|
|
do-build:
|
2013-06-16 17:05:55 +00:00
|
|
|
cd ${WRKSRC}/vecmath && ${SETENV} ${MAKE_ENV} ${ANT} dist
|
|
|
|
cd ${WRKSRC}/j3d-core \
|
|
|
|
&& ${SETENV} ${MAKE_ENV} ${ANT} -Dbuild.type=fcs \
|
|
|
|
-Dis${OPSYS}=yes \
|
|
|
|
-Dports.localbase=${LOCALBASE} \
|
|
|
|
jar-opt
|
2016-07-19 11:04:13 +00:00
|
|
|
|
|
|
|
post-build-DOCS-on:
|
2013-06-16 17:05:55 +00:00
|
|
|
cd ${WRKSRC}/j3d-core \
|
|
|
|
&& ${SETENV} ${MAKE_ENV} ${ANT} -Dbuild.type=fcs \
|
|
|
|
-Dis${OPSYS}=yes \
|
|
|
|
docs-public
|
2004-01-11 10:38:28 +00:00
|
|
|
|
2003-12-30 08:58:41 +00:00
|
|
|
do-install:
|
2014-05-31 13:26:33 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/ext
|
2008-09-03 14:41:58 +00:00
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/vecmath/dist/lib/ext/vecmath.jar \
|
|
|
|
${WRKSRC}/j3d-core/build/default/opt/lib/ext/j3dcore.jar \
|
|
|
|
${WRKSRC}/j3d-core/build/default/opt/lib/ext/j3dutils.jar \
|
2014-05-31 13:26:33 +00:00
|
|
|
${STAGEDIR}${JAVA_HOME}/jre/lib/ext
|
|
|
|
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/${ARCH}
|
2008-09-03 14:41:58 +00:00
|
|
|
${INSTALL} \
|
|
|
|
${WRKSRC}/j3d-core/build/default/opt/native/libj3dcore-ogl.so \
|
2014-05-31 13:26:33 +00:00
|
|
|
${STAGEDIR}${JAVA_HOME}/jre/lib/${ARCH}
|
2003-12-30 08:58:41 +00:00
|
|
|
|
2016-07-19 11:04:13 +00:00
|
|
|
post-install-DOCS-on:
|
2014-05-31 13:26:33 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${DOCSSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
|
2004-01-11 10:38:28 +00:00
|
|
|
|
2008-09-03 14:41:58 +00:00
|
|
|
.include <bsd.port.mk>
|