aboutsummaryrefslogtreecommitdiff
path: root/emulators/fs-uae/Makefile
blob: c166dcb6964eb6d08f7d6f9a9c6c74729bb78617 (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
43
44
45
46
47
48
49
50
51
PORTNAME=	fs-uae
PORTVERSION=	3.1.35
CATEGORIES=	emulators
MASTER_SITES=	http://fs-uae.net/stable/${PORTVERSION}/

MAINTAINER=	sirdice@gmail.com
COMMENT=	Amiga emulator
WWW=		https://fs-uae.net/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	zip:archivers/zip
LIB_DEPENDS=	libmpeg2.so:multimedia/libmpeg2 \
		libopenal.so:audio/openal-soft \
		libpng.so:graphics/png

USES=		compiler:c11 desktop-file-utils gettext gl gmake gnome \
		localbase pkgconfig sdl shared-mime-info xorg

USE_SDL=	sdl2
USE_GL=		gl
USE_GNOME=	glib20
USE_XORG=	x11

GNU_CONFIGURE=	yes
CFLAGS+=	-Wno-c++11-narrowing
LDFLAGS_i386=	-Wl,-znotext

OPTIONS_DEFINE=	DOCS DEBUG
OPTIONS_DEFINE_i386=	JIT
OPTIONS_DEFINE_amd64=	JIT

JIT_DESC=	Enable JIT compiler (experimental)
JIT_CONFIGURE_ENABLE=	jit

.include <bsd.port.pre.mk>

# JIT is not supported on non-x86 make sure it's off
.if ${ARCH} != amd64 && ${ARCH} != i386
CONFIGURE_ARGS+=	--disable-jit
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|= bind|= ::bind|' \
		${WRKSRC}/src/od-fs/bsdsocket_posix.cpp \
		${WRKSRC}/src/support/socket.cpp
	@${REINPLACE_CMD} -e 's|return NULL|return 0|' \
		${WRKSRC}/src/memory.cpp

.include <bsd.port.post.mk>