# -*- 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: Portfile 115350 2013-12-31 20:03:04Z devans@macports.org $

PortSystem 1.0

name            sodipodi
version         0.34
revision        3
description     Sodipodi is a vector-based drawing program.
long_description    \
    Sodipodi is a vector-based drawing program, like \
    CorelDraw or Adobe Illustrator from the proprietary \
    software world, and Sketch or Karbon14 from the free \
    software world. It is free software, distributed under \
    the terms of the Gnu General Public License, Version 2. \
    Sodipodi uses W3C SVG as its native file format. It is \
    therefore a very useful tool for web designers. It has \
    a relatively modern display engine, giving you finely \
    antialiased display, alpha transparencies, vector fonts \
    and so on. Sodipodi is written in C, using the Gtk+ \
    toolkit and optionally some Gnome libraries. Sodipodi \
    works under most versions of Unix and Windows. 
maintainers     nomaintainer
categories      gnome graphics
license         GPL-2
platforms       darwin 
homepage        http://sourceforge.net/projects/sodipodi/
master_sites    sourceforge:project/sodipodi/sodipodi/${version}

checksums       md5 396cd78526e5a8102fd11114f45a70fe
patchfiles      patch_arikkei-dict.c patch_arikkei-token.c patch_nr-pathops.c \
                patch_arikkei-strlib.c patch_repr-io.c patch_action.c \
                patch_Makefile.in patch_units.h patch_bezier-utils.c \
                patch_configure patch-libpng-1.5.diff \
                patch-freetype-2.5.1.diff

depends_build   port:pkgconfig
depends_lib     port:libart_lgpl \
                port:popt \
                port:Xft2 \
                port:fontconfig \
                port:libgnomecanvas \
                port:libgnomeprintui \
                port:libpng \
                port:desktop-file-utils

configure.args  --mandir=${prefix}/share/man \
                --with-popt \
                --with-xft \
                --with-gnome-print \
                --with-xinerama

configure.optflags  -g -Os

# $CC is not quoted properly somewhere, leading to:
# ccache: invalid option -- d
configure.ccache    no

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
