File:  [cvs.NetBSD.org] / pkgsrc / emulators / gambatte / Makefile
Revision 1.26: download - view: text, annotated - select for diffs
Sat Apr 25 14:20:45 2015 UTC (9 years, 6 months ago) by tnn
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, HEAD
Recursive revbump following MesaLib update, categories a through f.

# $NetBSD: Makefile,v 1.26 2015/04/25 14:20:45 tnn Exp $
#

DISTNAME=	gambatte_src-0.4.1
PKGNAME=	${DISTNAME:S/_src//}
PKGREVISION=	21
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gambatte/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://gambatte.sourceforge.net/
COMMENT=	Game Boy Color emulator

BUILD_DEPENDS+=	scons-[0-9]*:../../devel/scons

USE_LANGUAGES=	c c++
INSTALLATION_DIRS=	bin share/doc/gambatte

SUBST_CLASSES+=		sdl
SUBST_FILES.sdl=	gambatte_sdl/SConstruct
SUBST_MESSAGE.sdl=	Fixing path to sdl-config.
SUBST_SED.sdl=		-e "s,sdl-config,${LOCALBASE}/bin/sdl-config,"
SUBST_STAGE.sdl=	pre-build

.include "options.mk"

do-build:
	cd ${WRKSRC}/libgambatte && ${PKGSRC_SETENV} ${MAKE_ENV} scons
	cd ${WRKSRC}/gambatte_sdl && ${PKGSRC_SETENV} ${MAKE_ENV} scons

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gambatte_sdl/gambatte_sdl \
		${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/gambatte

.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>