[122275] trunk/dports/graphics
ryandesign at macports.org
ryandesign at macports.org
Fri Jul 18 20:58:03 PDT 2014
Revision: 122275
https://trac.macports.org/changeset/122275
Author: ryandesign at macports.org
Date: 2014-07-18 20:58:03 -0700 (Fri, 18 Jul 2014)
Log Message:
-----------
oce: new port, version 0.15 (#44042)
Added Paths:
-----------
trunk/dports/graphics/oce/
trunk/dports/graphics/oce/Portfile
Added: trunk/dports/graphics/oce/Portfile
===================================================================
--- trunk/dports/graphics/oce/Portfile (rev 0)
+++ trunk/dports/graphics/oce/Portfile 2014-07-19 03:58:03 UTC (rev 122275)
@@ -0,0 +1,75 @@
+# -*- 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 cmake 1.0
+PortGroup github 1.0
+
+github.setup tpaviot oce 0.15 OCE-
+categories graphics
+platforms darwin
+maintainers gmail.com:mark.brethen openmaintainer
+license LGPL-2.1
+
+description Open CASCADE Community Edition
+
+long_description ${description}
+
+checksums rmd160 7e27d750950b35704cbdd64a49d19a21e30cc3d9 \
+ sha256 343f7fd600665f8e806eff7046fde9e4d6be05630f1bd1ef13bdb6c661ea860b
+
+depends_lib-append port:freetype
+
+# tell CMake to build in a build directory
+configure.dir ${workpath}/build
+build.dir ${configure.dir}
+post-extract {
+ file mkdir ${configure.dir}
+}
+configure.post_args ${worksrcpath}
+
+configure.args-append -DOCE_INSTALL_PREFIX:PATH=${prefix}
+
+variant test description {Build and run unit testing framework} {
+ configure.args-append -DOCE_TESTING:BOOL=ON
+ test.run yes
+}
+
+variant draw description {Build DRAW test harness} {
+ depends_lib-append port:tcl port:tk
+ configure.args-append -DTCL_INCLUDE_PATH=${prefix}/include
+ configure.args-append -DOCE_DRAW:BOOL=ON
+ configure.args-append -DOCE_INSTALL_PACKAGE_LIB_DIR=lib
+}
+
+variant tbb description {Use TBB for memory allocation} {
+ depends_lib-append port:tbb
+ configure.args-append -DOCE_MULTITHREAD_LIBRARY:STRING=TBB
+}
+
+variant freeimage description {Build with FreeImage support} {
+ depends_lib-append port:freeimage
+ configure.args-append -DOCE_WITH_FREEIMAGE:BOOL=ON
+}
+
+variant gl2ps description {Build with gl2ps support} {
+ depends_lib-append port:gl2ps
+ configure.args-append -DOCE_WITH_GL2PS:BOOL=ON
+}
+
+post-destroot {
+ # modify installation paths relative to ${prefix}/Library/Frameworks
+ reinplace "s|\\\${SELF_DIR}/../../../../include/oce|${prefix}/include/oce|g" \
+ ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCEConfig.cmake
+
+ reinplace "s|^get.*_IMPORT_PREFIX.*CMAKE.*|set(_IMPORT_PREFIX \\\"${prefix}\\\")|" \
+ ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCE-libraries.cmake
+
+ reinplace {/^get.*_IMPORT_PREFIX.*/d} \
+ ${destroot}${prefix}/OCE.framework/Versions/${version}/Resources/OCE-libraries.cmake
+
+ # installing OCE.framework in ${prefix} violates the layout of the ports-filesystems!
+ # move it to ${prefix}/Library/Frameworks
+ move ${destroot}${prefix}/OCE.framework \
+ ${destroot}${frameworks_dir}/OCE.framework
+}
Property changes on: trunk/dports/graphics/oce/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140718/89784478/attachment.html>
More information about the macports-changes
mailing list