aboutsummaryrefslogtreecommitdiff
path: root/emulators/dgen-sdl/Makefile
blob: 2643d7bcac32efcec32f59c7a931bce1ee38cae3 (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
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>

PORTNAME=	dgen-sdl
PORTVERSION=	1.33
PORTREVISION=	5
CATEGORIES=	emulators
MASTER_SITES=	SF/dgen/dgen/${PORTVERSION}

MAINTAINER=	ak@FreeBSD.org
COMMENT=	Wonderful Sega Genesis/MegaDrive emulator

USE_SDL=	sdl
USE_GL=		glu
USES=		gl gmake libarchive sdl
GNU_CONFIGURE=	yes

PLIST_FILES=	bin/dgen \
		bin/dgen_tobin \
		man/man1/dgen.1.gz \
		man/man1/dgen_tobin.1.gz \
		man/man5/dgenrc.5.gz

.include <bsd.port.pre.mk>

.if ${ARCH} == i386
BUILD_DEPENDS+=	nasm:devel/nasm
.else
CONFIGURE_ARGS+=	--disable-asm
.endif

post-patch:
	@${REINPLACE_CMD} -e '/@NASM@/s/--//' \
		${WRKSRC}/Makefile.in \
		${WRKSRC}/mz80/Makefile.in \
		${WRKSRC}/star/Makefile.in

.include <bsd.port.post.mk>