mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 04:16:27 -04:00
USES=java:ant does not imply USES=java:run so we need to add the run arg seperately when we are using USES=java:ant. Not all ports require the the argument so it is better to address the ports individually instead of handling it automatically by implying run for ant. Thanks to vvd for carefully going through this. Reported by: vvd Approved by: portmgr (blanket)
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
PORTNAME= jogamp-jogl
|
|
PORTVERSION= 2.3.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics devel java
|
|
MASTER_SITES= http://jogamp.org/deployment/jogamp-current/archive/Sources/ \
|
|
http://jogamp.org/deployment/v${PORTVERSION}/archive/Sources/
|
|
DISTFILES= jogl-v${PORTVERSION}.tar.xz \
|
|
gluegen-v${PORTVERSION}.tar.xz \
|
|
jcpp-v${PORTVERSION}.tar.xz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java bindings for OpenGL
|
|
WWW= https://jogamp.org/jogl
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/swt.jar:x11-toolkits/swt
|
|
RUN_DEPENDS= ${JAVALIBDIR}/swt.jar:x11-toolkits/swt
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64 powerpc64 powerpc64le
|
|
|
|
USES= compiler java:ant,run tar:xz xorg
|
|
USE_XORG= x11 xcursor xrandr xrender xxf86vm
|
|
|
|
PATCH_WRKSRC= ${WRKDIR}
|
|
BUILD_WRKSRC= ${WRKDIR}/jogl/make
|
|
|
|
# compiler must be literally "gcc" or "clang"
|
|
BINARY_ALIAS= ${CHOSEN_COMPILER_TYPE}=${CC}
|
|
MAKE_ARGS= -Dgcc.compat.compiler=${CHOSEN_COMPILER_TYPE}
|
|
|
|
post-extract:
|
|
${MV} ${WRKDIR}/gluegen-v${PORTVERSION} ${WRKDIR}/gluegen
|
|
${MV} ${WRKDIR}/jcpp-v${PORTVERSION}/src ${WRKDIR}/gluegen/jcpp/src
|
|
${MV} ${WRKDIR}/jogl-v${PORTVERSION} ${WRKDIR}/jogl
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \
|
|
${BUILD_WRKSRC}/build-common.xml
|
|
${REINPLACE_CMD} -e '/name="all"/s|,test.compile||g' \
|
|
${BUILD_WRKSRC}/build.xml
|
|
|
|
pre-build:
|
|
@(cd ${WRKDIR}/gluegen/make; \
|
|
${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} all.no_junit)
|
|
|
|
do-install:
|
|
${INSTALL_LIB} \
|
|
${WRKDIR}/gluegen/build/obj/libgluegen2-rt.so \
|
|
${WRKDIR}/jogl/build/lib/*.so \
|
|
${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} \
|
|
${WRKDIR}/gluegen/build/gluegen2-rt.jar \
|
|
${WRKDIR}/gluegen/build/gluegen2.jar \
|
|
${STAGEDIR}${JAVAJARDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/jogl/build/jar/jogl-all.jar \
|
|
${STAGEDIR}${JAVAJARDIR}/jogl2.jar
|
|
|
|
.include <bsd.port.mk>
|