81580996de
pkgsrc changes: - README.html is no longer in the distribution tarball so make it optional and generate it using asciidoc and source-highlight. Upstream changes (from README.adoc): .3.2.0 2019/9/14 * Compatible ROM implemented by AKIKAWA Hisashi is now built in the emulator. Now the emulator is bootable without genuine ROM. * Fixed timer interrupt interval on SR models.(temporal fix) * Assigned Alt+F9/F10 hotkey to state save/load. * Dropped "Patch the ROM" setting. (Because it made JOYSTICK2 unusable.)
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# $NetBSD: options.mk,v 1.2 2019/09/14 01:45:45 tsutsui Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.PC6001VX
|
|
PKG_SUPPORTED_OPTIONS= debug ffmpeg manual sdl2
|
|
|
|
# debug enables for debug monitor support, which can be disabled
|
|
# for low performance machines.
|
|
PKG_SUGGESTED_OPTIONS+= debug
|
|
# ffmpeg is required for video capture support.
|
|
PKG_SUGGESTED_OPTIONS+= ffmpeg
|
|
# SDL2 is required for joystick support.
|
|
PKG_SUGGESTED_OPTIONS+= sdl2
|
|
|
|
# Generate README.html from README.adoc using asciidoc and source-highlight.
|
|
PKG_SUGGESTED_OPTIONS+= manual
|
|
|
|
PLIST_VARS+= manual
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if empty(PKG_OPTIONS:Mdebug)
|
|
QMAKE_ARGS+= "DEFINES+=NOMONITOR"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mffmpeg)
|
|
.include "../../multimedia/ffmpeg4/buildlink3.mk"
|
|
.else
|
|
QMAKE_ARGS+= "DEFINES+=NOAVI"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msdl2)
|
|
.include "../../devel/SDL2/buildlink3.mk"
|
|
.else
|
|
QMAKE_ARGS+= "DEFINES+=NOJOYSTICK"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmanual)
|
|
PLIST.manual= yes
|
|
|
|
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
|
|
BUILD_DEPENDS+= source-highlight-[0-9]*:../../textproc/source-highlight
|
|
|
|
INSTALLATION_DIRS+= share/doc/PC6001VX
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && asciidoc -o README.html README.adoc
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README.html \
|
|
${DESTDIR}${PREFIX}/share/doc/PC6001VX
|
|
.endif
|