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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name inkscape |
---|
7 | conflicts inkscape-devel |
---|
8 | version 0.48.1 |
---|
9 | license GPLv2 |
---|
10 | maintainers devans |
---|
11 | categories graphics gnome |
---|
12 | platforms darwin |
---|
13 | homepage http://www.inkscape.org/ |
---|
14 | |
---|
15 | description Inkscape is an open source SVG editor. |
---|
16 | |
---|
17 | long_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 | |
---|
25 | universal_variant no |
---|
26 | |
---|
27 | use_bzip2 yes |
---|
28 | master_sites sourceforge |
---|
29 | |
---|
30 | checksums sha1 9727ed11cef31c2790bf2affbddf6a6ef352753f \ |
---|
31 | rmd160 9e25e02258d1b1e4cce24474523e1b37e58aded6 |
---|
32 | |
---|
33 | depends_build port:pkgconfig \ |
---|
34 | port:intltool \ |
---|
35 | path:bin/perl:perl5 |
---|
36 | |
---|
37 | depends_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 | |
---|
52 | depends_lib-append \ |
---|
53 | port:py26-lxml \ |
---|
54 | port:py26-numpy \ |
---|
55 | port:py26-xml |
---|
56 | |
---|
57 | patchfiles patch-configure.diff |
---|
58 | |
---|
59 | configure.args \ |
---|
60 | --mandir=${prefix}/share/man \ |
---|
61 | --with-xft \ |
---|
62 | --with-gnome-vfs \ |
---|
63 | --with-python \ |
---|
64 | --enable-lcms \ |
---|
65 | --enable-poppler-cairo |
---|
66 | |
---|
67 | configure.python \ |
---|
68 | ${prefix}/bin/python2.6 |
---|
69 | |
---|
70 | configure.cppflags-append \ |
---|
71 | -I${worksrcpath}/src/extension/script |
---|
72 | |
---|
73 | default_variants \ |
---|
74 | disable_debugging |
---|
75 | |
---|
76 | variant 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 | |
---|
86 | variant enable_debugging conflicts disable_debugging description {Enable debugging. Executables not stripped} { |
---|
87 | # does nothing but offer a counter-point to disable_debugging |
---|
88 | } |
---|
89 | |
---|
90 | variant no_x11 description {Remove dependency on X11} { |
---|
91 | patchfiles-append patch-configure-removeX11.diff |
---|
92 | } |
---|
93 | |
---|
94 | post-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 | |
---|
100 | post-activate { |
---|
101 | system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" |
---|
102 | } |
---|
103 | |
---|
104 | livecheck.type regex |
---|
105 | livecheck.url http://sourceforge.net/projects/inkscape/files/ |
---|
106 | livecheck.regex "(?i)${name}-(\\d+(?:\\.\\d+)*)" |
---|