summaryrefslogtreecommitdiff
path: root/emulators/fceux/Makefile
blob: 3ce95cd1a0440a9565b7e8cf28541a8276d1078b (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
40
41
42
43
44
# New ports collection makefile for:	fceu
# Date Created:		10 Mov 2002
# Whom:			HIYAMA Takeshi <gibbon@cocoa.freemail.ne.jp>
#
# $FreeBSD$
#

PORTNAME=	fceux
PORTVERSION=	2.1.3
CATEGORIES=	emulators
MASTER_SITES=	SF/fceultra/Source%20Code/${PORTVERSION}%20src/
DISTNAME=	${PORTNAME}-${PORTVERSION}.src

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A portable NES/Famicom emulator based on Bero's original FCE

USE_BZIP2=	yes
USE_SCONS=	yes
USE_SDL=	sdl
USE_DOS2UNIX=	yes
USE_LUA=	yes

WRKSRC=		${WRKDIR}/fceu

BUILD_DEPENDS+=	zenity:${PORTSDIR}/x11/zenity

MAN6=		fceux.6

.include <bsd.port.pre.mk>

post-extract:
       ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
		${WRKSRC}/src/drivers/common/vidblit.cpp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/fceux ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/documentation/fceux.6 ${PREFIX}/man/man6
	${RM} ${WRKSRC}/documentation/fceux.6
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}/documentation && ${COPYTREE_SHARE} . ${DOCSDIR}/
.endif

.include <bsd.port.post.mk>