summaryrefslogtreecommitdiff
path: root/emulators/aranym/Makefile
diff options
context:
space:
mode:
authorhauke <hauke>2008-08-07 16:19:34 +0000
committerhauke <hauke>2008-08-07 16:19:34 +0000
commit1584ace3a94a79be0fb1fe0d55ba2fc9c826d483 (patch)
treeda4b4e70116d2d805bcb2b786e8d9d7ede264490 /emulators/aranym/Makefile
parent878e5383267311af492534dc0b4c0e82efe9bb03 (diff)
downloadpkgsrc-1584ace3a94a79be0fb1fe0d55ba2fc9c826d483.tar.gz
Install emutos image with the package
Patch a few absolute paths Add MESSAGE file
Diffstat (limited to 'emulators/aranym/Makefile')
-rw-r--r--emulators/aranym/Makefile36
1 files changed, 32 insertions, 4 deletions
diff --git a/emulators/aranym/Makefile b/emulators/aranym/Makefile
index 95256e8d707..b9b67934fdf 100644
--- a/emulators/aranym/Makefile
+++ b/emulators/aranym/Makefile
@@ -1,9 +1,12 @@
-# $NetBSD: Makefile,v 1.19 2008/07/30 14:08:59 hauke Exp $
+# $NetBSD: Makefile,v 1.20 2008/08/07 16:19:34 hauke Exp $
#
-DISTNAME= aranym-0.9.6beta2
-CATEGORIES= emulators
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aranym/}
+DISTNAME= aranym-0.9.6beta2
+PKGREVISION= 1
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aranym/}
+SITES.emutos-512k-0.8.3.zip= ${MASTER_SITE_SOURCEFORGE:=emutos/}
+DISTFILES= aranym-0.9.6beta2.tar.gz emutos-512k-0.8.3.zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://aranym.sourceforge.net/
@@ -16,6 +19,20 @@ MANCOMPRESSED= yes
CONFIGURE_ARGS+= --enable-fullmmu
+EMUTOS_WRKSRC= ${WRKDIR}/emutos-512k-0.8.3
+EMUTOS_DOC_DIR= ${DESTDIR}${PREFIX}/share/doc/aranym/emutos
+EMUTOS_ROM_DIR= ${DESTDIR}${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"
@@ -23,5 +40,16 @@ CONFIGURE_ARGS+= --enable-fullmmu
CONFIGURE_ARGS+= --enable-nfpci
.endif
+post-install:
+ #${INSTALL_DATA_DIR} ${EMUTOS_ROM_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img ${EMUTOS_ROM_DIR}
+ ${INSTALL_DATA_DIR} ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/announce.txt ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/authors.txt ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/changelog.txt ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/license.txt ${EMUTOS_DOC_DIR}
+ ${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/status.txt ${EMUTOS_DOC_DIR}
+
.include "../../devel/SDL/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"