blob: 6c75130e55664ede9271d1cb1948c8ad83f2f80c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.27 2016/03/05 11:28:28 jperkin Exp $
#
DISTNAME= gambatte_src-0.4.1
PKGNAME= ${DISTNAME:S/_src//}
PKGREVISION= 22
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"
|