# -*- 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 otfried ipe-tools e5b23399a83d69fd5bb5d4645ef7325b4b57435b version 20151202 revision 6 categories graphics maintainers gmail.com:m7.thon \ gmx.de:Torsten.Maehne \ openmaintainer platforms darwin license {GPL-2 GPL-3} description Tools for the Ipe extensible drawing editor long_description The following tools for the Ipe extensible drawing \ editor are provided: \ svgtoipe, pdftoipe, figtoipe, ipe5toxml homepage http://ipe.otfried.org/ checksums sha1 a650856f7123fe68499f20bbe66695cb040306f7 \ rmd160 9ee6d4eb84455d55a36d24e2233de9f6a25a21f7 patchfiles patch-svgtoipe-svgtoipe.py.diff post-patch { reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${worksrcpath}/svgtoipe/svgtoipe.py } set python.pkgd ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages depends_build port:pkgconfig depends_lib port:poppler \ path:${python.pkgd}/PIL:py27-Pillow use_configure no use_parallel_build no eval build.env CPPFLAGS+='${configure.cppflags}' \ CFLAGS+='${configure.cppflags} ${configure.cflags} ${configure.cc_archflags}' \ CXXFLAGS+='${configure.cxxflags} ${configure.cxx_archflags}' \ LDFLAGS+='${configure.cc_archflags}' \ CC=${configure.cc} CXX=${configure.cxx} build { system -W ${worksrcpath}/figtoipe "${build.env} ${build.cmd} ${build.target} CXX=${configure.cxx}" system -W ${worksrcpath}/ipe5toxml "${build.env} ${build.cmd}" system -W ${worksrcpath}/pdftoipe "${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}" } destroot { xinstall -m 755 ${worksrcpath}/figtoipe/figtoipe ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/figtoipe/figtoipe.1 ${destroot}${prefix}/share/man/man1 xinstall -m 755 ${worksrcpath}/ipe5toxml/ipe5toxml ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/ipe5toxml/ipe5toxml.1 ${destroot}${prefix}/share/man/man1 xinstall -m 755 ${worksrcpath}/pdftoipe/pdftoipe ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/pdftoipe/pdftoipe.1 ${destroot}${prefix}/share/man/man1 xinstall -m 755 ${worksrcpath}/svgtoipe/svgtoipe.py ${destroot}${prefix}/bin }