# -*- 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
PortGroup compiler_blacklist_versions 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {gmail.com:m7.thon @m7thon} openmaintainer
description The Ipe extensible drawing editor
Ipe is a drawing editor for creating figures in PDF or \
(encapsulated) Postscript format. It supports making small \
figures for inclusion into LaTeX-documents as well as making \
multi-page PDF presentations that can be shown on-line with \
homepage http://ipe.otfried.org
master_sites https://dl.bintray.com/otfried/generic/ipe/${branch}
distname ${name}-${version}-src
worksrcdir ${name}-${version}/src
checksums rmd160 eaa2b9fc1a923a78b14e1c1c27f8ffc139febe0e \
sha256 a22dcae9cb660f466678a6b568e9fed1b12a3830e49465594d65fc789b0ba725 \
depends_build-append port:pkgconfig
depends_lib-append port:freetype \
path:lib/pkgconfig/cairo.pc:cairo \
# needs a c++14 compatible compiler
compiler.blacklist-append {clang < 602}
# Fix missing cstdlib include
# https://github.com/otfried/ipe-issues/issues/240
patchfiles fix-missing-cstdlib.patch
variant qt4 conflicts qt5 description {Build using Qt4 based gui} {
build.args-append QT_CFLAGS="`pkg-config --cflags QtGui QtCore`" \
QT_LIBS="`pkg-config --libs QtGui QtCore`"
variant qt5 conflicts qt4 description {Build using Qt5 based gui} {
variant qvoronoi description {Add qvoronoi ipelet} {
depends_lib-append port:qhull
build.args-append IPEQVORONOI=1 QHULL_CFLAGS=-I${prefix}/include/libqhull_r