Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / emulators / aranym / Makefile
blob78fc13741a8e56b8267366bdc86a36ac8c62f8ed
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//}
6 CATEGORIES= emulators
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
14 LICENSE= gnu-gpl-v2
16 WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
18 AUTOCONF_REQD= 2..50
20 USE_TOOLS+= autoconf gmake gzip
21 USE_LANGUAGES= c c++
22 GNU_CONFIGURE= yes
23 MANCOMPRESSED= yes
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}
34 SUBST_CLASSES+= paths
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.
42 .include "options.mk"
43 .include "../../mk/bsd.prefs.mk"
45 .if ${OPSYS} == "Linux"
46 CONFIGURE_ARGS+= --enable-nfpci
47 .endif
49 .if !empty(MACHINE_PLATFORM:MLinux-*-i386)
50 CONFIGURE_ARGS+= --enable-jit-compiler
51 CONFIGURE_ARGS+= --enable-jit-fpu
52 .endif
54 # This appears if it thinks it can use tun/tap interfaces.
55 # (While NetBSD has these, the configure test rejects it.)
56 PLIST_VARS+= aratapif
57 .if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
58 !empty(MACHINE_PLATFORM:MDarwin-*-*)
59 PLIST.aratapif= yes
60 .endif
62 INSTALLATION_DIRS+= ${EMUTOS_DOC_DIR} ${EMUTOS_ROM_DIR}
64 pre-configure:
65 cd ${WRKSRC} && autoconf
67 post-install:
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"