# -*- 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
maintainers {khindenburg @kurthindenburg} openmaintainer
description kdiff3 is a file comparing and merging tool.
long_description kdiff3 compares two or three input files and shows the \
differences line by line and character by character. It \
provides an automatic merge facility and an integrated \
editor for comfortable solving of merge conflicts. \
kdiff3 allows recursive directory comparison and merging \
homepage http://kdiff3.sourceforge.net/
master_sites sourceforge:project/kdiff3/kdiff3/${version}
checksums rmd160 17fc05df3fd8f052e2010834ba8efe2481e4f434 \
sha256 802c1ababa02b403a5dca15955c01592997116a24909745016931537210fd668
variant kde description {Build the KDE version} {}
if {[variant_isset kde]} {
depends_lib-append port:kdelibs4
ln -s ${applications_dir}/KDE4/${name}.app/Contents/MacOS/kdiff3 ${destroot}${prefix}/bin
PortGroup xcodeversion 1.0
set worksrcpath ${worksrcpath}/src-QT4
minimum_xcodeversions {9 3.1}
patchfiles patch-src-QT4-kdiff3.pro.diff
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/kdiff3.pro
variant debug description \
{Build both release and debug library} {}
if {[variant_isset debug]} {
configure.args-append CONFIG+=\"debug_and_release build_all\"
configure.args-append CONFIG+=\"release\"
livecheck.regex "Current version: (\\d+(?:\\.\\d+)*)"