# -*- 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 90562 2012-03-09 02:09:23Z ryandesign@macports.org $

PortSystem              1.0

name                    sdcv
#version                 0.4.2
version                 0.4.3-20100801
categories              textproc
platforms               darwin
maintainers             ryandesign openmaintainer
license                 GPL-2+

description             console version of StarDict program

long_description        ${name} is a console version of the StarDict program.

homepage                http://sdcv.sourceforge.net/
#master_sites            sourceforge:project/sdcv/sdcv/${version}
#
#use_bzip2               yes
#
#checksums               rmd160  1a28630dad2ac07860cc5bee87f23c8585c4dabe \
#                        sha256  a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2

fetch.type              svn
svn.url                 https://sdcv.svn.sourceforge.net/svnroot/sdcv/trunk
svn.revision            38
worksrcdir              trunk

patchfiles              patch-setlocale.diff

# There isn't a configure script in the repository so we need to generate one.
use_autoreconf          yes
autoreconf.args         -fvi

if {${configure.compiler} == "clang"} {
    configure.compiler llvm-gcc-4.2
}

depends_build-append    port:pkgconfig

depends_lib             port:gettext \
                        path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:readline
