Portfile

# $Id $
PortSystem 1.0
name abiword-x11
version 2.4.6
description A word processor with gnome support.
long_description A word processor with gnome support.
maintainers nomaintainer@macports.org
categories editors textproc gnome
platforms darwin
homepage http://www.abisource.com/
master_sites http://www.abisource.org/downloads/abiword/${version}/source
checksums md5 8ed5fb282b9741aca75b9e47500d39a1 \
sha1 3011d221d09336f09f4bb0732add3405961a8623 \
rmd160 ca56800d811b3aca0af6b2fb6cd70cbea29ab792
distname abiword-${version}
use_bzip2 yes
dist_subdir abiword
worksrcdir ${distname}/abi
depends_lib \
port:gnome-platform-suite \
port:zlib \
port:fribidi \
port:fontconfig \
port:libgnomeprintui

configure.env \
CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
LDFLAGS="-L${prefix}/lib" CFLAGS="-no-cpp-precomp"

configure.args \
--disable-Cocoa \
--disable-Carbon \
--mandir=${prefix}/share/man \
--without-epath \
--enable-gnome

build.target {}

variant without_gnome {
configure.args-delete --enable-gnome
depends_lib-delete \
port:gnome-platform-suite \
port:libgnomeprintui
}