# $OpenBSD$

COMMENT =	adventure game studio engine

V =		3.4.0.13

DISTNAME =	ags-v.${V}
PKGNAME =	ags-${V}

CATEGORIES =	games

HOMEPAGE =	https://github.com/adventuregamestudio/ags

# Artistic 2.0
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =		X11 c freetype m pthread stdc++ alleg ogg theora vorbis vorbisfile

MASTER_SITES =		https://github.com/adventuregamestudio/ags/

DISTFILES =		ags-{archive/}v.${V}${EXTRACT_SUFX}

LIB_DEPENDS =		games/allegro audio/libogg multimedia/libtheora audio/libvorbis

MAKE_FLAGS =		-C Engine

USE_GMAKE =		Yes

pre-build:
	cp ${FILESDIR}/Makefile-defs.openbsd ${WRKSRC}/Engine

.include <bsd.port.mk>
