summaryrefslogtreecommitdiff
path: root/emulators/stella/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/stella/Makefile.common')
-rw-r--r--emulators/stella/Makefile.common46
1 files changed, 46 insertions, 0 deletions
diff --git a/emulators/stella/Makefile.common b/emulators/stella/Makefile.common
new file mode 100644
index 00000000000..6d6017beb3e
--- /dev/null
+++ b/emulators/stella/Makefile.common
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile.common,v 1.1 2004/06/05 11:56:31 dillo Exp $
+
+STELLA_VERSION= 1.3
+DISTNAME= stella-${STELLA_VERSION}-src
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stella/}
+
+MAINTAINER= dillo@NetBSD.org
+HOMEPAGE= http://stella.sourceforge.org/
+COMMENT= Multi-platform Atari 2600 VCS emulator
+
+PATCHDIR= ${.CURDIR}/../stella/patches
+DISTINFO_FILE= ${.CURDIR}/../stella/distinfo
+
+WRKSRC= ${WRKDIR}/stella-${STELLA_VERSION}/src/build
+USE_LANGUAGES= c c++
+USE_GNU_TOOLS+= make
+USE_BUILDLINK3= YES
+USE_INSTALL= YES
+
+MAKEFILE= makefile
+
+.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
+GCC_REQD+= 3.0
+.endif
+
+MAKE_ENV= CXXFLAGS="${CXXFLAGS} -fno-rtti"
+
+DOCDIR=${PREFIX}/share/doc/html/stella
+EGDIR=${PREFIX}/share/examples/stella
+DATADIR=${PREFIX}/share/stella
+
+CONF_FILES= ${EGDIR}/stellarc.default ${PKG_SYSCONFDIR}/stellarc
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${STELLA} ${PREFIX}/bin/stella
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DOCDIR}/graphics
+ ${INSTALL_DATA} ${WRKSRC}/../../docs/stella.html ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../../docs/graphics/* ${DOCDIR}/graphics
+ ${INSTALL_DATA_DIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/../emucore/stella.pro ${DATADIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../stellarc ${EGDIR}/stellarc.default
+
+.include "../../graphics/png/buildlink3.mk"