pkgsrc/emulators/gearsystem/Makefile
nia e138f5cff0 emulators: add gearsystem
Gearsystem is a cross-platform Sega Master System / Game Gear / SG-1000
emulator written in C++.

## Features

- Accurate Z80 core, including undocumented opcodes and behaviour like R
  and MEMPTR registers.
- Multi-Mapper support: SEGA, Codemasters, Korean, MSX, SG-1000, and ROM
  only cartridges.
- External RAM support with save files.
- Automatic region detection: NTSC-JAP, NTSC-USA, PAL-EUR.
- Accurate VDP emulation including timing and SMS2 only 224 mode support.
- Internal database for rom detection.
- Audio emulation using SDL Audio and Sms_Snd_Emu library.
- Saves battery powered RAM cartridges to file.
- Save states.
- Compressed rom support (ZIP deflate).
- Game Genie and Pro Action Replay cheat support.
- Full debugger with disassembler, breakpoints, debug symbols, memory editor,
  IO inspector and and VRAM viewer including tiles, sprites, backgrounds and
  palettes.
2020-06-02 13:25:00 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2020/06/02 13:25:00 nia Exp $
.include "Makefile.common"
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/drhelius/Gearsystem
COMMENT= Sega Master System / Game Gear / SG-1000 emulator
LICENSE= gnu-gpl-v3
USE_TOOLS+= gmake
BUILD_DIRS= platforms/linux
MAKE_FLAGS+= CXX=${CXX}
MAKE_FLAGS+= GIT_VERSION="pkgsrc"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
MAKE_FLAGS+= UNAME_S="Linux"
.else
MAKE_FLAGS+= UNAME_S="Darwin"
.endif
# alloca
BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11
INSTALLATION_DIRS+= bin share/applications share/pixmaps
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BUILD_DIRS}/gearsystem \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${FILESDIR}/gearsystem.desktop \
${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/platforms/ios/Gearsystem/Images.xcassets/AppIcon.appiconset/sms_icon_120.png \
${DESTDIR}${PREFIX}/share/pixmaps/gearsystem.png
.include "../../devel/SDL2/buildlink3.mk"
.if ${OPSYS} != "Darwin"
. include "../../graphics/glew/buildlink3.mk"
. include "../../graphics/MesaLib/buildlink3.mk"
.endif
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"