summaryrefslogtreecommitdiff
path: root/emulators/snes9x/Makefile
blob: 461ec45c13e3559e0965509fd9e20ada6ee60c54 (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
39
40
41
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.60 2022/05/03 17:09:19 nia Exp $

.include "../../emulators/snes9x/Makefile.common"

MAINTAINER=	nia@NetBSD.org
COMMENT=	Super Nintendo Entertainment System (SNES) emulator (CLI version)

CONFIGURE_DIRS=		unix
BUILD_DIRS=		unix

GNU_CONFIGURE=		yes

USE_TOOLS+=		gmake pkg-config

CONFIGURE_ARGS+=	--enable-netplay

CONFIGURE_ARGS+=	--with-system-zip

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/doc/snes9x

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/unix/snes9x \
	    ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/docs/changes.txt \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x
	${INSTALL_MAN} ${WRKSRC}/docs/control-inputs.txt \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x
	${INSTALL_MAN} ${WRKSRC}/docs/controls.txt \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x
	${INSTALL_MAN} ${WRKSRC}/docs/porting.html \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x
	${INSTALL_MAN} ${WRKSRC}/docs/snapshots.txt \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x
	${INSTALL_MAN} ${WRKSRC}/unix/docs/readme_unix.html \
	    ${DESTDIR}${PREFIX}/share/doc/snes9x

.include "options.mk"
.include "../../archivers/minizip/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXv/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"