diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-26 20:03:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-12-26 20:03:41 +0000 |
commit | 2bc3464d14d6b62ab53abebcbc35596a97cccec4 (patch) | |
tree | 9eddd0beaa3cee20fac5bdbacf02dec439b77bfb /math/vtk-java | |
parent | 1fab36bbe2aa96e1b7475c219ba58251309d097e (diff) | |
download | ports-2bc3464d14d6b62ab53abebcbc35596a97cccec4.tar.gz ports-2bc3464d14d6b62ab53abebcbc35596a97cccec4.zip |
Notes
Diffstat (limited to 'math/vtk-java')
-rw-r--r-- | math/vtk-java/Makefile | 69 | ||||
-rw-r--r-- | math/vtk-java/pkg-plist | 54 |
2 files changed, 123 insertions, 0 deletions
diff --git a/math/vtk-java/Makefile b/math/vtk-java/Makefile new file mode 100644 index 000000000000..d5da3850ab1a --- /dev/null +++ b/math/vtk-java/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: vtk-java +# Date created: 10 Oct 2003 +# Whom: Mykola Khotyaintsev <ko@irfu.se> +# +# $FreeBSD$ +# + +CATEGORIES+= java +PKGNAMESUFFIX= -java + +COMMENT= VTK Java classes and shared libs + +LIB_DEPENDS= vtkCommon.${LIBVER}:${PORTSDIR}/math/vtk + +MASTERDIR= ${.CURDIR}/../vtk + +WRAP= Java +BINARIES= VTKJavaExecutable vtkParseJava vtkWrapJava + +USE_JAVA= 1.4 +NEED_JAVAC= yes +USE_JIKES= no +JARFILE= vtk.jar # ${PORTNAME}.jar +DESTJARFILE= vtk.jar # ${PORTNAME}.jar +CMAKE_DEFS= -DVTK_WRAP_JAVA:BOOL=ON \ + -DJAVA_ARCHIVE:FILEPATH=${JAR} \ + -DJAVA_AWT_INCLUDE_PATH:PATH=${JAVA_HOME}/include \ + -DJAVA_AWT_LIBRARY:FILEPATH=${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so \ + -DJAVA_COMPILE:FILEPATH=${JAVAC} \ + -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include \ + -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/bsd + +.include "${MASTERDIR}/Makefile" + +.ifndef(WITH_TESTING) +pre-everything:: + @${ECHO_MSG} "----------------------- N O T E --------------------------" + @${ECHO_MSG} "" + @${ECHO_MSG} "If you want to build some Testing Java classes press Ctrl-C now" + @${ECHO_MSG} "and execute \"make WITH_TESTING=yes\"" + @${ECHO_MSG} "" + @${ECHO_MSG} "----------------------------------------------------------------" +.endif + +do-patch: patch-common + +do-install: install-cnotice install-binaries install-libs + @${ECHO_MSG} "Installing ${DESTJARFILE} to ${JAVAJARDIR} ..." + @${INSTALL_DATA} ${WRKSRC}/bin/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} + + @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${TESTINGDIR} + @${MKDIR} ${TESTINGDIR}/Java +.if defined(WITH_TESTING) + @${ECHO_MSG} "Installing Java tests to ${TESTINGDIR}/Java ..." +.for i in AxesActor SimpleVTK Regression TestVTKCanvas TestInternalFrames ImagePlaneWidget + @${INSTALL_DATA} ${WRKSRC}/Wrapping/Java/${i}*.class ${TESTINGDIR}/Java + @${INSTALL_DATA} ${VTKSRCDIR}/Wrapping/Java/${i}.java ${TESTINGDIR}/Java +.endfor +.endif + + @${ECHO_MSG} "This directory contains VTK Java tests" > ${TESTINGDIR}/Java/README + @${ECHO_MSG} "" >> ${TESTINGDIR}/Java/README + @${ECHO_MSG} "To run a SimpleVTK test type:" >> ${TESTINGDIR}/Java/README + @${ECHO_MSG} "java -classpath .:${PREFIX}/share/java/classes/vtk.jar -Djava.library.path=${PREFIX}/lib SimpleVTK" >> ${TESTINGDIR}/Java/README + @${ECHO_MSG} "" >> ${TESTINGDIR}/Java/README + @${ECHO_MSG} "Be shure to use java 1.3 or greater." >> ${TESTINGDIR}/Java/README + +.include <bsd.port.mk> diff --git a/math/vtk-java/pkg-plist b/math/vtk-java/pkg-plist new file mode 100644 index 000000000000..73968a6e4ade --- /dev/null +++ b/math/vtk-java/pkg-plist @@ -0,0 +1,54 @@ +bin/VTKJavaExecutable +bin/vtkParseJava +bin/vtkWrapJava +lib/libvtkCommonJava.so +lib/libvtkCommonJava.so.%%LIBVER%% +lib/libvtkFilteringJava.so +lib/libvtkFilteringJava.so.%%LIBVER%% +lib/libvtkGraphicsJava.so +lib/libvtkGraphicsJava.so.%%LIBVER%% +lib/libvtkHybridJava.so +lib/libvtkHybridJava.so.%%LIBVER%% +lib/libvtkIOJava.so +lib/libvtkIOJava.so.%%LIBVER%% +lib/libvtkImagingJava.so +lib/libvtkImagingJava.so.%%LIBVER%% +lib/libvtkParallelJava.so +lib/libvtkParallelJava.so.%%LIBVER%% +lib/libvtkPatentedJava.so +lib/libvtkPatentedJava.so.%%LIBVER%% +lib/libvtkRenderingJava.so +lib/libvtkRenderingJava.so.%%LIBVER%% +%%DOCSDIR%%/README.html +%%DOCSDIR%%/README.patented-classes +%%DOCSDIR%%/vtkLogo.jpg +share/java/classes/vtk.jar +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/AxesActor.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/AxesActor.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/ImagePlaneWidget$1.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/ImagePlaneWidget$2.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/ImagePlaneWidget.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/ImagePlaneWidget.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/Regression.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/Regression.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/SimpleVTK$1.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/SimpleVTK.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/SimpleVTK.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$1.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$CreateWindowAction.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$Desktop.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$KillAction.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$MenuMgr.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$SplitFrame.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$Tabbed.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames$VTKFrame.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestInternalFrames.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestVTKCanvas$1.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestVTKCanvas.class +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/TestVTKCanvas.java +%%TESTING_ONLY%%share/examples/vtk/Testing/Java/README +@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true +%%TESTING_ONLY%%@dirrm share/examples/vtk/Testing/Java +%%TESTING_ONLY%%@unexec rmdir %D/share/examples/vtk/testing 2>/dev/null || true +%%TESTING_ONLY%%@unexec rmdir %D/share/examples/vtk 2>/dev/null || true |