# $Id$

PortSystem 1.0

name		logjam
version		4.2.4
categories	net
license		GPL-2+
maintainers	nomaintainer
description	GTK2 client for livejournal.com
homepage	http://logjam.danga.com/
platforms	darwin

long_description LogJam is a GTK2 client for LiveJournal.com.

master_sites	http://logjam.danga.com/download/
checksums	md5 c832561a264a5fe4a4cad3cda6500656

depends_build	port:pkgconfig
depends_lib	lib:libgtk.2:gtk2 lib:libcurl.2:curl \
		path:lib/libxml2.2.dylib:libxml2

configure.env LIBS="-L${prefix}/lib -lX11"
configure.ldflags-append "-L${prefix}/lib -bind_at_load"

configure.args	--without-gtkspell --without-xmms --without-gtkhtml \
		--without-librsvg --mandir=${prefix}/share/man

post-configure	{ reinplace "s| -arch i386||g" ${worksrcpath}/config.log
		  reinplace "s| -arch i386||g" ${worksrcpath}/config.status
		  reinplace "s| -arch i386||g" ${worksrcpath}/Makefile
		  reinplace "s| -arch i386||g" ${worksrcpath}/images/Makefile
		  reinplace "s| -arch i386||g" ${worksrcpath}/src/Makefile }