summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorplunky <plunky>2017-02-21 20:36:39 +0000
committerplunky <plunky>2017-02-21 20:36:39 +0000
commit5a2d4cbbd45d4c8125bdb333fd8a1efe5b94a30f (patch)
treeeada3a63dd71b6116a15223b1ea27816e16d0a2c /cad
parent3e8903992da300539b7cacf1b5f2f53e8ef9be3b (diff)
downloadpkgsrc-5a2d4cbbd45d4c8125bdb333fd8a1efe5b94a30f.tar.gz
Add new package Solvespace v2.3
-- SOLVESPACE is a parametric 3d CAD program. Applications include: modeling 3d parts - draw with extrudes, revolves, and Boolean (union / difference) operations modeling 2d parts - draw the part as a single section, and export DXF, PDF, SVG; use 3d assembly to verify fit 3d-printed parts - export the STL or other triangle mesh expected by most 3d printers preparing CAM data - export 2d vector art for a waterjet machine or laser cutter; or generate STEP or STL, for import into third-party CAM software for machining mechanism design - use the constraint solver to simulate planar or spatial linkages, with pin, ball, or slide joints plane and solid geometry - replace hand-solved trigonometry and spreadsheets with a live dimensioned drawing
Diffstat (limited to 'cad')
-rw-r--r--cad/solvespace/DESCR20
-rw-r--r--cad/solvespace/Makefile58
-rw-r--r--cad/solvespace/PLIST19
-rw-r--r--cad/solvespace/distinfo11
-rw-r--r--cad/solvespace/patches/patch-CMakeLists.txt15
5 files changed, 123 insertions, 0 deletions
diff --git a/cad/solvespace/DESCR b/cad/solvespace/DESCR
new file mode 100644
index 00000000000..c3abf332293
--- /dev/null
+++ b/cad/solvespace/DESCR
@@ -0,0 +1,20 @@
+SOLVESPACE is a parametric 3d CAD program. Applications include:
+
+ modeling 3d parts - draw with extrudes, revolves, and Boolean
+ (union / difference) operations
+
+ modeling 2d parts - draw the part as a single section, and export
+ DXF, PDF, SVG; use 3d assembly to verify fit
+
+ 3d-printed parts - export the STL or other triangle mesh expected
+ by most 3d printers
+
+ preparing CAM data - export 2d vector art for a waterjet machine
+ or laser cutter; or generate STEP or STL, for import into
+ third-party CAM software for machining
+
+ mechanism design - use the constraint solver to simulate planar
+ or spatial linkages, with pin, ball, or slide joints
+
+ plane and solid geometry - replace hand-solved trigonometry and
+ spreadsheets with a live dimensioned drawing
diff --git a/cad/solvespace/Makefile b/cad/solvespace/Makefile
new file mode 100644
index 00000000000..04bec49fb76
--- /dev/null
+++ b/cad/solvespace/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2017/02/21 20:36:39 plunky Exp $
+#
+#
+# Both of these hashes need to be updated when the solvespace version
+# is bumped.
+#
+# The solvespace hash is used to identify the build version
+#
+# Solvespace has a private fork of libdxfrw which is stored in github
+# as a submodule, which is not included in the v2.3 archive.
+#
+LIBDXF_HASH= 8f958955f54668c142ded760dc951ffd16d9c71b
+SOLVESPACE_HASH= 7c1ca460769fc8cbef26d296338d4bbc6f2ef6d0
+
+DISTNAME= solvespace-2.3
+CATEGORIES= cad
+MASTER_SITES= http://github.com/solvespace/solvespace/archive/
+DIST_SUBDIR= ${PKGNAME_NOREV}
+DISTFILES= v${PKGVERSION_NOREV}.tar.gz
+DISTFILES+= ${LIBDXF_HASH}.tar.gz
+SITES.${LIBDXF_HASH}.tar.gz= \
+ http://github.com/solvespace/libdxfrw/archive/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.solvespace.com/
+COMMENT= Parametric 2D/3D CAD
+LICENSE= gnu-gpl-v3
+
+EXTRACT_USING= bsdtar
+EXTRACT_DIR.${LIBDXF_HASH}.tar.gz= \
+ ${WRKSRC}/extlib
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+USE_CMAKE= yes
+
+CMAKE_ARGS+= -DGIT_COMMIT_HASH=${SOLVESPACE_HASH}
+CMAKE_ARGS+= -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
+
+SUBST_CLASSES+= libdxfrw
+SUBST_STAGE.libdxfrw= post-patch
+SUBST_MESSAGE.libdxfrw= Set libdxfrw directory
+SUBST_FILES.libdxfrw= CMakeLists.txt
+SUBST_SED.libdxfrw= -e "s,extlib/libdxfrw,extlib/libdxfrw-${LIBDXF_HASH},"
+
+.include "../../devel/pangomm/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glew/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../x11/gtkmm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cad/solvespace/PLIST b/cad/solvespace/PLIST
new file mode 100644
index 00000000000..03f3fc4aeae
--- /dev/null
+++ b/cad/solvespace/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/21 20:36:39 plunky Exp $
+bin/solvespace
+include/slvs.h
+lib/libslvs.so
+lib/libslvs.so.1
+lib/libslvs.so.${PKGVERSION}
+share/applications/solvespace.desktop
+share/icons/hicolor/16x16/apps/solvespace.png
+share/icons/hicolor/16x16/mimetypes/application.x-solvespace.png
+share/icons/hicolor/24x24/apps/solvespace.png
+share/icons/hicolor/24x24/mimetypes/application.x-solvespace.png
+share/icons/hicolor/32x32/apps/solvespace.png
+share/icons/hicolor/32x32/mimetypes/application.x-solvespace.png
+share/icons/hicolor/48x48/apps/solvespace.png
+share/icons/hicolor/48x48/mimetypes/application.x-solvespace.png
+share/pixmaps/solvespace-16x16.xpm
+share/pixmaps/solvespace-24x24.xpm
+share/pixmaps/solvespace-32x32.xpm
+share/pixmaps/solvespace-48x48.xpm
diff --git a/cad/solvespace/distinfo b/cad/solvespace/distinfo
new file mode 100644
index 00000000000..3612a30c54b
--- /dev/null
+++ b/cad/solvespace/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2017/02/21 20:36:39 plunky Exp $
+
+SHA1 (solvespace-2.3/8f958955f54668c142ded760dc951ffd16d9c71b.tar.gz) = 813e2e0fa537acccf991dd07c673a867598a5576
+RMD160 (solvespace-2.3/8f958955f54668c142ded760dc951ffd16d9c71b.tar.gz) = e0d6a2996459984f4f4a10299409911c4b40437d
+SHA512 (solvespace-2.3/8f958955f54668c142ded760dc951ffd16d9c71b.tar.gz) = 40f27cf32c1a2be1f654d82406c2f7d765cf350d3ceb134e3e1a82b17443f7a12dfda1102fe8438b70f13982af675f97fb1a62ad892acb3ed3d2e19b89a7c013
+Size (solvespace-2.3/8f958955f54668c142ded760dc951ffd16d9c71b.tar.gz) = 691686 bytes
+SHA1 (solvespace-2.3/v2.3.tar.gz) = d33e434b2f4400b561741bb22b4a0cceee2d4ae0
+RMD160 (solvespace-2.3/v2.3.tar.gz) = 4abd276311fb3c7990f7b5803fbe760bf273621a
+SHA512 (solvespace-2.3/v2.3.tar.gz) = 9d22e467337591cd9a4935124d18733b8337f5785ab5738f4a94300f283ffe7d313569e379ae77e509d14182ffde8c9db7beaebb46ea7c0507c6b05010fe1a56
+Size (solvespace-2.3/v2.3.tar.gz) = 2115940 bytes
+SHA1 (patch-CMakeLists.txt) = c3716d2317b606e7e4367cef4b781f3ab2854c4f
diff --git a/cad/solvespace/patches/patch-CMakeLists.txt b/cad/solvespace/patches/patch-CMakeLists.txt
new file mode 100644
index 00000000000..f1acd63d2bb
--- /dev/null
+++ b/cad/solvespace/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2017/02/21 20:36:39 plunky Exp $
+
+disable finding the commit hash: we provide it in the Makefile
+
+--- CMakeLists.txt.orig 2016-12-24 02:09:48.000000000 +0000
++++ CMakeLists.txt
+@@ -20,7 +20,7 @@ set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
+ # NOTE TO PACKAGERS: The embedded git commit hash is critical for rapid bug triage when the builds
+ # can come from a variety of sources. If you are mirroring the sources or otherwise build when
+ # the .git directory is not present, please comment the following line:
+-include(GetGitCommitHash)
++# include(GetGitCommitHash)
+ # and instead uncomment the following, adding the complete git hash of the checkout you are using:
+ # set(GIT_COMMIT_HASH 0000000000000000000000000000000000000000)
+