1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Convert to USES=tar:bzip2
This commit is contained in:
Pawel Pekala 2014-05-31 13:26:33 +00:00
parent 59ca7f5176
commit e91eb32c49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355969

View File

@ -11,8 +11,7 @@ DISTNAME= java3d-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Provides API for creating and manipulation of 3D geometry
USE_BZIP2= yes
USES= tar:bzip2
USE_JAVA= yes
USE_GL= gl
USE_XORG= xt
@ -25,7 +24,6 @@ PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///} ARCH=${ARCH}
DOCSSRC= ${WRKSRC}/j3d-core/build/freebsd/javadocs/docs-public
PORTDOCS= *
NO_STAGE= yes
RESTRICTED= License does not allow distribution
OPTIONS_DEFINE= DOCS
@ -51,19 +49,21 @@ do-build:
.endif
do-install:
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/ext
${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 \
${JAVA_HOME}/jre/lib/ext
${STAGEDIR}${JAVA_HOME}/jre/lib/ext
@${MKDIR} ${STAGEDIR}${JAVA_HOME}/jre/lib/${ARCH}
${INSTALL} \
${WRKSRC}/j3d-core/build/default/opt/native/libj3dcore-ogl.so \
${JAVA_HOME}/jre/lib/${ARCH}
${STAGEDIR}${JAVA_HOME}/jre/lib/${ARCH}
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${DOCSSRC} && ${COPYTREE_SHARE} \* ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${DOCSSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>