openbsd-ports/emulators/gambatte/Makefile
2013-03-11 11:02:49 +00:00

50 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2013/03/11 11:06:04 espie Exp $
COMMENT = highly accurate Game Boy Color emulator
V = 0.5.0
DISTNAME = gambatte_src-${V}-wip2v2
PKGNAME = gambatte-${V}-beta3
CATEGORIES = emulators
HOMEPAGE = http://gambatte.sourceforge.net/
MAINTAINER = Anthony J. Bentley <anthony@cathet.us>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m pthread stdc++ z SDL
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gambatte/}
MODULES = devel/scons \
lang/python
LIB_DEPENDS = devel/sdl
TEST_DEPENDS = graphics/png
pre-configure:
${SUBST_CMD} ${WRKDIST}/testrunner/SConstruct
do-build:
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKDIST}/libgambatte \
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKDIST}/gambatte_sdl \
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
do-install:
${INSTALL_PROGRAM} ${WRKDIST}/gambatte_sdl/gambatte_sdl ${PREFIX}/bin
${INSTALL_MAN} ${WRKDIST}/gambatte_sdl/man/gambatte_sdl.6 \
${PREFIX}/man/man6
do-test:
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKDIST}/testrunner \
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
cd ${WRKDIST}/testrunner && \
${MODPY_BIN} qdgbas.py hwtests/*.asm hwtests/*/*.asm \
hwtests/*/*/*.asm hwtests/*/*/*/*.asm && ./run_tests.sh
.include <bsd.port.mk>