source: trunk/dports/graphics/ipe-tools/Portfile

Last change on this file was 153987, checked in by devans@…, 11 months ago

dependents of poppler: increment revision to rebuild with libpoppler.64.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- 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
2# $Id: Portfile 153987 2016-10-17 16:08:29Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6
7github.setup            otfried ipe-tools e5b23399a83d69fd5bb5d4645ef7325b4b57435b
8version                 20151202
9revision                6
10categories              graphics
11maintainers             gmail.com:m7.thon \
12                        gmx.de:Torsten.Maehne \
13                        openmaintainer
14platforms               darwin
15license                 {GPL-2 GPL-3}
16
17description             Tools for the Ipe extensible drawing editor
18
19long_description        The following tools for the Ipe extensible drawing \
20                        editor are provided: \
21                        svgtoipe, pdftoipe, figtoipe, ipe5toxml
22
23homepage                http://ipe.otfried.org/
24
25checksums               sha1    a650856f7123fe68499f20bbe66695cb040306f7 \
26                        rmd160  9ee6d4eb84455d55a36d24e2233de9f6a25a21f7
27
28patchfiles              patch-svgtoipe-svgtoipe.py.diff
29post-patch {
30    reinplace "s|__MP_PYTHON_BIN__|${prefix}/bin/python2.7|" ${worksrcpath}/svgtoipe/svgtoipe.py
31}
32
33set python.pkgd ${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
34depends_build           port:pkgconfig
35depends_lib             port:poppler \
36                        path:${python.pkgd}/PIL:py27-Pillow
37
38use_configure           no
39use_parallel_build      no
40
41eval build.env          CPPFLAGS+='${configure.cppflags}' \
42                        CFLAGS+='${configure.cppflags} ${configure.cflags} ${configure.cc_archflags}' \
43                        CXXFLAGS+='${configure.cxxflags} ${configure.cxx_archflags}' \
44                        LDFLAGS+='${configure.cc_archflags}' \
45                        CC=${configure.cc} CXX=${configure.cxx}
46
47build {
48        system -W ${worksrcpath}/figtoipe "${build.env} ${build.cmd} ${build.target} CXX=${configure.cxx}"
49        system -W ${worksrcpath}/ipe5toxml "${build.env} ${build.cmd}"
50        system -W ${worksrcpath}/pdftoipe "${build.env} CC=${configure.cxx} ${build.cmd} ${build.target}"
51}
52
53destroot {
54        xinstall -m 755 ${worksrcpath}/figtoipe/figtoipe ${destroot}${prefix}/bin
55        xinstall -m 644 ${worksrcpath}/figtoipe/figtoipe.1 ${destroot}${prefix}/share/man/man1
56        xinstall -m 755 ${worksrcpath}/ipe5toxml/ipe5toxml ${destroot}${prefix}/bin
57        xinstall -m 644 ${worksrcpath}/ipe5toxml/ipe5toxml.1 ${destroot}${prefix}/share/man/man1
58        xinstall -m 755 ${worksrcpath}/pdftoipe/pdftoipe ${destroot}${prefix}/bin
59        xinstall -m 644 ${worksrcpath}/pdftoipe/pdftoipe.1 ${destroot}${prefix}/share/man/man1
60        xinstall -m 755 ${worksrcpath}/svgtoipe/svgtoipe.py ${destroot}${prefix}/bin
61}
Note: See TracBrowser for help on using the repository browser.