summaryrefslogtreecommitdiff
path: root/games/libretro-uae/Makefile
blob: a1dd396694723182286837ab1a460ab6c9d27c34 (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

PORTNAME=	libretro-uae
PORTVERSION=	0.20200527
CATEGORIES=	games

MAINTAINER=	menelkir@itroll.org
COMMENT=	Libretro port of UAE

LICENSE=	GPLv2

BROKEN_FreeBSD_13=	ld: error: duplicate symbol: potgo_value
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: potgo_value
BROKEN_riscv64=		fails to compile: ./sources/src/machdep/maccess.h:51:14: unrecognized instruction mnemonic

USES=		compiler:c++11-lib gmake gl
USE_LDCONFIG=	yes
USE_GL=		gl

USE_GITHUB=	yes
GH_ACCOUNT=	libretro
GH_TAGNAME=	8333daa

LDFLAGS_i386=	-Wl,-z,notext

PLIST_FILES=	lib/libretro/puae_libretro.so

post-patch:
	${REINPLACE_CMD} 's/" GIT_VERSION/${GH_TAGNAME}"/' ${WRKSRC}/libretro/libretro.c

do-install:
	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
	${INSTALL_LIB} ${WRKSRC}/puae_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;

.include <bsd.port.mk>