aboutsummaryrefslogtreecommitdiff
path: root/emulators/mess/Makefile
blob: fc3fbb50a674c3d7010f1d478a0eb9ced5ce7e43 (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
52
53
54
55
56
57
58
# New ports collection makefile for:	sdlmess
# Date created:				2007-01-10
# Whom:					alepulver
#
# $FreeBSD$
#

PORTNAME=	sdlmess
PORTVERSION=	0.124
CATEGORIES=	emulators
MASTER_SITES=	ftp://ftp.alepulver.com.ar/distfiles/
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	SDL port of MESS (Multiple Emulator Super System)

USE_ZIP=	yes
USE_GL=		gl
USE_XORG=	xext xrender xinerama xi
USE_GMAKE=	yes
USE_SDL=	sdl
MAKEFILE=	makefile.sdl

SUB_FILES=	${PORTNAME} pkg-message

.include <bsd.port.pre.mk>

# In FreeBSD 5.x fails to build due to an internal compiler error. Using the
# version 3.4 from ports which probably fixes this error requires a hack to
# get around bsd.gcc.mk handling, so use a higher version than in base system.
.if ${OSVERSION} < 600000
USE_GCC=	4.2+
.endif

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
	${MKDIR} ${PREFIX}/libexec/sdlmess
.for f in obj/sdl/mess/build/file2str obj/sdl/mess/build/png2bdc mess \
	testkeys dat2html messtest imgtool romcmp chdman jedutil makemeta \
	regrep srcclean src2html
	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/libexec/sdlmess
.endfor
	${MKDIR} ${DATADIR}
.for f in artwork hash keymaps sysinfo.dat
	${CP} -R ${WRKSRC}/${f} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
	${CP} -R ${WRKSRC}/docs ${DOCSDIR}
.endif

post-install:
	@${ECHO_CMD}
	@${CAT} ${PKGMESSAGE}
	@${ECHO_CMD}

.include <bsd.port.post.mk>