aboutsummaryrefslogtreecommitdiff
path: root/emulators/tuxnes/Makefile
blob: 2d16b07c417faac1e348cc4d1909cec99454ef6e (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
# Created by: Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tuxnes
PORTVERSION=	0.75
PORTREVISION=	6
CATEGORIES=	emulators
MASTER_SITES=	SF/${PORTNAME}/TuxNES/TuxNES%20v${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Nintendo Entertainment System 8-bit emulator

LICENSE=	GPLv2

ONLY_FOR_ARCHS=	i386
ONLY_FOR_ARCHS_REASON=	uses i386 assembly code

USES=		compiler gmake
USE_XORG=	x11 ice sm xext xpm
USE_BINUTILS=	yes
GNU_CONFIGURE=	yes

PLIST_FILES=	bin/romfixer bin/tuxnes share/pixmaps/tuxnes.xpm

DESKTOP_ENTRIES="TuxNES" "" "${PREFIX}/share/pixmaps/tuxnes.xpm" \
		"${PORTNAME}" "" ""

.include <bsd.port.pre.mk>

.if ${COMPILER_TYPE} == "clang"
CPPFLAGS+=	-no-integrated-as
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|^CFLAGS=|#CFLAGS=|' ${WRKSRC}/configure

post-install:
	(cd ${WRKSRC} && ${INSTALL_DATA} tuxnes.xpm \
		${STAGEDIR}${PREFIX}/share/pixmaps)

.include <bsd.port.post.mk>