diff options
author | nork <nork@FreeBSD.org> | 2004-01-11 18:38:28 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2004-01-11 18:38:28 +0800 |
commit | 82959861bb784ff301417b2005affb24f286643c (patch) | |
tree | 8cdc4347fb67ff6a5c483c2281b435f889d0f6da | |
parent | 54a8dd25b1997cbfd705c6771dd18479de78eeb3 (diff) | |
download | freebsd-ports-gnome-82959861bb784ff301417b2005affb24f286643c.tar.gz freebsd-ports-gnome-82959861bb784ff301417b2005affb24f286643c.tar.zst freebsd-ports-gnome-82959861bb784ff301417b2005affb24f286643c.zip |
o Print pkg-message for setting libmap.conf.
o Cosmetic change.
PR: CBUG-ML/2572
Submitted by: OISHI Masakuni <yamasa@bsdhouse.org>
Committed at: CBUG 2004 New Year Party
Reviewed by: OISHI Masakuni <yamasa@bsdhouse.org>
-rw-r--r-- | java/java3d/Makefile | 20 | ||||
-rw-r--r-- | java/java3d/pkg-message-jre | 8 | ||||
-rw-r--r-- | java/java3d/pkg-message-libmap | 20 | ||||
-rw-r--r-- | java/java3d/pkg-plist | 21 |
4 files changed, 62 insertions, 7 deletions
diff --git a/java/java3d/Makefile b/java/java3d/Makefile index fa88b04af024..44b29ef82e35 100644 --- a/java/java3d/Makefile +++ b/java/java3d/Makefile @@ -31,10 +31,12 @@ NO_PACKAGE= "License doesn\'t allow binary distributions" TARGET_DIR= ${JAVASHAREDIR}/${PORTNAME} PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///} +PKGMESSAGE= ${WRKDIR}/pkg-message .include <bsd.port.pre.mk> .if ${JAVA_OS} == "FreeBSD" +WITH_PLUGINWRAPPER= yes RUN_DEPENDS+= ${LOCALBASE}/lib/pluginwrapper/java3d.so:${PORTSDIR}/www/linuxpluginwrapper .endif @@ -44,6 +46,19 @@ PLIST_SUB+= INSTALL_IN_JRE="@comment " PLIST_SUB+= INSTALL_IN_JRE="" .endif +pre-install: +.if defined(NOINSTALL_IN_JRE) + @${SED} -e "s:%%TARGET_DIR%%:${TARGET_DIR}:g" ${MASTERDIR}/pkg-message-jre > ${PKGMESSAGE} +.endif +.if defined(WITH_PLUGINWRAPPER) +.if defined(NOINSTALL_IN_JRE) + @${ECHO_CMD} >> ${PKGMESSAGE} + @${SED} -e "s:%%LIBDIR%%:${TARGET_DIR}/lib:g" ${MASTERDIR}/pkg-message-libmap >> ${PKGMESSAGE} +.else + @${SED} -e "s:%%LIBDIR%%:${JAVA_HOME}/jre/lib/i386:g" ${MASTERDIR}/pkg-message-libmap > ${PKGMESSAGE} +.endif +.endif + do-install: @${ECHO_CMD} -n ">> Creating destination directory..." @${MKDIR} ${TARGET_DIR} @@ -68,4 +83,9 @@ do-install: @${ECHO_CMD} " [DONE]" .endif +post-install: +.if defined(NOINSTALL_IN_JRE) || defined(WITH_PLUGINWRAPPER) + @${CAT} ${PKGMESSAGE} +.endif + .include <bsd.port.post.mk> diff --git a/java/java3d/pkg-message-jre b/java/java3d/pkg-message-jre new file mode 100644 index 000000000000..7de33924f4cf --- /dev/null +++ b/java/java3d/pkg-message-jre @@ -0,0 +1,8 @@ +The Java3D libraries are not installed in JRE, so you have to add + %%TARGET_DIR%%/jar/j3daudio.jar + %%TARGET_DIR%%/jar/j3dcore.jar + %%TARGET_DIR%%/jar/j3dutils.jar + %%TARGET_DIR%%/jar/vecmath.jar +to the CLASSPATH environment variable, and add + %%TARGET_DIR%%/lib +to the LD_LIBRARY_PATH environment variable. diff --git a/java/java3d/pkg-message-libmap b/java/java3d/pkg-message-libmap new file mode 100644 index 000000000000..f4b954bb4b73 --- /dev/null +++ b/java/java3d/pkg-message-libmap @@ -0,0 +1,20 @@ +In order to use the Java3D on FreeBSD native JavaVM, +describe as follows to your /etc/libmap.conf. +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +[%%LIBDIR%%/libJ3D.so] +libdl.so.2 pluginwrapper/java3d.so +libm.so.6 libm.so.2 +libnsl.so.1 pluginwrapper/java3d.so +libpthread.so.0 pluginwrapper/java3d.so +libc.so.6 pluginwrapper/java3d.so + +[%%LIBDIR%%/libJ3DUtils.so] +libpthread.so.0 pluginwrapper/java3d.so +libc.so.6 pluginwrapper/java3d.so + +[%%LIBDIR%%/libj3daudio.so] +libm.so.6 libm.so.2 +libnsl.so.1 pluginwrapper/java3d_snd.so +libpthread.so.0 pluginwrapper/java3d_snd.so +libc.so.6 pluginwrapper/java3d_snd.so +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/java3d/pkg-plist b/java/java3d/pkg-plist index 73f448aae8b7..034501dbb6da 100644 --- a/java/java3d/pkg-plist +++ b/java/java3d/pkg-plist @@ -432,13 +432,20 @@ %%PORTDOCS%%%%T%%/demo/images/stone.jpg %%PORTDOCS%%%%T%%/demo/images/ttimage.jpg %%PORTDOCS%%%%T%%/demo/index.html -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/ext/j3daudio.jar -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/ext/j3dcore.jar -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/ext/j3dutils.jar -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/ext/vecmath.jar -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/i386/libJ3D.so -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/i386/libJ3DUtils.so -%%INSTALL_IN_JRE%%%%JAVA_HOME%%/jre/lib/i386/libj3daudio.so +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/j3daudio.jar %D/%%JAVA_HOME%%/jre/lib/ext +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/j3dcore.jar %D/%%JAVA_HOME%%/jre/lib/ext +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/j3dutils.jar %D/%%JAVA_HOME%%/jre/lib/ext +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/jar/vecmath.jar %D/%%JAVA_HOME%%/jre/lib/ext +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/lib/libJ3D.so %D/%%JAVA_HOME%%/jre/lib/i386 +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/lib/libJ3DUtils.so %D/%%JAVA_HOME%%/jre/lib/i386 +%%INSTALL_IN_JRE%%@exec /bin/ln -sf %D/%%T%%/lib/libj3daudio.so %D/%%JAVA_HOME%%/jre/lib/i386 +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/j3daudio.jar +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/j3dcore.jar +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/j3dutils.jar +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/ext/vecmath.jar +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/i386/libJ3D.so +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/i386/libJ3DUtils.so +%%INSTALL_IN_JRE%%@unexec /bin/rm -f %D/%%JAVA_HOME%%/jre/lib/i386/libj3daudio.so %%PORTDOCS%%@dirrm %%T%%/demo/images %%PORTDOCS%%@dirrm %%T%%/demo/geometry %%PORTDOCS%%@dirrm %%T%%/demo/VirtualInputDevice |