PortSystem 1.0

name		dopewars
version		1.5.12
categories	games
license		GPL-2+
maintainers	nomaintainer
description	Rewrite of a game originally based on \"Drug Wars\"
homepage	http://dopewars.sourceforge.net/
platforms	darwin

long_description The idea of dopewars is to deal drugs on the streets \
		 of New York, amassing a huge fortune and paying off \
		 the loan shark, while avoiding the ever annoying \
		 police.

master_sites	sourceforge:project/dopewars/dopewars/${version}

checksums	md5 debf749de9053dc2fb2e74c37ae06206 \
	sha1 ad46a38e225680e591b078eeec563d47b96684bc \
	rmd160 66c86bceb67657a9fb2ef7944b1a069dafab8ae0

depends_build	port:pkgconfig
depends_lib	path:lib/pkgconfig/gtk+-2.0.pc:gtk2 port:esound

post-patch	{ reinplace "s| \$\(dopewars_DEPENDENCIES\)||g" ${worksrcpath}/src/Makefile.in
		  reinplace "s|need_relink=yes|need_relink=no|g" ${worksrcpath}/ltmain.sh
		  reinplace "s|LIBADD =|LIBADD = -module -avoid-version|g" ${worksrcpath}/src/plugins/Makefile.in }

configure.args	--enable-nls --enable-networking --without-sdl --with-pic \
		--enable-gui-client --enable-plugins --enable-shared \
		--enable-static --mandir=${prefix}/share/man
