pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cad/solvespace Add new package Solvespace v2.3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cdbdc9292b70
branches:  trunk
changeset: 358843:cdbdc9292b70
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Tue Feb 21 20:36:39 2017 +0000

description:
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:

 cad/solvespace/DESCR                        |  20 ++++++++++
 cad/solvespace/Makefile                     |  58 +++++++++++++++++++++++++++++
 cad/solvespace/PLIST                        |  19 +++++++++
 cad/solvespace/distinfo                     |  11 +++++
 cad/solvespace/patches/patch-CMakeLists.txt |  15 +++++++
 5 files changed, 123 insertions(+), 0 deletions(-)

diffs (143 lines):

diff -r 8dc57cfa9923 -r cdbdc9292b70 cad/solvespace/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/solvespace/DESCR      Tue Feb 21 20:36:39 2017 +0000
@@ -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 -r 8dc57cfa9923 -r cdbdc9292b70 cad/solvespace/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/solvespace/Makefile   Tue Feb 21 20:36:39 2017 +0000
@@ -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@localhost
+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 -r 8dc57cfa9923 -r cdbdc9292b70 cad/solvespace/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/solvespace/PLIST      Tue Feb 21 20:36:39 2017 +0000
@@ -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 -r 8dc57cfa9923 -r cdbdc9292b70 cad/solvespace/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/solvespace/distinfo   Tue Feb 21 20:36:39 2017 +0000
@@ -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 -r 8dc57cfa9923 -r cdbdc9292b70 cad/solvespace/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/solvespace/patches/patch-CMakeLists.txt       Tue Feb 21 20:36:39 2017 +0000
@@ -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)
+ 



Home | Main Index | Thread Index | Old Index