Ticket #28458: Portfile

File Portfile, 3.5 KB (added by gellule.xg@…, 14 years ago)
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 75746 2011-02-06 23:48:42Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            inkscape
7conflicts       inkscape-devel
8version         0.48.1
9license         GPLv2
10maintainers     devans
11categories      graphics gnome
12platforms       darwin
13homepage        http://www.inkscape.org/
14
15description     Inkscape is an open source SVG editor.
16
17long_description \
18                Inkscape is an open source SVG editor with \
19                capabilities similar to Illustrator, CorelDraw, \
20                Visio, etc. Supported SVG features include basic \
21                shapes, paths, text, alpha blending, transforms, \
22                gradients, node editing, svg-to-png export, \
23                grouping, and more.
24
25universal_variant no
26
27use_bzip2       yes
28master_sites    sourceforge
29
30checksums       sha1    9727ed11cef31c2790bf2affbddf6a6ef352753f \
31                rmd160  9e25e02258d1b1e4cce24474523e1b37e58aded6
32
33depends_build   port:pkgconfig \
34                port:intltool \
35                path:bin/perl:perl5
36
37depends_lib     port:boehmgc \
38                port:gsl \
39                port:gtkmm \
40                port:gnome-vfs \
41                port:lcms \
42                port:poppler \
43                port:boost \
44                port:ImageMagick \
45                port:libwpg \
46                port:gtkspell2
47
48#
49# external dependencies for included Python extensions
50#
51
52depends_lib-append \
53                port:py26-lxml \
54                port:py26-numpy \
55                port:py26-xml
56
57patchfiles      patch-configure.diff
58
59configure.args  \
60        --mandir=${prefix}/share/man \
61        --with-xft \
62        --with-gnome-vfs \
63        --with-python \
64        --enable-lcms \
65        --enable-poppler-cairo
66
67configure.python \
68        ${prefix}/bin/python2.6
69
70configure.cppflags-append \
71        -I${worksrcpath}/src/extension/script
72
73default_variants \
74        disable_debugging
75
76variant disable_debugging conflicts enable_debugging description {Disable debugging. Strip executables to save disk space} {
77        # this variant strips the executables saving @200MB of disk space
78        # at the cost of not being able to get meaningful debugging information
79        # in the event of an application crash
80        post-destroot {
81            system "strip ${destroot}${prefix}/bin/inkscape"
82            system "strip ${destroot}${prefix}/bin/inkview"
83        }
84}
85
86variant enable_debugging conflicts disable_debugging description {Enable debugging. Executables not stripped} {
87        # does nothing but offer a counter-point to disable_debugging
88}
89
90variant no_x11 description {Remove dependency on X11} {
91        patchfiles-append patch-configure-removeX11.diff
92}
93
94post-patch {
95        reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.6\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
96        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
97        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
98}
99
100post-activate {
101        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
102}
103
104livecheck.type          regex
105livecheck.url           http://sourceforge.net/projects/inkscape/files/
106livecheck.regex         "(?i)${name}-(\\d+(?:\\.\\d+)*)"