f0ee6c61db
- Properly rename gluegen library and jar files - Add patch to fix build on i386
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# Created by: Tassilo Philipp <tphilipp@potion-studios.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jogamp-jogl
|
|
PORTVERSION= 2.1.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics devel java
|
|
MASTER_SITES= http://jogamp.org/deployment/jogamp-current/archive/Sources/
|
|
DISTFILES= jogl-v${PORTVERSION}.tar.7z \
|
|
gluegen-v${PORTVERSION}.tar.7z
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
COMMENT= Java bindings for OpenGL
|
|
|
|
EXTRACT_DEPENDS= ${7Z_CMD}:${PORTSDIR}/archivers/p7zip
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
|
|
RUN_DEPENDS= ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_ANT= yes
|
|
USE_GCC= yes
|
|
USE_JAVA= yes
|
|
USE_XORG= x11 xcursor xrandr xrender xxf86vm
|
|
|
|
7Z_CMD= ${LOCALBASE}/bin/7z
|
|
EXTRACT_CMD= ${7Z_CMD}
|
|
EXTRACT_BEFORE_ARGS= x -so
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf -
|
|
|
|
PATCH_WRKSRC= ${WRKDIR}
|
|
BUILD_WRKSRC= ${WRKDIR}/jogl/make
|
|
BUILD_BINPATH= ${WRKSRC}/bin
|
|
MAKE_ENV+= PATH="${BUILD_BINPATH}:${PATH}"
|
|
|
|
post-extract:
|
|
${MV} ${WRKDIR}/gluegen-v${PORTVERSION} ${WRKDIR}/gluegen
|
|
${MV} ${WRKDIR}/jogl-v${PORTVERSION} ${WRKDIR}/jogl
|
|
${MKDIR} ${BUILD_BINPATH}
|
|
${LN} -sf ${LOCALBASE}/bin/${CC} ${BUILD_BINPATH}/gcc
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|g' \
|
|
${BUILD_WRKSRC}/build-common.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>
|