# $OpenBSD: Makefile.template,v 1.65 2013/03/21 08:46:31 ajacoutot Exp $

COMMENT =		puzzle game featuring dominos

DISTNAME =		pushover-0.0.5

CATEGORIES =		games

HOMEPAGE =		http://pushover.sourceforge.net/

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += FLAC SDL SDL_mixer SDL_ttf c freetype lua5.1 m mikmod
WANTLIB += ogg png pthread smpeg sndio stdc++ usbhid vorbis vorbisfile
WANTLIB += z

MASTER_SITES =		${MASTER_SITE_SOURCEFORGE:=pushover/}

MODULES =		converters/libiconv \
			devel/gettext \
			lang/lua
LIB_DEPENDS =		devel/sdl-mixer \
			devel/sdl-ttf \
			graphics/png

USE_LIBTOOL=		gnu
CONFIGURE_STYLE =	gnu autoconf automake

AUTOCONF_VERSION =	2.69
AUTOMAKE_VERSION =	1.12

SUBST_VARS +=		MODLUA_DEP

pre-configure:
	${SUBST_CMD} ${WRKSRC}/configure.ac
	cd ${WRKSRC} && \
		AUTOCONF_VERSION=${AUTOCONF_VERSION} \
		AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
		autoreconf -i

.include <bsd.port.mk>
