1 # $NetBSD: Makefile,v 1.26 2012/10/03 12:55:09 asau Exp $
4 DISTNAME
= aranym_0.9
.14.orig
5 PKGNAME
= ${DISTNAME
:S
/_
/-/:S
/.orig
//}
7 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=aranym
/}
8 SITES.emutos-512k-0.8
.7.zip
= ${MASTER_SITE_SOURCEFORGE
:=emutos
/}
9 DISTFILES
= ${DEFAULT_DISTFILES} emutos-512k-0.8
.7.zip
11 MAINTAINER
= pkgsrc-users@NetBSD.org
12 HOMEPAGE
= http
://aranym.sourceforge.net
/
13 COMMENT
= Atari Running on Any Machine
16 WRKSRC
= ${WRKDIR}/${PKGNAME_NOREV}
20 USE_TOOLS
+= autoconf gmake gzip
25 CONFIGURE_ARGS
+= --enable-fullmmu
26 CONFIGURE_ARGS
+= --enable-atc
=full
28 EMUTOS_WRKSRC
= ${WRKDIR}/emutos-512k-0.8
.7
29 EMUTOS_DOC_DIR
= ${PREFIX}/share
/doc
/aranym
/emutos
30 EMUTOS_ROM_DIR
= ${PREFIX}/share
/aranym
32 REQD_DIRS
+= ${EMUTOS_ROM_DIR} ${EMUTOS_DOC_DIR}
35 SUBST_STAGE.paths
= post-build
36 SUBST_FILES.paths
= doc
/config
37 SUBST_FILES.paths
+= doc
/aranym
.1
38 SUBST_SED.paths
= -e
"s|/usr/share/|${PREFIX}/share/|g"
39 SUBST_SED.paths
+= -e
"s|/usr/local/share/|${PREFIX}/share/|g"
40 SUBST_MESSAGE.paths
= Fixing hardcoded paths.
43 .
include "../../mk/bsd.prefs.mk"
45 .if
${OPSYS} == "Linux"
46 CONFIGURE_ARGS
+= --enable-nfpci
49 .if
!empty
(MACHINE_PLATFORM
:MLinux-
*-i386
)
50 CONFIGURE_ARGS
+= --enable-jit-compiler
51 CONFIGURE_ARGS
+= --enable-jit-fpu
54 # This appears if it thinks it can use tun/tap interfaces.
55 # (While NetBSD has these, the configure test rejects it.)
57 .if
!empty
(MACHINE_PLATFORM
:MLinux-
*-*) || \
58 !empty
(MACHINE_PLATFORM
:MDarwin-
*-*)
62 INSTALLATION_DIRS
+= ${EMUTOS_DOC_DIR} ${EMUTOS_ROM_DIR}
65 cd
${WRKSRC} && autoconf
68 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img
${DESTDIR}${EMUTOS_ROM_DIR}
69 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt
${DESTDIR}${EMUTOS_DOC_DIR}
70 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc
/announce.txt
${DESTDIR}${EMUTOS_DOC_DIR}
71 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc
/authors.txt
${DESTDIR}${EMUTOS_DOC_DIR}
72 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc
/changelog.txt
${DESTDIR}${EMUTOS_DOC_DIR}
73 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc
/license.txt
${DESTDIR}${EMUTOS_DOC_DIR}
74 ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc
/status.txt
${DESTDIR}${EMUTOS_DOC_DIR}
76 .
include "../../devel/SDL/buildlink3.mk"
77 .
include "../../math/mpfr/buildlink3.mk"
78 .
include "../../mk/bsd.pkg.mk"