Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/dgen-sdl/Makefile
16124 views
# Created by: Maxim Sobolev <[email protected]>

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

MAINTAINER=	[email protected]
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>