1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Sweet Home 3D is a free interior design application that helps you place your

furniture on a house 2D plan, with a 3D preview.

WWW: http://www.sweethome3d.com

PR:		ports/171760
Submitted by:	Matthias Petermann <matthias@petermann.it>
This commit is contained in:
Pawel Pekala 2013-03-21 20:16:53 +00:00
parent e42cf96191
commit d2a582db5c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314867
7 changed files with 109 additions and 0 deletions

View File

@ -99,6 +99,7 @@
SUBDIR += scv
SUBDIR += slffea
SUBDIR += spice
SUBDIR += sweethome3d
SUBDIR += systemc
SUBDIR += tkgate
SUBDIR += tochnog

41
cad/sweethome3d/Makefile Normal file
View File

@ -0,0 +1,41 @@
# Created by: Matthias Petermann <matthias@petermann.it>
# $FreeBSD$
PORTNAME= sweethome3d
PORTVERSION= 3.6
CATEGORIES= cad java
MASTER_SITES= SF/${PORTNAME}/SweetHome3D-source/${DISTNAME}/
DISTNAME= SweetHome3D-${PORTVERSION}-src
MAINTAINER= matthias@petermann.it
COMMENT= Free interior design application
LICENSE= GPLv2
BUILD_DEPENDS= java3d>=0:${PORTSDIR}/java/java3d
RUN_DEPENDS= java3d>=0:${PORTSDIR}/java/java3d
USE_ZIP= yes
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
ALL_TARGET= jarExecutable
JARNAME= SweetHome3D-${PORTVERSION}.jar
SUB_FILES= sweethome3d.sh
SUB_LIST= JARNAME=${JARNAME}
PLIST_FILES= bin/sweethome3d \
%%JAVAJARDIR%%/${JARNAME} \
share/pixmaps/sweethome3d-icon.png
DESKTOP_ENTRIES="Sweet Home 3D" "" "${PORTNAME}-icon" "${PORTNAME}" "" false
do-install:
${INSTALL_DATA} ${WRKSRC}/install/${JARNAME} ${JAVAJARDIR}/${JARNAME}
${INSTALL_SCRIPT} ${WRKDIR}/sweethome3d.sh ${PREFIX}/bin/sweethome3d
${INSTALL_DATA} ${WRKSRC}/deploy/SweetHome3DIcon32x32.png \
${PREFIX}/share/pixmaps/sweethome3d-icon.png
.include <bsd.port.mk>

2
cad/sweethome3d/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (SweetHome3D-3.6-src.zip) = 944d7c5b3b145504ad28fcc0da831e7b03855cd20770f18f6cb86b75feaecb04
SIZE (SweetHome3D-3.6-src.zip) = 18303801

View File

@ -0,0 +1,15 @@
--- ./build.xml.orig 2012-09-18 23:53:21.000000000 +0200
+++ ./build.xml 2012-09-18 23:53:37.000000000 +0200
@@ -388,12 +388,6 @@
<zipfileset src="build/Textures.jar"/>
<zipfileset src="build/Help.jar"/>
<fileset dir="lib">
- <include name="windows/**/*.dll"/>
- <include name="linux/**/*.so"/>
- <include name="macosx/*.jnilib"/>
- <include name="macosx/*.jar"/>
- </fileset>
- <fileset dir="lib">
<include name="*.jar"/>
</fileset>
<fileset dir="libtest">

View File

@ -0,0 +1,37 @@
--- ./src/com/eteks/sweethome3d/SweetHome3DBootstrap.java.orig 2012-09-18 23:50:39.000000000 +0200
+++ ./src/com/eteks/sweethome3d/SweetHome3DBootstrap.java 2012-09-18 23:52:55.000000000 +0200
@@ -48,23 +48,12 @@
"jnlp.jar",
"j3dcore.jar", // Main Java 3D jars
"vecmath.jar",
- "j3dutils.jar",
- "macosx/gluegen-rt.jar", // Mac OS X jars and DLLs
- "macosx/jogl.jar",
- "macosx/libgluegen-rt.jnilib",
- "macosx/libjogl.jnilib",
- "macosx/libjogl_awt.jnilib",
- "macosx/libjogl_cg.jnilib"}));
+ "j3dutils.jar"
+ }));
if ("64".equals(System.getProperty("sun.arch.data.model"))) {
- extensionJarsAndDlls.add("linux/x64/libj3dcore-ogl.so"); // Linux 64 bits DLLs
- extensionJarsAndDlls.add("windows/x64/j3dcore-ogl.dll"); // Windows 64 bits DLLs
+ extensionJarsAndDlls.add("/usr/local/openjdk6/jre/lib/amd64/libj3dcore-ogl.so");
} else {
- extensionJarsAndDlls.add("linux/i386/libj3dcore-ogl.so"); // Linux 32 bits DLLs
- extensionJarsAndDlls.add("linux/i386/libj3dcore-ogl-cg.so"); // Windows 32 bits DLLs
- extensionJarsAndDlls.add("windows/i386/j3dcore-d3d.dll");
- extensionJarsAndDlls.add("windows/i386/j3dcore-ogl.dll");
- extensionJarsAndDlls.add("windows/i386/j3dcore-ogl-cg.dll");
- extensionJarsAndDlls.add("windows/i386/j3dcore-ogl-chk.dll");
+ extensionJarsAndDlls.add("/usr/local/openjdk6/jre/lib/i386/libj3dcore-ogl.so");
}
String [] applicationPackages = {
@@ -93,4 +82,4 @@
// Call application class main method with reflection
applicationClassMain.invoke(null, new Object [] {args});
}
-}
\ No newline at end of file
+}

View File

@ -0,0 +1,9 @@
#!/bin/sh
#
# $FreeBSD$
JAVA="%%LOCALBASE%%/bin/java"
JARPATH="%%JAVALIBDIR%%"
export JAVA_VERSION="%%JAVA_VERSION%%"
exec "${JAVA}" -Xmx1024m -jar "${JARPATH}/%%JARNAME%%" "$@"

View File

@ -0,0 +1,4 @@
Sweet Home 3D is a free interior design application that helps you place your
furniture on a house 2D plan, with a 3D preview.
WWW: http://www.sweethome3d.com