summaryrefslogtreecommitdiff
path: root/emulators/aranym/Makefile
blob: a94ca3518e19eb38d07c9459817ced352d0a4c6d (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# $NetBSD: Makefile,v 1.25 2012/06/14 22:37:34 sbd Exp $
#

DISTNAME=			aranym_0.9.13.orig
PKGNAME=			${DISTNAME:S/_/-/:S/.orig//}
PKGREVISION=			2
CATEGORIES=			emulators
MASTER_SITES=			${MASTER_SITE_SOURCEFORGE:=aranym/}
SITES.emutos-512k-0.8.6.zip=	${MASTER_SITE_SOURCEFORGE:=emutos/}
DISTFILES=			${DEFAULT_DISTFILES} emutos-512k-0.8.6.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://aranym.sourceforge.net/
COMMENT=		Atari Running on Any Machine
LICENSE=		gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}

AUTOCONF_REQD=		2..50

USE_TOOLS+=		autoconf gmake gzip
USE_LANGUAGES=		c c++
GNU_CONFIGURE=		yes
MANCOMPRESSED=		yes

CONFIGURE_ARGS+=	--enable-fullmmu
CONFIGURE_ARGS+=	--enable-atc=full

EMUTOS_WRKSRC=		${WRKDIR}/emutos-512k-0.8.6
EMUTOS_DOC_DIR=		${PREFIX}/share/doc/aranym/emutos
EMUTOS_ROM_DIR=		${PREFIX}/share/aranym

REQD_DIRS+=		${EMUTOS_ROM_DIR} ${EMUTOS_DOC_DIR}

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	post-build
SUBST_FILES.paths=	doc/config
SUBST_FILES.paths+=	doc/aranym.1
SUBST_SED.paths=	-e "s|/usr/share/|${PREFIX}/share/|g"
SUBST_SED.paths+=	-e "s|/usr/local/share/|${PREFIX}/share/|g"
SUBST_MESSAGE.paths=	Fixing hardcoded paths.

.include "options.mk"
.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+=	--enable-nfpci
.endif

.if !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+=	--enable-jit-compiler
CONFIGURE_ARGS+=	--enable-jit-fpu
.endif

# This appears if it thinks it can use tun/tap interfaces.
# (While NetBSD has these, the configure test rejects it.)
PLIST_VARS+=		aratapif
.if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
	!empty(MACHINE_PLATFORM:MDarwin-*-*)
PLIST.aratapif=		yes
.endif

INSTALLATION_DIRS+=	${EMUTOS_DOC_DIR} ${EMUTOS_ROM_DIR}

pre-configure:
	cd ${WRKSRC} && autoconf

post-install:
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img ${DESTDIR}${EMUTOS_ROM_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt ${DESTDIR}${EMUTOS_DOC_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/announce.txt ${DESTDIR}${EMUTOS_DOC_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/authors.txt ${DESTDIR}${EMUTOS_DOC_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/changelog.txt ${DESTDIR}${EMUTOS_DOC_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/license.txt ${DESTDIR}${EMUTOS_DOC_DIR}
	${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/status.txt ${DESTDIR}${EMUTOS_DOC_DIR}

.include "../../devel/SDL/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"