blob: c2d13cef31a16c5132f5bb853511759ba21d55fc (
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
|
# $NetBSD: Makefile,v 1.8 2005/04/11 21:45:43 tv Exp $
#
DISTNAME= dgen-sdl-1.23
PKGREVISION= 2
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_GNU_TOOLS+= make
GNU_CONFIGURE= yes
USE_X11= 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"
|