# -*- 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$

PortSystem          1.0
# use KDE4 portgroup, except for depends_build on this port
# See dports/_resources/port1.0/group/kde4-1.1.tcl for more info.
PortGroup           kde4   1.1
depends_build-delete port:automoc
depends_lib-delete  port:phonon

name                automoc
version             0.9.88
revision            8
categories          devel kde kde4
license             BSD
maintainers         nomaintainer
description         A tool which automatically creates .moc files and compiles them in.
long_description    ${description} Necessary for compiling KDE programs.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${name}4/${version}/
use_bzip2           yes
distname            ${name}4-${version}
checksums           rmd160 8545f159092c9237f8c0f0f14b0dca9bfeac5c19 \
                    sha256 234116f4c05ae21d828594d652b4c4a052ef75727e2d8a4f3a4fb605de9e4c49

# add BOOST_TT_HAS_OPERATOR_HPP_INCLUDED define by default

patchfiles-append   patch-automoc4.files.in.diff

# fix install location of CMake files

patchfiles-append   patch-CMakeLists.txt.diff

# fix relative path to ${prefix}/bin from the
# install location of the CMake files

patchfiles-append   patch-Automoc4Config.cmake.diff

livecheck.type		regex
livecheck.url		http://www.gtlib.gatech.edu/pub/kde/stable/${name}4/
livecheck.regex		"\(\\d+(?:\\.\\d+)*)\/"