aboutsummaryrefslogtreecommitdiff
path: root/emulators/gnuboy/Makefile
blob: 92b7a0694ddf26b793e2819bcb4d72662e0018d4 (plain) (blame)
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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	gnuboy
PORTVERSION=	1.0.3
PORTREVISION=	9
CATEGORIES=	emulators games
MASTER_SITES=	http://www.sourcefiles.org/Emulators/Videogames/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Nintendo GameBoy emulator

LICENSE=	GPLv2 # (or later)
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	vga.1:${PORTSDIR}/graphics/svgalib

USE_SDL=	sdl
USE_XORG=	x11
USE_AUTOTOOLS=	autoconf
CONFIGURE_ARGS=	--with-sdl

PORTDOCS=	*
PLIST_FILES=	bin/sdlgnuboy bin/sgnuboy bin/xgnuboy

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
do-install:
.for file in sdlgnuboy sgnuboy xgnuboy
	${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif

.include <bsd.port.mk>