# -*- 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
subport openscad-devel {}
if {${subport} eq "openscad"} {
master_sites http://files.openscad.org
distfiles ${distname}.src${extract.suffix}
checksums rmd160 323eda5bd96b2093d4fbb2274763f7a0ae4eb7f4 \
sha256 5d2a7d83c32f4201ee0d17445a36baccaebc0bc7facd009fc8dd86ee537c5a36
# patchfiles for openscad 2015.03-3 release
# Fix these errors, as per https://bugreports.qt.io/browse/QTBUG-22829
#src/scintillaeditor.h -o objects/moc_scintillaeditor.cpp
#src/QGLView.h -o objects/moc_QGLView.cpp
#:info:build opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
# On 10.6: src/AppleEvents.cc:2:22: error: MacTypes.h: No such file or directory
patchfiles patch-src-scintillaeditor.h.diff patch-src-colormap.h.diff \
patch-src-AppleEvents.cc.diff
# Fix the Qsci library name changed in 2.10.0 release
patchfiles-append patch-qscintilla2.prf.diff
# Fix Objective C++ flags when using libc++; remove -W warnings to
# allow more robust building; remove MACOSX_DEPLOYMENT_TARGET to allow
# for building on older MacOS when bootstrapping libc++.
patchfiles-append patch-openscad.pro.diff
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[0-9.-\]+).src${extract.suffix}
} elseif {${subport} eq "openscad-devel"} {
github.setup openscad openscad e7c0851d4023817b2a11df2583d6f406f3b58883
checksums rmd160 57ce759879770675cb7853a6735ad66a5956ddd1 \
sha256 40447cbb91a853a16dc1872063cd5c90150356ff31c4d8b5e6296a7a4ec26f23
# should move this to another distfile at some point instead of using git clone
depends_extract-append port:git
system -W ${worksrcpath}/libraries "${prefix}/bin/git clone https://github.com/openscad/MCAD.git"
# patchfiles - unchanged from 2015.03-1
patchfiles-append patch-src-colormap.h.diff
# Fix the Qsci library name changed in 2.10.0 release
patchfiles-append patch-qscintilla2.prf.diff
# patchfiles - changed for 2018.04-1 devel release
#:info:build opt/local/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"