summaryrefslogtreecommitdiffstats
path: root/emulators/raine/Makefile
blob: df7aeb3d1d07dca269e746dd27f511495aed204b (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Florent Thoumie <flz@xbsd.org>
# $FreeBSD$

PORTNAME=	raine
PORTVERSION=	0.51.9
PORTREVISION=	3
CATEGORIES=	emulators games
MASTER_SITES=	GENTOO
DISTNAME=	${PORTNAME}s-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Arcade Emulator for M68000, M68020 and Z80 based hardware

LICENSE=	ART10

BUILD_DEPENDS=	nasm>0:devel/nasm
LIB_DEPENDS=	libpng.so:graphics/png

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=		gmake perl5 shebangfix tar:bzip2
SHEBANG_FILES=	makedep
USE_PERL5=	build
USE_SDL=	image ttf sdl
USE_GCC=	any
MAKEFILE=	makefile
MAKE_ARGS=	NEO="" VERBOSE=1 HAS_CONSOLE=""

ONLY_FOR_ARCHS=	i386

post-patch:
	@${REINPLACE_CMD} -e \
		's| [$$]_mcpu||g' ${WRKSRC}/detect-cpu
	@${REINPLACE_CMD} -e \
		's|CC=|CC?=| ; \
		 s|CXX=|CXX?=| ; \
		 /LD/s|gcc|$$(CXX)| ; \
		 s|$$(DESTDIR)/usr|$$(DESTDIR)$$(PREFIX)| ; \
		 s|$$(prefix)/games|$$(prefix)/bin| ; \
		 s|$$(prefix)/share/games|$$(prefix)/share| ; \
		 s|-I.*/muParser|-I$${LOCALBASE}/include| ; \
		 s|^CFLAGS =|CFLAGS ?=| ; \
		 s|sdl-config|$${SDL_CONFIG}|g ; \
		 /LFLAGS/s|-g || ; \
		 /LFLAGS/s|-lstdc++|$$(LDFLAGS)|' ${WRKSRC}/makefile
	@${REINPLACE_CMD} -e \
		'/^Icon/s|=.*|=${PREFIX}/share/pixmaps/raine.png|' \
		${WRKSRC}/raine.desktop
	@${REINPLACE_CMD} -e \
		's|/usr/share/games/raine|${DATADIR}|' ${WRKSRC}/source/raine.c

post-install:
.for i in artwork emudx roms scripts/raine
	@${ECHO_CMD} -n > ${STAGEDIR}${DATADIR}/${i}/.keep_me
.endfor
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/raine

.include <bsd.port.mk>
OpenPOWER on IntegriCloud