diff options
author | reinoud <reinoud> | 2012-02-27 14:44:28 +0000 |
---|---|---|
committer | reinoud <reinoud> | 2012-02-27 14:44:28 +0000 |
commit | 90cfe994c4a88e79802cf78b2880a16f5158229a (patch) | |
tree | 3ec49a1fcfe29dc1ebd680bebfd02d952f5aaacb /cad/openscad | |
parent | fadcf88ac988ca705db7e2a76ccd856223cebc65 (diff) | |
download | pkgsrc-90cfe994c4a88e79802cf78b2880a16f5158229a.tar.gz |
Import of openscad-2011.12: OpenSCAD - The Programmers Solid 3D CAD Modeller
Diffstat (limited to 'cad/openscad')
-rw-r--r-- | cad/openscad/DESCR | 23 | ||||
-rw-r--r-- | cad/openscad/Makefile | 47 | ||||
-rw-r--r-- | cad/openscad/PLIST | 73 | ||||
-rw-r--r-- | cad/openscad/TODO | 7 | ||||
-rw-r--r-- | cad/openscad/distinfo | 7 | ||||
-rw-r--r-- | cad/openscad/patches/patch-eigen2.pri | 19 | ||||
-rw-r--r-- | cad/openscad/patches/patch-openscad.pro | 14 |
7 files changed, 190 insertions, 0 deletions
diff --git a/cad/openscad/DESCR b/cad/openscad/DESCR new file mode 100644 index 00000000000..82f059439dc --- /dev/null +++ b/cad/openscad/DESCR @@ -0,0 +1,23 @@ +OpenSCAD is a software for creating solid 3D CAD objects. It is free software +and available for Linux/UNIX, MS Windows and Mac OS X. + +Unlike most free software for creating 3D models (such as the famous +application Blender) it does not focus on the artistic aspects of 3D modelling +but instead on the CAD aspects. Thus it might be the application you are +looking for when you are planning to create 3D models of machine parts but +pretty sure is not what you are looking for when you are more interested in +creating computer-animated movies. + +OpenSCAD is not an interactive modeller. Instead it is something like a +3D-compiler that reads in a script file that describes the object and renders +the 3D model from this script file (see examples below). This gives you (the +designer) full control over the modelling process and enables you to easily +change any step in the modelling process or make designes that are defined by +configurable parameters. + +OpenSCAD provides two main modelling techniques: First there is constructive +solid geometry (aka CSG) and second there is extrusion of 2D outlines. As data +exchange format format for this 2D outlines Autocad DXF files are used. In +addition to 2D paths for extrusion it is also possible to read design +parametes from DXF files. Besides DXF files OpenSCAD can read and create 3D +models in the STL and OFF file formats. diff --git a/cad/openscad/Makefile b/cad/openscad/Makefile new file mode 100644 index 00000000000..6732ceb04eb --- /dev/null +++ b/cad/openscad/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/02/27 14:44:28 reinoud Exp $ +# + +PKGNAME= openscad-2011.12 +DISTNAME= openscad-2011.12.src +CATEGORIES= wip +MASTER_SITES= https://github.com/downloads/openscad/openscad/ + +MAINTAINER= reinoud@NetBSD.org +HOMEPAGE= http://www.openscad.org/ +COMMENT= OpenSCAD - The Programmers Solid 3D CAD Modeller +LICENSE= gnu-gpl-v2 + +FETCH_USING= curl + +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR}/openscad-2011.12 +USE_LANGUAGES= c c++ + +USE_TOOLS+= cmake flex bison pkg-config +USE_LIBTOOL= yes + +SUBST_CLASSES+=prefix +SUBST_SED.prefix=-e 's,@PREFIX@,$(PREFIX),g' +SUBST_FILES.prefix=${WRKSRC}/eigen2.pri ${WRKSRC}/openscad.pro +SUBST_STAGE.prefix=post-patch + +SUBST_CLASSES+=destdir +SUBST_SED.destdir=-e 's,@DESTDIR@,$(DESTDIR),g' +SUBST_FILES.destdir=${WRKSRC}/openscad.pro +SUBST_STAGE.destdir=post-patch + +pre-build: + (cd ${WRKSRC} && ${QTDIR$}/bin/qmake) + +.include "../../devel/gmp/buildlink3.mk" +.include "../../devel/boost-headers/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../x11/qt4-libs/buildlink3.mk" +.include "../../x11/qt4-tools/buildlink3.mk" +.include "../../math/cgal/buildlink3.mk" +.include "../../graphics/opencsg/buildlink3.mk" +.include "../../graphics/glew/buildlink3.mk" +.include "../../math/eigen2/buildlink3.mk" +.include "../../math/mpfr/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/cad/openscad/PLIST b/cad/openscad/PLIST new file mode 100644 index 00000000000..dcd1f5c536a --- /dev/null +++ b/cad/openscad/PLIST @@ -0,0 +1,73 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/27 14:44:28 reinoud Exp $ +bin/openscad +share/openscad/examples/example001.scad +share/openscad/examples/example002.scad +share/openscad/examples/example003.scad +share/openscad/examples/example004.scad +share/openscad/examples/example005.scad +share/openscad/examples/example006.scad +share/openscad/examples/example007.dxf +share/openscad/examples/example007.scad +share/openscad/examples/example008.dxf +share/openscad/examples/example008.scad +share/openscad/examples/example009.dxf +share/openscad/examples/example009.scad +share/openscad/examples/example010.dat +share/openscad/examples/example010.scad +share/openscad/examples/example011.scad +share/openscad/examples/example012.scad +share/openscad/examples/example012.stl +share/openscad/examples/example013.dxf +share/openscad/examples/example013.scad +share/openscad/examples/example014.scad +share/openscad/examples/example015.scad +share/openscad/examples/example016.scad +share/openscad/examples/example016.stl +share/openscad/examples/example017.scad +share/openscad/examples/example018.scad +share/openscad/examples/example019.scad +share/openscad/examples/example020.scad +share/openscad/examples/example021.scad +share/openscad/examples/example022.scad +share/openscad/libraries/MCAD/3d_triangle.scad +share/openscad/libraries/MCAD/README.markdown +share/openscad/libraries/MCAD/TODO +share/openscad/libraries/MCAD/__init__.py +share/openscad/libraries/MCAD/bearing.scad +share/openscad/libraries/MCAD/bitmap/README +share/openscad/libraries/MCAD/bitmap/alphabet_block.scad +share/openscad/libraries/MCAD/bitmap/bitmap.scad +share/openscad/libraries/MCAD/bitmap/height_map.scad +share/openscad/libraries/MCAD/bitmap/letter_necklace.scad +share/openscad/libraries/MCAD/bitmap/name_tag.scad +share/openscad/libraries/MCAD/boxes.scad +share/openscad/libraries/MCAD/constants.scad +share/openscad/libraries/MCAD/curves.scad +share/openscad/libraries/MCAD/gears.scad +share/openscad/libraries/MCAD/get_submodules.py +share/openscad/libraries/MCAD/gridbeam.scad +share/openscad/libraries/MCAD/hardware.scad +share/openscad/libraries/MCAD/involute_gears.scad +share/openscad/libraries/MCAD/lgpl-2.1.txt +share/openscad/libraries/MCAD/materials.scad +share/openscad/libraries/MCAD/math.scad +share/openscad/libraries/MCAD/metric_fastners.scad +share/openscad/libraries/MCAD/motors.scad +share/openscad/libraries/MCAD/nuts_and_bolts.scad +share/openscad/libraries/MCAD/openscad_testing.py +share/openscad/libraries/MCAD/openscad_utils.py +share/openscad/libraries/MCAD/polyholes.scad +share/openscad/libraries/MCAD/regular_shapes.scad +share/openscad/libraries/MCAD/screw.scad +share/openscad/libraries/MCAD/servos.scad +share/openscad/libraries/MCAD/shapes.scad +share/openscad/libraries/MCAD/stepper.scad +share/openscad/libraries/MCAD/teardrop.scad +share/openscad/libraries/MCAD/test_docs.py +share/openscad/libraries/MCAD/test_mcad.py +share/openscad/libraries/MCAD/transformations.scad +share/openscad/libraries/MCAD/triangles.scad +share/openscad/libraries/MCAD/trochoids.scad +share/openscad/libraries/MCAD/units.scad +share/openscad/libraries/MCAD/unregular_shapes.scad +share/openscad/libraries/MCAD/utilities.scad diff --git a/cad/openscad/TODO b/cad/openscad/TODO new file mode 100644 index 00000000000..eb531ad3de3 --- /dev/null +++ b/cad/openscad/TODO @@ -0,0 +1,7 @@ +Known issues of openscad: + +* fast rendering with opencsg (F5) does not allways seem to be correct due to + RenderTexture Error: Couldn't find a suitable pixel format. + reason unknown, more expensive rendering using cgal (F6) works fine all the + time. + diff --git a/cad/openscad/distinfo b/cad/openscad/distinfo new file mode 100644 index 00000000000..857ec8415d3 --- /dev/null +++ b/cad/openscad/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/02/27 14:44:29 reinoud Exp $ + +SHA1 (openscad-2011.12.src.tar.gz) = b1379c3a0c5552e2bf00b7a0f2dbf9a55fbf4bd0 +RMD160 (openscad-2011.12.src.tar.gz) = 0f7bf7452f04e0c929ea2a9acffab086e10ed053 +Size (openscad-2011.12.src.tar.gz) = 3247723 bytes +SHA1 (patch-eigen2.pri) = 653d21e4331c4581df0b6815df38f192ded7df60 +SHA1 (patch-openscad.pro) = 72c9ab9eae1f124f88e741d9ad7c336b2e72eabb diff --git a/cad/openscad/patches/patch-eigen2.pri b/cad/openscad/patches/patch-eigen2.pri new file mode 100644 index 00000000000..ae2c621e5ee --- /dev/null +++ b/cad/openscad/patches/patch-eigen2.pri @@ -0,0 +1,19 @@ +$NetBSD: patch-eigen2.pri,v 1.1.1.1 2012/02/27 14:44:29 reinoud Exp $ + +--- eigen2.pri.orig 2011-12-27 13:46:10.000000000 +0000 ++++ eigen2.pri +@@ -31,6 +31,8 @@ eigen2 { + linux*: EIGEN2_INCLUDEPATH = /usr/include/eigen2 + } + ++ EIGEN2_INCLUDEPATH = @PREFIX@/include/eigen2 ++ + # eigen2 being under 'include/eigen2' needs special prepending + QMAKE_INCDIR_QT = $$EIGEN2_INCLUDEPATH $$QMAKE_INCDIR_QT + +@@ -40,4 +42,5 @@ eigen2 { + QMAKE_CXXFLAGS += -DEIGEN_DONT_ALIGN + } + } ++ + } diff --git a/cad/openscad/patches/patch-openscad.pro b/cad/openscad/patches/patch-openscad.pro new file mode 100644 index 00000000000..3b5712720e5 --- /dev/null +++ b/cad/openscad/patches/patch-openscad.pro @@ -0,0 +1,14 @@ +$NetBSD: patch-openscad.pro,v 1.1.1.1 2012/02/27 14:44:29 reinoud Exp $ + +--- openscad.pro.orig 2011-12-29 17:10:30.000000000 +0000 ++++ openscad.pro +@@ -275,6 +275,9 @@ macx { + + isEmpty(PREFIX):PREFIX = /usr/local + ++# fix pkgsrc prefix since it doesn't seem to get it from the environment ++PREFIX = @DESTDIR@@PREFIX@ ++ + target.path = $$PREFIX/bin/ + INSTALLS += target + |