summaryrefslogtreecommitdiff
path: root/emulators/xbeeb
diff options
context:
space:
mode:
authorabs <abs>2009-02-13 13:47:18 +0000
committerabs <abs>2009-02-13 13:47:18 +0000
commit1d824aeb43ec11b3d16934e19565c1facdfdeff4 (patch)
tree93fbc20996d65f6d5ebc5fdccaa9591e55439de8 /emulators/xbeeb
parentf94b575818e34ec7c76adf7d401af5e5edab69f1 (diff)
downloadpkgsrc-1d824aeb43ec11b3d16934e19565c1facdfdeff4.tar.gz
add options.mk missed in last commit
Diffstat (limited to 'emulators/xbeeb')
-rw-r--r--emulators/xbeeb/options.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/emulators/xbeeb/options.mk b/emulators/xbeeb/options.mk
new file mode 100644
index 00000000000..8aa26a5b3fe
--- /dev/null
+++ b/emulators/xbeeb/options.mk
@@ -0,0 +1,47 @@
+# $NetBSD: options.mk,v 1.1 2009/02/13 13:47:18 abs Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xbeeb
+PKG_SUPPORTED_OPTIONS= mitshm xbeeb-roms
+PKG_SUGGESTED_OPTIONS=
+
+# The emulator can be compiled either to use MIT-SHM, or to not.
+# Unfortunately it doesn't support both at once.
+.if empty(PKG_OPTIONS:Mmitshm)
+SUBST_CLASSES+= nomitshm
+SUBST_STAGE.nomitshm= post-patch
+SUBST_MESSAGE.nomitshm= Disabling MIT-SHM
+SUBST_FILES.nomitshm= src/Config.h
+SUBST_SED.nomitshm= -e "s|\#define *MITSHM|\#undef MITSHM|"
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= xbeeb-roms
+
+.if !empty(PKG_OPTIONS:Mmitshm)
+
+.include "../../x11/xextproto/buildlink3.mk"
+
+.endif
+
+.if !empty(PKG_OPTIONS:Mxbeeb-roms)
+PLIST.xbeeb-roms= yes
+LICENSE= xbeeb-pseudolicense
+RESTRICTED= No redistribution allowed
+NO_BIN_ON_CDROM= ${RESTRICTED}
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_SRC_ON_CDROM= ${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} OS-1.2.rom BASIC2.rom
+SITES.BASIC2.rom= http://bbc.nvg.org/rom/Acorn/lang/
+SITES.OS-1.2.rom= http://bbc.nvg.org/rom/Acorn/os/
+
+ROMDIR=${PREFIX}/${XBEEBROOT}/roms
+post-install:
+ ${INSTALL_DATA} ${DISTDIR}/OS-1.2.rom ${DESTDIR}${ROMDIR}/OS1.2.rom
+ ${INSTALL_DATA} ${DISTDIR}/BASIC2.rom ${DESTDIR}${ROMDIR}/BASIC4.rom
+
+.endif