# $OpenBSD: Makefile,v 1.2 2007/05/22 20:49:01 ajacoutot Exp $

COMMENT=		"free software clone of Worms(R) game concept"

DISTNAME=		wormux-0.7.9
PKGNAME=		${DISTNAME}p0
CATEGORIES=		games

HOMEPAGE=		http://wormux.org

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=	Yes
WANTLIB=		SDL X11 Xext c crypto glib-2.0 glibmm-2.4 gobject-2.0 \
			idn m pthread sigc-2.0 ssl stdc++ usbhid xml2 z

MASTER_SITES=		http://download.gna.org/wormux/

LIB_DEPENDS=		SDL_gfx::devel/sdl-gfx \
			SDL_image::devel/sdl-image \
			SDL_mixer::devel/sdl-mixer \
			SDL_net::devel/sdl-net \
			SDL_ttf::devel/sdl-ttf \
			curl.>=5::net/curl \
			xml++-2.6::textproc/libxml++

MODULES=		devel/gettext
CONFIGURE_STYLE=	gnu
CONFIGURE_ENV+= 	CPPFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
			LDFLAGS="-L${LOCALBASE}/lib"

post-extract:
	@cp ${FILESDIR}/openbsd.h ${WRKSRC}/src/include/

.include <bsd.port.mk>
