summaryrefslogtreecommitdiff
path: root/emulators/dgen/Makefile
blob: 7127632c3b54f2dbaa11056a62bed9a98d1fbf63 (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
# $NetBSD: Makefile,v 1.12 2006/02/05 23:09:00 joerg Exp $
#

DISTNAME=	dgen-sdl-1.23
PKGREVISION=	4
CATEGORIES=	emulators
MASTER_SITES=	http://www.pknet.com/~joe/

MAINTAINER=	pancake@phreaker.net
HOMEPAGE=	http://www.pknet.com/~joe/dgen-sdl.html
COMMENT=	Genesis/Megadrive emulator for Unix platforms

.if ${MACHINE_ARCH} == "i386"
DEPENDS+=	nasm-[0-9]*:../../devel/nasm
.endif

USE_TOOLS+=	gmake
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--with-extra-opt

SUBST_CLASSES+=		config
SUBST_STAGE.config=	pre-configure
SUBST_FILES.config=	configure
SUBST_SED.config=	-e "s|\-mpentium||g"	    \
			-e "s|\-march=pentium||g"   \
			-e "s|\-fno-rtti||g"
SUBST_MESSAGE.config=	"Removing outdated compilation flags."

.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-3*)
SUBST_SED.config+=	-e "s|\-malign-loops|\-falign-loops|g"
SUBST_SED.config+=	-e "s|\-malign-jumps|\-falign-jumps|g"
SUBST_SED.config+=	-e "s|\-malign-functions|\-falign-functions|g"
.endif

.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"