# $Id: Portfile,v 1.4 2005/12/18 08:56:39 blb Exp $
PortSystem 1.0
name              bazaar
version           1.4.2
distname          bazaar_${version}
categories        devel
maintainers       josh_root@users.sourceforge.net
description       an improved GNU Arch client
long_description \
	Bazaar is intended to be an implementation of the GNU Arch \
	protocol that open source developers both want to use, and \
	love using. It is a drop-in replacement for tla. \
	GNU arch is a revision control system, similar in purpose to \
	tools such as CVS, SCCS, and Subversion. It is used to keep \
	track of the changes made to a source tree and to help \
	programmers combine and otherwise manipulate changes made by \
	multiple people or at different times.
homepage          http://bazaar.canonical.com/

master_sites      http://bazaar.canonical.com/releases/src/
checksums      md5 6e61d7aeec990a801977ee6cdc3958d5 \
               sha1 030fcf1d2de6392c6ab3c23d7af1fddbbeb65a73 \
               rmd160 8a9d8159ead224b24ab84d0fd6cbc23ac004eb51

configure.env 	CFLAGS="-I'${prefix}/include' -L'${prefix}/lib'"
configure.dir    ${workpath}/thelove@canonical.com---dists--bazaar--1.4/build
build.dir        ${configure.dir}

pre-configure {
	file mkdir ${configure.dir}
}
configure.cmd    ../src/configure

build.env CFLAGS="-g -O2 -Wall -fno-strict-aliasing \
-I'${prefix}/include' -L'${prefix}/lib' \
-lintl -lneon -lgpgme -lpth"

destroot.env CFLAGS="-I'${prefix}/include' -L'${prefix}/lib' -lintl -lneon -lgpgme" \
LDFLAGS="-L'${prefix}/lib'"
destroot.destdir prefix=${destroot}${prefix}
post-destroot   {
	file rename ${destroot}${prefix}/bin/annotate ${destroot}${prefix}/bin/annotate-baz
}

depends_lib    lib:libneon:neon  lib:libgpgme:gpgme

platform darwin 7 {
	depends_lib-append    bin:gdiff:diffutils bin:gpatch:gpatch \
		                  bin:gnutar:gnutar
	configure.args-append --with-gnu-diff=${prefix}/bin/gdiff \
		                      --with-gnu-diff3=${prefix}/bin/gdiff3
}

