summaryrefslogtreecommitdiff
path: root/emulators/vice/Makefile
diff options
context:
space:
mode:
authortv <tv>1999-05-18 08:45:48 +0000
committertv <tv>1999-05-18 08:45:48 +0000
commit8694fbdaab21bb47036adfa5a8fa19e13c4de659 (patch)
treeabacfb25beb4708aedd2e0772efb6103e819d888 /emulators/vice/Makefile
parent91cd4f143464e58ff6f822904f86f20742f8bfc8 (diff)
downloadpkgsrc-8694fbdaab21bb47036adfa5a8fa19e13c4de659.tar.gz
Update to 1.0, clean up, remove xpm dependency and check (...only used for
window icon when iconified), and add third party configs for 4064, SX-64, and C64 Game System.
Diffstat (limited to 'emulators/vice/Makefile')
-rw-r--r--emulators/vice/Makefile63
1 files changed, 44 insertions, 19 deletions
diff --git a/emulators/vice/Makefile b/emulators/vice/Makefile
index cd0d07c1226..fc599be13af 100644
--- a/emulators/vice/Makefile
+++ b/emulators/vice/Makefile
@@ -1,30 +1,55 @@
-# $NetBSD: Makefile,v 1.5 1999/01/30 23:18:46 agc Exp $
+# $NetBSD: Makefile,v 1.6 1999/05/18 08:45:48 tv Exp $
-DISTNAME= vice-0.15.0
+DISTNAME= vice-1.0
CATEGORIES= emulators
-MASTER_SITES= http://www.tu-chemnitz.de/~fachat/vice/
+MASTER_SITES= ftp://ftp.funet.fi/pub/cbm/firmware/computers/c64/ \
+ ftp://ftp.funet.fi/pub/cbm/crossplatform/emulators/VICE/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ 64gs.390852-01.bin \
+ kernal.4064.901246-01.bin \
+ kernal.sx.251104-04.bin
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= root@garbled.net
-HOMEPAGE= http://www.tu-chemnitz.de/~fachat/vice/
-
-BUILD_DEPENDS+= bison:../../devel/bison
-DEPENDS+= xpm-3.4k:../../graphics/xpm
+HOMEPAGE= http://www.cs.cmu.edu/~dsladic/vice/vice.html
+RESTRICTED= "ROM image copyright is questionable"
+NO_PACKAGE= ${RESTRICTED}
MIRROR_DISTFILE= no
+
GNU_CONFIGURE= yes
-CONFIGURE_ENV+= LDFLAGS="-Wl,-R${X11BASE}/lib"
-USE_GMAKE= yes
-USE_X11BASE= yes
-INFO_FILES= vice.info
+USE_X11= yes
+USE_GTEXINFO= yes
-post-install:
- for ii in C64 C128 VIC20; do \
- for xx in basic chargen dos1541 kernal; do \
- ${INSTALL_DATA} ${WRKSRC}/data/$$ii/$$xx ${PREFIX}/share/vice/$$ii; \
- done; \
- done
- for ii in chargen edit2.b edit4.b40 edit4.b80 pet2001 pet3032 pet4032; do \
- ${INSTALL_DATA} ${WRKSRC}/data/PET/$$ii ${PREFIX}/share/vice/PET; \
+# These changes are rather common, so sed instead of patch:
+post-patch:
+ @for file in `find ${WRKSRC} -name Makefile.in -print` \
+ ${WRKSRC}/src/arch/unix/archdep.h; do \
+ ${MV} -f $$file $$file.orig && \
+ ${SED} -e s,/lib/vice/doc,/share/doc/vice, \
+ -e s,/lib/vice,/share/vice, \
+ -e '/^pkglibdir/s,(libdir),(datadir),' $$file.orig >$$file; \
done
+post-build:
+ @dd if=${_DISTDIR}/64gs.390852-01.bin of=${WRKDIR}/basic.64gs bs=8k count=1 2>/dev/null
+ @dd if=${_DISTDIR}/64gs.390852-01.bin of=${WRKDIR}/kernal.64gs bs=8k skip=1 2>/dev/null
+ @${SED} -e 's,kernal,kernal.64gs,' -e 's,basic,basic.64gs,' \
+ ${WRKSRC}/data/C64/default.vrs >${WRKDIR}/64gs.vrs
+ @${SED} -e 's,kernal,kernal.4064,' \
+ ${WRKSRC}/data/C64/default.vrs >${WRKDIR}/4064.vrs
+ @${SED} -e 's,kernal,kernal.sx64,' \
+ ${WRKSRC}/data/C64/default.vrs >${WRKDIR}/sx64.vrs
+
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/basic.64gs ${PREFIX}/share/vice/C64/
+ ${INSTALL_DATA} ${WRKDIR}/kernal.64gs ${PREFIX}/share/vice/C64/
+ ${INSTALL_DATA} ${_DISTDIR}/kernal.4064.901246-01.bin ${PREFIX}/share/vice/C64/kernal.4064
+ ${INSTALL_DATA} ${_DISTDIR}/kernal.sx.251104-04.bin ${PREFIX}/share/vice/C64/kernal.sx64
+ cd ${WRKDIR} && ${INSTALL_DATA} 64gs.vrs 4064.vrs sx64.vrs \
+ ${PREFIX}/share/vice/C64/
+
.include "../../mk/bsd.pkg.mk"
+
+# this is the emulator's recommended setting
+CFLAGS:= -O5 -finline-functions