Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2012 00:50:13 GMT
From:      Matthias Petermann <matthias@d2ux.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/171760: New port: cad/sweethome3d
Message-ID:  <201209190050.q8J0oDYU013512@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/171760; it has been noted by GNATS.

From: Matthias Petermann <matthias@d2ux.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/171760: New port: cad/sweethome3d
Date: Wed, 19 Sep 2012 02:44:50 +0200

 This is a multi-part message in MIME format.
 
 --Multipart=_Wed__19_Sep_2012_02_44_50_+0200_tSPSxT=VpWPIxB2v
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Looks like something went wrong during the web based submission of my PR. Here is the full description, again:
 
 "Sweet Home 3D is a free interior design application that helps you place your furniture on a house 2D plan, with a 3D preview."
 
 It is implemented in Java and makes use of the Java3D extension. Therefore it depends on platform dependend native libraries. The included patches do:
 
 - Modify the Java code to not try to load the native Java3D libs for Windows, Linux and MacOSX which are provided within the source code ZIP. Instead, load FreeBSD amd64 or i386 libs externally from openjdk6/lib/[amd64|i386]/libj3dcore-ogl.so
 
 - Modify the build.xml to not include native Java3D libs in the jar file.
 
 The port also provides a shell script to launch the app an a desktop entry and icon.
 
 --Multipart=_Wed__19_Sep_2012_02_44_50_+0200_tSPSxT=VpWPIxB2v
 Content-Type: text/plain;
  name="sweethome3d.txt"
 Content-Disposition: attachment;
  filename="sweethome3d.txt"
 Content-Transfer-Encoding: 7bit
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	sweethome3d
 #	sweethome3d/files
 #	sweethome3d/files/patch-src__com__eteks__sweethome3d__SweetHome3DBootstrap.java
 #	sweethome3d/files/patch-build.xml
 #	sweethome3d/files/sweethome3d.sh.in
 #	sweethome3d/files/sweethome3d.desktop.in
 #	sweethome3d/Makefile
 #	sweethome3d/distinfo
 #	sweethome3d/pkg-descr
 #
 echo c - sweethome3d
 mkdir -p sweethome3d > /dev/null 2>&1
 echo c - sweethome3d/files
 mkdir -p sweethome3d/files > /dev/null 2>&1
 echo x - sweethome3d/files/patch-src__com__eteks__sweethome3d__SweetHome3DBootstrap.java
 sed 's/^X//' >sweethome3d/files/patch-src__com__eteks__sweethome3d__SweetHome3DBootstrap.java << '5e3a0233eb02c2a34927f087e6088113'
 X--- ./src/com/eteks/sweethome3d/SweetHome3DBootstrap.java.orig	2012-09-18 23:50:39.000000000 +0200
 X+++ ./src/com/eteks/sweethome3d/SweetHome3DBootstrap.java	2012-09-18 23:52:55.000000000 +0200
 X@@ -48,23 +48,12 @@
 X         "jnlp.jar",
 X         "j3dcore.jar", // Main Java 3D jars
 X         "vecmath.jar",
 X-        "j3dutils.jar",
 X-        "macosx/gluegen-rt.jar", // Mac OS X jars and DLLs
 X-        "macosx/jogl.jar",
 X-        "macosx/libgluegen-rt.jnilib",
 X-        "macosx/libjogl.jnilib",
 X-        "macosx/libjogl_awt.jnilib",
 X-        "macosx/libjogl_cg.jnilib"}));
 X+        "j3dutils.jar"
 X+    }));
 X     if ("64".equals(System.getProperty("sun.arch.data.model"))) {
 X-      extensionJarsAndDlls.add("linux/x64/libj3dcore-ogl.so"); // Linux 64 bits DLLs
 X-      extensionJarsAndDlls.add("windows/x64/j3dcore-ogl.dll"); // Windows 64 bits DLLs
 X+      extensionJarsAndDlls.add("/usr/local/openjdk6/jre/lib/amd64/libj3dcore-ogl.so");
 X     } else {
 X-      extensionJarsAndDlls.add("linux/i386/libj3dcore-ogl.so"); // Linux 32 bits DLLs
 X-      extensionJarsAndDlls.add("linux/i386/libj3dcore-ogl-cg.so"); // Windows 32 bits DLLs
 X-      extensionJarsAndDlls.add("windows/i386/j3dcore-d3d.dll");
 X-      extensionJarsAndDlls.add("windows/i386/j3dcore-ogl.dll");
 X-      extensionJarsAndDlls.add("windows/i386/j3dcore-ogl-cg.dll");
 X-      extensionJarsAndDlls.add("windows/i386/j3dcore-ogl-chk.dll");
 X+      extensionJarsAndDlls.add("/usr/local/openjdk6/jre/lib/i386/libj3dcore-ogl.so");
 X     }
 X     
 X     String [] applicationPackages = {
 X@@ -93,4 +82,4 @@
 X     // Call application class main method with reflection
 X     applicationClassMain.invoke(null, new Object [] {args});
 X   }
 X-}
 X\ No newline at end of file
 X+}
 5e3a0233eb02c2a34927f087e6088113
 echo x - sweethome3d/files/patch-build.xml
 sed 's/^X//' >sweethome3d/files/patch-build.xml << 'd18d3d01e3896f4f6acf86b9ac51f174'
 X--- ./build.xml.orig	2012-09-18 23:53:21.000000000 +0200
 X+++ ./build.xml	2012-09-18 23:53:37.000000000 +0200
 X@@ -388,12 +388,6 @@
 X       <zipfileset src="build/Textures.jar"/>
 X       <zipfileset src="build/Help.jar"/>
 X       <fileset dir="lib">
 X-        <include name="windows/**/*.dll"/>
 X-        <include name="linux/**/*.so"/>
 X-        <include name="macosx/*.jnilib"/>
 X-        <include name="macosx/*.jar"/>
 X-      </fileset>
 X-      <fileset dir="lib">
 X         <include name="*.jar"/>
 X       </fileset>
 X       <fileset dir="libtest">
 d18d3d01e3896f4f6acf86b9ac51f174
 echo x - sweethome3d/files/sweethome3d.sh.in
 sed 's/^X//' >sweethome3d/files/sweethome3d.sh.in << 'aa75051197f582c450e2fed1c1f57ba1'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X
 XJAVA="%%LOCALBASE%%/bin/java"
 XJARPATH="%%JAVALIBDIR%%"
 Xexport JAVA_VERSION="%%JAVA_VERSION%%"
 X
 Xexec "${JAVA}" -Xmx1024m -jar "${JARPATH}/%%JARNAME%%" "$@"
 aa75051197f582c450e2fed1c1f57ba1
 echo x - sweethome3d/files/sweethome3d.desktop.in
 sed 's/^X//' >sweethome3d/files/sweethome3d.desktop.in << '81b5e46889144c9212dbb93ad1f9c94f'
 X[Desktop Entry]
 XVersion=1.0
 XType=Application
 XName=Sweet Home 3D
 XGenericName=Sweet Home 3D
 XComment=An interior design application
 XExec=sweethome3d
 XIcon=sweethome3d-icon
 XTerminal=false
 XCategories=Graphics;
 81b5e46889144c9212dbb93ad1f9c94f
 echo x - sweethome3d/Makefile
 sed 's/^X//' >sweethome3d/Makefile << '04f116f4852872f51f9004e62ebf10f0'
 X# Created by: Matthias Petermann <matthias@petermann.it>
 X# $FreeBSD$
 X
 XPORTNAME=	sweethome3d
 XPORTVERSION=	3.6
 XCATEGORIES=	cad java
 XMASTER_SITES=	SF/${PORTNAME}/SweetHome3D-source/SweetHome3D-${PORTVERSION}-src/
 XDISTNAME=	SweetHome3D-3.6-src
 X
 XMAINTAINER=	matthias@petermann.it
 XCOMMENT=	Sweet Home 3D is a free interior design application
 X
 XLICENSE=	GPLv2
 X
 XBUILD_DEPENDS=	${JAVA_HOME}/jre/lib/ext/j3dcore.jar:${PORTSDIR}/java/java3d
 XRUN_DEPENDS:=	${BUILD_DEPENDS}
 X
 XUSE_GNOME=	desktopfileutils
 XUSE_ZIP=	YES
 XUSE_ANT=	yes
 XUSE_JAVA=	yes
 XJAVA_VERSION=	1.6
 X
 XALL_TARGET=	jarExecutable
 XJARNAME=	SweetHome3D-${PORTVERSION}.jar
 X
 XSUB_FILES=	sweethome3d.sh sweethome3d.desktop
 XSUB_LIST=	JARNAME=${JARNAME}
 X
 XPLIST_FILES=	bin/sweethome3d \
 X		${JAVAJARDIR:C,${PREFIX}/?,,}/${JARNAME} \
 X		share/applications/sweethome3d.desktop \
 X		share/pixmaps/sweethome3d-icon.png
 X
 Xdo-install:
 X	${INSTALL_DATA} ${WRKSRC}/install/${JARNAME} ${JAVAJARDIR}/${JARNAME}
 X	${INSTALL_SCRIPT} ${WRKDIR}/sweethome3d.sh ${PREFIX}/bin/sweethome3d
 X	${INSTALL_DATA} ${WRKDIR}/sweethome3d.desktop ${PREFIX}/share/applications/sweethome3d.desktop
 X	${INSTALL_DATA} ${WRKSRC}/deploy/SweetHome3DIcon32x32.png ${PREFIX}/share/pixmaps/sweethome3d-icon.png
 X
 Xpost-install:
 X	@-update-desktop-database
 X
 X.include <bsd.port.mk>
 04f116f4852872f51f9004e62ebf10f0
 echo x - sweethome3d/distinfo
 sed 's/^X//' >sweethome3d/distinfo << '6e8c5e9c1a1f58b9e07655f659e4b14e'
 XSHA256 (SweetHome3D-3.6-src.zip) = 944d7c5b3b145504ad28fcc0da831e7b03855cd20770f18f6cb86b75feaecb04
 XSIZE (SweetHome3D-3.6-src.zip) = 18303801
 6e8c5e9c1a1f58b9e07655f659e4b14e
 echo x - sweethome3d/pkg-descr
 sed 's/^X//' >sweethome3d/pkg-descr << '9e61f2a124b432fdf02e673061fe897f'
 XSweet Home 3D is a free interior design application that helps you place your
 Xfurniture on a house 2D plan, with a 3D preview.
 X
 XWWW: http://www.sweethome3d.com
 9e61f2a124b432fdf02e673061fe897f
 exit
 
 
 --Multipart=_Wed__19_Sep_2012_02_44_50_+0200_tSPSxT=VpWPIxB2v--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209190050.q8J0oDYU013512>