File:  [cvs.NetBSD.org] / pkgsrc / emulators / sameboy / Makefile
Revision 1.4: download - view: text, annotated - select for diffs
Tue Aug 18 17:57:47 2020 UTC (4 years, 3 months ago) by leot
Branches: MAIN
CVS tags: HEAD
*: revbump for libsndfile

# $NetBSD: Makefile,v 1.4 2020/08/18 17:57:47 leot Exp $

PKGREVISION= 1
.include "Makefile.common"

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://sameboy.github.io/
COMMENT=	Highly accurate Game Boy and Game Boy Color emulator

BUILD_TARGET=	sdl

MAKE_FLAGS+=	DATA_DIR=${PREFIX}/share/sameboy/

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/doc/sameboy
INSTALLATION_DIRS+=	share/sameboy
INSTALLATION_DIRS+=	share/sameboy/Shaders

BUILDLINK_TRANSFORM+=	rm:-Werror

do-install:
	cd ${WRKSRC}/build/bin/SDL && ${INSTALL_PROGRAM} sameboy \
	    ${DESTDIR}${PREFIX}/bin/sameboy
	cd ${WRKSRC}/build/bin/SDL && ${INSTALL_DATA} *.bin *.sym *.bmp \
	    ${DESTDIR}${PREFIX}/share/sameboy
	cd ${WRKSRC}/build/bin/SDL && ${INSTALL_DATA} LICENSE \
	    ${DESTDIR}${PREFIX}/share/doc/sameboy
	cd ${WRKSRC}/build/bin/SDL/Shaders && ${INSTALL_DATA} *.fsh \
	    ${DESTDIR}${PREFIX}/share/sameboy/Shaders

.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>