Open CASCADE Community Edition fetch type
Mark Brethen
mark.brethen at gmail.com
Sat Jun 14 18:15:58 PDT 2014
On Jun 14, 2014, at 7:22 PM, Joshua Root <jmr at macports.org> wrote:
> On 2014-6-15 10:09 , Mark Brethen wrote:
>>
>>
>> Begin forwarded message:
>>
>>> From: Mark Brethen <mark.brethen at gmail.com>
>>> Subject: Re: Open CASCADE Community Edition fetch type
>>> Date: June 14, 2014 at 12:19:15 PM CDT
>>> To: Frank Schima <mf2k at macports.org>
>>> Cc: MacPorts Development <macports-dev at lists.macosforge.org>
>>>
>>>
>>> On Jun 14, 2014, at 11:01 AM, Frank Schima <mf2k at macports.org> wrote:
>>>
>>>> Hi Mark,
>>>>
>>>>
>>>> Some observations about this Portfile:
>>>>
>>>> On Jun 14, 2014, at 9:49 AM, Mark Brethen <mark.brethen at gmail.com> wrote:
>>>>
>>>>> 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.
>>>>
>>>> Please determine and add the correct license. This will allow Macports to distribute a binary - license permitting.
>>>>
>>>>>
>>>>> homepage https://github.com/tpaviot/oce
>>>>>
>>>>> checksums rmd160 be53cced4d5463d466fd17c3f721ae56fb89e32b \
>>>>> sha256 2d7632dda63be06dc79202a025076deb4f1b0d1dede20b68da9536ce184d5ed1
>>>>>
>>>>> depends_build port:cmake \
>>>>> port:ftgl \
>>>>> port:freeimage \
>>>>> port:gl2ps \
>>>>> Port:tbb
>>>>
>>>> Since you are using a portgroup - github in this case - it might have dependencies. But you are overriding them by setting depends_build. Instead you should use depends_build-append.
>>>>
>>>>> configure {
>>>>> system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath};”
>>>>> }
>>>>
>>>> A couple of issues here. You should consider adding the cmake portgroup which is designed for ports that build with cmake. That will likely make this entire block unnecessary. Also, please do not use system “cd….”. Per the guide [1], you should use the -W flag instead. I.e.
>>>>
>>>> system -W ${worksrcpath} “cmake ..."
>>>>
>>>>
>>>> Cheers!
>>>> Frank
>>>>
>>>> [1] <https://trac.macports.org/wiki/FAQ#cd>
>>>>
>>>> _______________________________________________
>>>> macports-dev mailing list
>>>> macports-dev at lists.macosforge.org
>>>> https://lists.macosforge.org/mailman/listinfo/macports-dev
>>>
>>> Revised Portfile based on comments from the group:
>>>
>>> # -*- 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
>>> maintainers gmail.com:mark.brethen
>>> description Open CASCADE Community Edition
>>> Long_description OCE is a fork for patches/improvements/experiments\
>>> over OpenCascade.
>>> license LGPL 2.1
>>> homepage https://github.com/tpaviot/oce
>>>
>>> checksums rmd160 be53cced4d5463d466fd17c3f721ae56fb89e32b \
>>> sha256 2d7632dda63be06dc79202a025076deb4f1b0d1dede20b68da9536ce184d5ed1
>>>
>>> depends_build-append port:cmake \
>>> port:ftgl \
>>> port:freeimage \
>>> port:gl2ps \
>>> Port:tbb
>>>
>>> configure.args-append \
>>> -DOCE_DRAW:BOOL=ON" \
>>> -DOCE_WITH_FREEIMAGE:BOOL=ON \
>>> -DOCE_WITH_GL2PS:BOOL=ON \
>>> -DOCE_MULTITHREAD_LIBRARY:STRING=TBB
>>>
>>> Again, I'm following build notes for Mac OS X at: https://github.com/tpaviot/oce/wiki/Build-%28Mac-OSX%29 .
>>>
>>> Thanks,
>>>
>>> Mark
>>>
>>>
>>>
>>>
>>
>> The above Portfile failed to build. Here is the end of the log:
>>
>> :debug:configure Environment:
>> CC='/usr/bin/clang'
>> CC_PRINT_OPTIONS='YES'
>> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_marbre_ports_graphics_oce/oce/work/.CC_PRINT_OPTIONS'
>> CFLAGS='-pipe -Os -I/opt/local/include -arch x86_64'
>> CPATH='/opt/local/include'
>> CPPFLAGS='-I/opt/local/include'
>> CXX='/usr/bin/clang++'
>> CXXFLAGS='-pipe -Os -I/opt/local/include -arch x86_64 -stdlib=libc++'
>> F77FLAGS='-m64'
>> F90FLAGS='-pipe -Os -m64'
>> FCFLAGS='-pipe -Os -m64'
>> FFLAGS='-pipe -Os'
>> INSTALL='/usr/bin/install -c'
>> LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'
>> LIBRARY_PATH='/opt/local/lib'
>> MACOSX_DEPLOYMENT_TARGET='10.9'
>> OBJC='/usr/bin/clang'
>> OBJCFLAGS='-pipe -Os -arch x86_64'
>> OBJCXX='/usr/bin/clang++'
>> OBJCXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libc++'
>> :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_Users_marbre_ports_graphics_oce/oce/work/oce-0.15" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DOCE_DRAW:BOOL=ON" -DOCE_WITH_FREEIMAGE:BOOL=ON -DOCE_WITH_GL2PS:BOOL=ON -DOCE_MULTITHREAD_LIBRARY:STRING=TBB -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9"'
>> :debug:configure Executing command line: cd "/opt/local/var/macports/build/_Users_marbre_ports_graphics_oce/oce/work/oce-0.15" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DOCE_DRAW:BOOL=ON" -DOCE_WITH_FREEIMAGE:BOOL=ON -DOCE_WITH_GL2PS:BOOL=ON -DOCE_MULTITHREAD_LIBRARY:STRING=TBB -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9"
>> :info:configure sh: -c: line 0: unexpected EOF while looking for matching `"'
>> :info:configure sh: -c: line 1: syntax error: unexpected end of file
>> :info:configure Command failed: cd "/opt/local/var/macports/build/_Users_marbre_ports_graphics_oce/oce/work/oce-0.15" && /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DOCE_DRAW:BOOL=ON" -DOCE_WITH_FREEIMAGE:BOOL=ON -DOCE_WITH_GL2PS:BOOL=ON -DOCE_MULTITHREAD_LIBRARY:STRING=TBB -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.9"
>> :info:configure Exit code: 2
>> :error:configure org.macports.configure for port oce returned: configure failure: command execution failed
>> :debug:configure Error code: NONE
>> :debug:configure Backtrace: configure failure: command execution failed
>> while executing
>> "portconfigure::configure_main org.macports.configure"
>> ("eval" body line 1)
>> invoked from within
>> "eval $procedure $targetname"
>>
>>
>> Mark
>
> There's an unmatched double quote in the configure.args.
>
> - Josh
It builds, but wants to install into /usr/local!
---> Staging oce into destroot
Warning: violation by /usr
Warning: oce violates the layout of the ports-filesystems!
Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases!
I'll try adding "-DOCE_INSTALL_PREFIX:PATH=..." to the configure args.
Mark
More information about the macports-dev
mailing list