Open CASCADE Community Edition fetch type

Mark Brethen mark.brethen at gmail.com
Sat Jun 14 08:49:26 PDT 2014


On Jun 14, 2014, at 9:06 AM, David Evans <devans at macports.org> wrote:

> While the lines you have written are
> not incorrect per se, the preferred approach would be to use the github
> PortGroup to do all this (and more) for you more simply. 

This is what I have in the Portfile so far:

# -*- 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       github 1.0
github.setup    tpaviot oce 0.15 OCE-

categories      graphics
maintainers     gmail.com:mark.brethen
description     Open CASCADE Community Edition
Long_description    OCE is a fork for patches/improvements/experiments\
    over OpenCascade.

homepage        https://github.com/tpaviot/oce

checksums rmd160 be53cced4d5463d466fd17c3f721ae56fb89e32b \
          sha256 2d7632dda63be06dc79202a025076deb4f1b0d1dede20b68da9536ce184d5ed1

depends_build   port:cmake     \
                port:ftgl      \
                port:freeimage \
                port:gl2ps     \
                Port:tbb

configure {
    system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath};"
}

configure.args  \
    -DOCE_INSTALL_PREFIX:STRING=#{prefix} \
    -DOCE_COPY_HEADERS_BUILD:BOOL=ON \
    -DOCE_DRAW:BOOL=ON" \
    -DOCE_WITH_FREEIMAGE:BOOL=ON \
    -DOCE_WITH_GL2PS:BOOL=ON \
    -DOCE_MULTITHREAD_LIBRARY:STRING=TBB


The install guide uses "install/strip" for the install phase, which is not the default, but is it necessary?

Thanks,


Mark






More information about the macports-dev mailing list