[101721] trunk/dports/science

macsforever2000 at macports.org macsforever2000 at macports.org
Thu Jan 17 15:25:39 PST 2013


Revision: 101721
          https://trac.macports.org/changeset/101721
Author:   macsforever2000 at macports.org
Date:     2013-01-17 15:25:38 -0800 (Thu, 17 Jan 2013)
Log Message:
-----------
openscad: Added new port.

Added Paths:
-----------
    trunk/dports/science/openscad/
    trunk/dports/science/openscad/Portfile

Added: trunk/dports/science/openscad/Portfile
===================================================================
--- trunk/dports/science/openscad/Portfile	                        (rev 0)
+++ trunk/dports/science/openscad/Portfile	2013-01-17 23:25:38 UTC (rev 101721)
@@ -0,0 +1,93 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: $
+
+PortSystem          1.0
+PortGroup           qt4 1.0
+
+name                openscad
+version             2013.01
+license             GPL-2
+categories          science
+maintainers         macsforever2000 openmaintainer
+description         OpenSCAD is a software for creating solid 3D CAD objects
+long_description    OpenSCAD is a software for creating solid 3D CAD objects. \
+                    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. 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.
+platforms           darwin
+homepage            http://www.openscad.org/
+
+master_sites        https://openscad.googlecode.com/files/
+distfiles           ${distname}.src${extract.suffix}
+
+checksums           rmd160  b4ce72f99fe63370cc2e71230d78cca50a94e55a \
+                    sha256  2ef078b588c42f7ba873850f40a4695c6a47f3805d1560717dd3f98fe8082007
+
+depends_build-append \
+                    port:bison \
+                    port:flex
+
+depends_lib-append  port:boost \
+                    port:cgal \
+                    port:glew \
+                    port:gmp \
+                    port:mpfr \
+                    port:OpenCSG
+
+configure.env       OPENSCAD_LIBRARIES=${prefix}
+configure.cmd       ${qt_qmake_cmd}
+configure.pre_args
+configure.args      VERSION=${version} CONFIG-=debug openscad.pro
+configure.post_args
+configure.universal_args
+
+destroot.cmd        make
+
+use_parallel_build  no
+
+post-destroot {
+    # The install location is wrong so we have to move the files to the expected places
+
+    # Application
+    move ${destroot}/usr/local/bin/OpenSCAD.app ${destroot}${applications_dir}
+
+    # Examples
+    file mkdir ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/examples
+    eval xinstall -m 644 [glob ${destroot}/usr/local/share/openscad/examples/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/examples
+    eval file delete [glob ${destroot}/usr/local/share/openscad/examples/*]
+
+    # Library bitmaps
+    file mkdir ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD/bitmap
+    eval xinstall -m 644 [glob ${destroot}/usr/local/share/openscad/libraries/MCAD/bitmap/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD/bitmap
+    eval file delete [glob ${destroot}/usr/local/share/openscad/libraries/MCAD/bitmap/*]
+    file delete ${destroot}/usr/local/share/openscad/libraries/MCAD/bitmap
+
+    # Libraries
+    eval xinstall -m 644 [glob ${destroot}/usr/local/share/openscad/libraries/MCAD/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD
+    eval file delete [glob ${destroot}/usr/local/share/openscad/libraries/MCAD/*]
+
+    # Delete un-needed files
+    file delete ${destroot}/usr/local/share/applications/openscad.desktop
+    file delete ${destroot}/usr/local/share/pixmaps/openscad.png
+}
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}-(\[0-9.-\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130117/cd30a3ed/attachment.html>


More information about the macports-changes mailing list