[97221] trunk/dports/science

cal at macports.org cal at macports.org
Thu Aug 30 15:07:39 PDT 2012


Revision: 97221
          https://trac.macports.org/changeset/97221
Author:   cal at macports.org
Date:     2012-08-30 15:07:37 -0700 (Thu, 30 Aug 2012)
Log Message:
-----------
OpenCSG: new port

yes, it's correct I'm not maintaining it.

Added Paths:
-----------
    trunk/dports/science/OpenCSG/
    trunk/dports/science/OpenCSG/Portfile
    trunk/dports/science/OpenCSG/files/
    trunk/dports/science/OpenCSG/files/patch-src__src.pro-use-system-glew.diff

Added: trunk/dports/science/OpenCSG/Portfile
===================================================================
--- trunk/dports/science/OpenCSG/Portfile	                        (rev 0)
+++ trunk/dports/science/OpenCSG/Portfile	2012-08-30 22:07:37 UTC (rev 97221)
@@ -0,0 +1,54 @@
+# $Id$
+
+PortSystem          1.0
+PortGroup			qt4 1.0
+
+name                OpenCSG
+version             1.3.2
+license             GPL-2
+categories          science
+maintainers         macsforever2000 openmaintainer
+description         OpenCSG is a library that does image-based CSG rendering using OpenGL
+long_description    CSG is short for Constructive Solid Geometry and denotes an approach \
+                    to model complex 3D-shapes using simpler ones. I.e., two shapes can be \
+                    combined by taking the union of them, by intersecting them, or by \
+                    subtracting one shape of the other. The most basic shapes, which are \
+                    not result of such a CSG operation, are called primitives. Primitives \
+                    must be solid, i.e., they must have a clearly defined interior and \
+                    exterior. By construction, a CSG shape is also solid then.
+platforms           darwin
+homepage            http://www.opencsg.org/
+master_sites        ${homepage}
+
+checksums           rmd160  4480778c310a3d5f84933c1b35508dd94adf2332 \
+                    sha256  c790c92998f7113cb35cde825f81c5532755908a0a3f43c3c3c8df2326b3b925
+
+depends_build		port:qt4-mac
+# we only need qmake, don't care about it's arch
+set depends_skip_archcheck {qt4-mac}
+
+patchfiles			patch-src__src.pro-use-system-glew.diff
+
+depends_lib         port:glew
+
+worksrcdir			${distname}/src
+
+configure.cmd		${qt_qmake_cmd}
+configure.pre_args
+configure.args		-o Makefile src.pro LIBS+="-lGLEW"
+configure.post_args
+configure.universal_args
+
+post-configure {
+	reinplace "s/-lQtGui -lQtCore//g" ${worksrcpath}/Makefile
+}
+
+destroot {
+	eval file copy [glob ${worksrcpath}/../lib/*] ${destroot}${prefix}/lib
+	eval file copy [glob ${worksrcpath}/../include/*] ${destroot}${prefix}/include
+	system "install_name_tool -id ${prefix}/lib/libopencsg.[lindex [split ${version} .] 0].dylib ${destroot}${prefix}/lib/libopencsg.dylib"
+}
+
+livecheck.type      regex
+livecheck.url       [lindex ${master_sites} 0]
+livecheck.regex     ${name}-(\[0-9.-\]+)\\.tar.gz


Property changes on: trunk/dports/science/OpenCSG/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/science/OpenCSG/files/patch-src__src.pro-use-system-glew.diff
===================================================================
--- trunk/dports/science/OpenCSG/files/patch-src__src.pro-use-system-glew.diff	                        (rev 0)
+++ trunk/dports/science/OpenCSG/files/patch-src__src.pro-use-system-glew.diff	2012-08-30 22:07:37 UTC (rev 97221)
@@ -0,0 +1,11 @@
+--- src.pro.orig	2012-08-30 23:34:23.000000000 +0200
++++ src.pro	2012-08-30 23:35:09.000000000 +0200
+@@ -4,7 +4,7 @@
+ DESTDIR     = ../lib
+ 
+ CONFIG		+= opengl warn_on release
+-INCLUDEPATH += ../include ../glew/include ../
++INCLUDEPATH += ../include ../
+ 
+ HEADERS		= ../include/opencsg.h \
+ 		  opencsgConfig.h \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120830/287a4cd4/attachment.html>


More information about the macports-changes mailing list