# $Id: Portfile 40948 2008-10-18 20:05:04Z ryandesign@macports.org $

PortSystem          1.0

name                kile
version             2.0.1
categories          tex
maintainers         gmx.de:zweistein12

description         KDE Integrated LaTeX Environment
long_description    Kile is a user friendly TeX/LaTeX editor for the KDE desktop \
                    environment. KDE is available for many architectures such as \
                    PC, PowerPC (Mac for example) and SPARC.

homepage            http://kile.sourceforge.net/
platforms           darwin
master_sites        sourceforge

checksums           md5 1d18762b6c62fb58123b1a89bdd39fb1

depends_lib         port:kdelibs3

configure.args       --without-arts --with-qt-libraries=${prefix}/lib/
use_bzip2           yes

patchfiles          patch-src-kile-syntax-Makefile.diff

platform darwin 9 {
    # http://developer.apple.com/qa/qa2007/qa1567.html
	configure.ldflags-append -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
}

