PORTNAME=	libretro
PORTVERSION=	0.4
CATEGORIES=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Meta-port for libretro cores
WWW=		https://www.libretro.com

USES=		metaport


OPTIONS_DEFINE=
OPTIONS_DEFINE+=	2048
OPTIONS_DEFINE+=	A5200
OPTIONS_DEFINE+=	BEETLE_PSX
OPTIONS_DEFINE+=	BLUEMSX
OPTIONS_DEFINE+=	BOOM3
OPTIONS_DEFINE+=	BSNES
OPTIONS_DEFINE+=	CAP32
OPTIONS_DEFINE+=	DESMUME
OPTIONS_DEFINE+=	DESMUME2015
OPTIONS_DEFINE+=	DOSBOX
OPTIONS_DEFINE+=	EMUX
OPTIONS_DEFINE+=	FBALPHA2012
OPTIONS_DEFINE+=	FBNEO
OPTIONS_DEFINE+=	FCEUMM
OPTIONS_DEFINE+=	FLYCAST
OPTIONS_DEFINE+=	FMSX
OPTIONS_DEFINE+=	FREEINTV
OPTIONS_DEFINE+=	FUSE
OPTIONS_DEFINE+=	GAMBATTE
OPTIONS_DEFINE+=	GENESIS_PLUS_GX
OPTIONS_DEFINE+=	GPSP
OPTIONS_DEFINE+=	GW
OPTIONS_DEFINE+=	HANDY
OPTIONS_DEFINE+=	HATARI
OPTIONS_DEFINE+=	KRONOS
OPTIONS_DEFINE+=	MAME
OPTIONS_DEFINE+=	MAME2000
OPTIONS_DEFINE+=	MAME2003
OPTIONS_DEFINE+=	MAME2003_PLUS
OPTIONS_DEFINE+=	MEDNAFEN_BSNES
OPTIONS_DEFINE+=	MEDNAFEN_GBA
OPTIONS_DEFINE+=	MEDNAFEN_LYNX
OPTIONS_DEFINE+=	MEDNAFEN_NGP
OPTIONS_DEFINE+=	MEDNAFEN_PCE
OPTIONS_DEFINE+=	MEDNAFEN_PCE_FAST
OPTIONS_DEFINE+=	MEDNAFEN_PCFX
OPTIONS_DEFINE+=	MEDNAFEN_SATURN
OPTIONS_DEFINE+=	MEDNAFEN_SUPERGRAFX
OPTIONS_DEFINE+=	MEDNAFEN_VB
OPTIONS_DEFINE+=	MEDNAFEN_WSWAN
OPTIONS_DEFINE+=	MELONDS
OPTIONS_DEFINE+=	MGBA
OPTIONS_DEFINE+=	MU
OPTIONS_DEFINE+=	NESTOPIA
OPTIONS_DEFINE+=	NXENGINE
OPTIONS_DEFINE+=	O2EM
OPTIONS_DEFINE+=	OPERA
OPTIONS_DEFINE+=	PARALLEL_N64
OPTIONS_DEFINE+=	PCSX_REARMED
OPTIONS_DEFINE+=	PCSX2
OPTIONS_DEFINE_amd64+=	PICODRIVE
OPTIONS_DEFINE_i386+=	PICODRIVE
OPTIONS_DEFINE+=	PLAY
OPTIONS_DEFINE+=	PPSSPP
OPTIONS_DEFINE+=	PRBOOM
OPTIONS_DEFINE+=	PROSYSTEM
OPTIONS_DEFINE+=	PUAE
OPTIONS_DEFINE+=	PX68K
OPTIONS_DEFINE+=	QUICKNES
OPTIONS_DEFINE+=	REICAST
OPTIONS_DEFINE+=	SCUMMVM
OPTIONS_DEFINE+=	SNES9X
OPTIONS_DEFINE+=	SNES9X2005
OPTIONS_DEFINE+=	SNES9X2010
OPTIONS_DEFINE+=	STELLA2014
OPTIONS_DEFINE+=	TGBDUAL
OPTIONS_DEFINE+=	TYRQUAKE
OPTIONS_DEFINE+=	VBA_NEXT
OPTIONS_DEFINE+=	VECX
OPTIONS_DEFINE+=	VICE_X128
OPTIONS_DEFINE+=	VICE_X64
OPTIONS_DEFINE+=	VICE_X64SC
OPTIONS_DEFINE+=	VICE_XCBM2
OPTIONS_DEFINE+=	VICE_XCBM5X0
OPTIONS_DEFINE+=	VICE_XPET
OPTIONS_DEFINE+=	VICE_XPLUS4
OPTIONS_DEFINE+=	VICE_XSCPU64
OPTIONS_DEFINE+=	VICE_XVIC
OPTIONS_DEFINE+=	VIRTUALJAGUAR
OPTIONS_DEFINE+=	XRICK
OPTIONS_DEFINE+=	YABAUSE

OPTIONS_DEFAULT=	2048 \
			A5200 \
			BEETLE_PSX \
			BLUEMSX \
			BOOM3 \
			BSNES \
			CAP32 \
			DESMUME \
			DESMUME2015 \
			DOSBOX \
			DOSBOX_CORE \
			EMUX \
			FBALPHA2012 \
			FBNEO \
			FCEUMM \
			FLYCAST \
			FMSX \
			FREEINTV \
			FUSE \
			GAMBATTE \
			GENESIS_PLUS_GX \
			GPSP \
			GW \
			HANDY \
			HATARI \
			KRONOS \
			MAME \
			MAME2000 \
			MAME2003 \
			MEDNAFEN_BSNES \
			MEDNAFEN_GBA \
			MEDNAFEN_LYNX \
			MEDNAFEN_NGP \
			MEDNAFEN_PCE \
			MEDNAFEN_PCFX \
			MEDNAFEN_SATURN \
			MEDNAFEN_SUPERGRAFX \
			MEDNAFEN_VB \
			MEDNAFEN_WSWAN \
			MELONDS \
			MGBA \
			MU \
			NESTOPIA \
			NXENGINE \
			O2EM \
			OPERA \
			PCSX_REARMED \
			PCSX2 \
			PICODRIVE \
			PLAY \
			PPSSPP \
			PRBOOM \
			PROSYSTEM \
			PUAE \
			PX68K \
			QUICKNES \
			REICAST \
			SNES9X \
			STELLA2014 \
			TGBDUAL \
			TYRQUAKE \
			VBA_NEXT \
			VECX \
			VICE_X128 \
			VICE_X64 \
			VICE_X64SC \
			VICE_XCBM2 \
			VICE_XCBM5X0 \
			VICE_XPET \
			VICE_XPLUS4 \
			VICE_XSCPU64 \
			VICE_XVIC \
			VIRTUALJAGUAR \
			XRICK \
			YABAUSE


2048_DESC=			2048 puzzle game
A5200_DESC=			Atari 5200
BEETLE_PSX_DESC=		Beetle GameBoy Advance
BLUEMSX_DESC=			MSX1/2/Turbo-R
BOOM3_DESC=			DHEWM3 (Doom 3)
BSNES_DESC=			bSNES
CAP32_DESC=			Caprice32 - Amstrad CPC Emulator
DESMUME_DESC=			Nintendo DS
DESMUME2015_DESC=		Nintendo DS (SVN circa 2015)
DOSBOX_DESC=			MS-DOS
EMUX_DESC=			Multiple 8-Bit Console (Chip-8, GameBoy, NES, Mastersystem)
FBALPHA2012_DESC=		Final Burn Alpha
FBNEO_DESC=			Final Burn Neo
FCEUMM_DESC=			Nintendo NES/Famicon
FLYCAST_DESC=			Flycast
FMSX_DESC=			MSX Emulator
FREEINTV_DESC=			Mattel Intellivision
FUSE_DESC=			Sinclair ZX-Spectrum
GAMBATTE_DESC=			Nintendo GameBoy Color
GENESIS_PLUS_GX_DESC=		Sega 8-bit/16-bit Consoles and peripherals
GPSP_DESC=			Nintendo GameBoy
GW_DESC=			Nintendo Game & Watch
HANDY_DESC=			Atari Lynx
HATARI_DESC=			Atari ST/STE/TT/Falcon
KRONOS_DESC=			Sega Saturn and ST-V (forked from uoYabause)
MAME_DESC=			M.A.M.E (current)
MAME2000_DESC=			M.A.M.E 0.37b5
MAME2003_DESC=			M.A.M.E 0.78
MAME2003_PLUS_DESC=		M.A.M.E 0.78 with extra additions
MEDNAFEN_BSNES_DESC=		Mednafen Super Nintendo
MEDNAFEN_GBA_DESC=		Mednafen GameBoy Advance
MEDNAFEN_LYNX_DESC=		Mednafen Atari Lynx
MEDNAFEN_NGP_DESC=		Mednafen SNK Neo Geo Pocket
MEDNAFEN_PCE_DESC=		Mednafen NEC PC-Engine/Turbografx-16
MEDNAFEN_PCE_FAST_DESC=		Mednafen NEC PC-Engine/Turbografx-16 (fast)
MEDNAFEN_PCFX_DESC=		Mednafen NEC PC-FX
MEDNAFEN_SATURN_DESC=		Mednafen Saturn
MEDNAFEN_SUPERGRAFX_DESC=	Mednafen NEC Supergrafx
MEDNAFEN_VB_DESC=		Mednafen Nintendo Virtual Boy
MEDNAFEN_WSWAN_DESC=		Mednafen Nintendo Bandai Wonderswan
MELONDS_DESC=			DS Emulator
MGBA_DESC=			Nintendo Gameboy Advance
MU_DESC=			PalmOS emulator
NESTOPIA_DESC=			Nintendo NES/Famicon
NXENGINE_DESC=			Cave Story game
O2EM_DESC=			Magnavox Odyssey 2 / Philips Videopac
OPERA_DESC=			Panasonic 3DO
PARALLEL_N64_DESC=		Improved Nintendo 64
PCSX_REARMED_DESC=		Sony Playstation
PCSX2_DESC=			PCSX2
PICODRIVE_DESC=			Sega Genesis/Megadrive with peripherals
PLAY_DESC=			PlayStation 2 Emulator
PPSSPP_DESC=			PSP emulator
PRBOOM_DESC=			Doom game
PROSYSTEM_DESC=			Atari 7800
PUAE_DESC=			Commodore Amiga
PX68K_DESC=			SHARP X68000
QUICKNES_DESC=			Nintendo NES
REICAST_DESC=			Reicast
SCUMMVM_DESC=			Script Creation Utility for Maniac Mansion Virtual Machine
SNES9X_DESC=			Nintendo Super NES/Super Famicon (Trunk)
SNES9X2005_DESC=		Nintendo Super NES/Super Famicon (1.43)
SNES9X2010_DESC=		Nintendo Super NES/Super Famicon (1.52)
STELLA2014_DESC=		Atari 2600
TGBDUAL_DESC=			Nintendo GameBoy and GameBoy Color (with link support)
TYRQUAKE_DESC=			Quake game
VBA_NEXT_DESC=			Nintendo GameBoy Advance
VECX_DESC=			GCE Vectrex
VICE_X128_DESC=           	Commodore C128
VICE_X64_DESC=            	Commodore C64
VICE_X64SC_DESC=          	Commodore C64 (focused on accuracy)
VICE_XCBM2_DESC=          	Commodore CBM-6x0/7x0
VICE_XCBM5X0_DESC=        	Commodore C64 (focused on accuracy)
VICE_XPET_DESC=           	Commodore PET
VICE_XPLUS4_DESC=         	Commodore PLUS4
VICE_XSCPU64_DESC=        	Commodore C64+SuperCPU
VICE_XVIC_DESC=           	Commodore VIC20
VIRTUALJAGUAR_DESC=		Atari Jaguar
XRICK_DESC=			Rick Dangerous
YABAUSE_DESC=			Sega Saturn Emulator

2048_RUN_DEPENDS=		libretro-2048>=0:games/libretro-2048
A5200_DESC=			libretro-a5200>=0:games/libretro-a5200
BEETLE_PSX_RUN_DEPENDS=		libretro-beetle_psx>=0:games/libretro-beetle_psx
BLUEMSX_RUN_DEPENDS=		libretro-bluemsx>=0:games/libretro-bluemsx
BOOM3_RUN_DEPENDS=		libretro-boom3>=0:games/libretro-boom3
BSNES_RUN_DEPENDS=		libretro-bsnes>=0:emulators/libretro-bsnes
CAP32_RUN_DEPENDS=		libretro-cap32>=0:games/libretro-cap32
DESMUME_RUN_DEPENDS=		libretro-desmume>=0:games/libretro-desmume
DESMUME2015_RUN_DEPENDS=	libretro-desmume2015>=0:games/libretro-desmume2015
DOSBOX_RUN_DEPENDS=		libretro-dosbox>=0:games/libretro-dosbox
EMUX_RUN_DEPENDS=		libretro-emux>=0:games/libretro-emux
FBALPHA2012_RUN_DEPENDS=	libretro-fbalpha2012>=0:games/libretro-fbalpha2012
FBNEO_RUN_DEPENDS=		libretro-fbneo>=0:games/libretro-fbneo
FCEUMM_RUN_DEPENDS=		libretro-fceumm>=0:games/libretro-fceumm
FLYCAST_RUN_DEPENDS=		libretro-flycast>=0:emulators/libretro-flycast
FMSX_RUN_DEPENDS=		libretro-fmsx>=0:games/libretro-fmsx
FREEINTV_RUN_DEPENDS=		libretro-freeintv>=0:games/libretro-freeintv
FUSE_RUN_DEPENDS=		libretro-fuse>=0:games/libretro-fuse
GAMBATTE_RUN_DEPENDS=		libretro-gambatte>=0:games/libretro-gambatte
GENESIS_PLUS_GX_RUN_DEPENDS=	libretro-genesis_plus_gx>=0:games/libretro-genesis_plus_gx
GPSP_RUN_DEPENDS=		libretro-gpsp>=0:games/libretro-gpsp
GW_RUN_DEPENDS=			libretro-gw>=0:games/libretro-gw
HANDY_RUN_DEPENDS=		libretro-handy>=0:games/libretro-handy
HATARI_RUN_DEPENDS=		libretro-hatari>=0:games/libretro-hatari
KRONOS_RUN_DEPENDS=		libretro-kronos>=0:emulators/libretro-kronos
MAME2000_RUN_DEPENDS=		libretro-mame2000>=0:games/libretro-mame2000
MAME2003_RUN_DEPENDS=		libretro-mame2003>=0:games/libretro-mame2003
MAME2003_PLUS_RUN_DEPENDS=	libretro-mame2003_plus>=0:games/libretro-mame2003_plus
MEDNAFEN_BSNES_RUN_DEPENDS=	libretro-mednafen_bsnes>=0:games/libretro-mednafen_bsnes
MEDNAFEN_GBA_RUN_DEPENDS=	libretro-mednafen_gba>=0:games/libretro-mednafen_gba
MEDNAFEN_LYNX_RUN_DEPENDS=	libretro-mednafen_lynx>=0:games/libretro-mednafen_lynx
MEDNAFEN_NGP_RUN_DEPENDS=	libretro-mednafen_ngp>=0:games/libretro-mednafen_ngp
MEDNAFEN_PCE_RUN_DEPENDS=	libretro-mednafen_pce>=0:games/libretro-mednafen_pce
MEDNAFEN_PCE_FAST_RUN_DEPENDS=	libretro-mednafen_pce_fast>=0:games/libretro-mednafen_pce_fast
MEDNAFEN_PCFX_RUN_DEPENDS=	libretro-mednafen_pcfx>=0:games/libretro-mednafen_pcfx
MEDNAFEN_SATURN_RUN_DEPENDS=	libretro-mednafen_saturn>=0:games/libretro-mednafen_saturn
MEDNAFEN_SUPERGRAFX_RUN_DEPENDS=libretro-mednafen_supergrafx>=0:games/libretro-mednafen_supergrafx
MEDNAFEN_VB_RUN_DEPENDS=	libretro-mednafen_vb>=0:games/libretro-mednafen_vb
MEDNAFEN_WSWAN_RUN_DEPENDS=	libretro-mednafen_wswan>=0:games/libretro-mednafen_wswan
MELONDS_RUN_DEPENDS=		libretro-melonds>=0:games/libretro-melonds
MGBA_RUN_DEPENDS=		libretro-mgba>=0:games/libretro-mgba
MU_RUN_DEPENDS=			libretro-mu>=0:games/libretro-mu
NESTOPIA_RUN_DEPENDS=		libretro-nestopia>=0:games/libretro-nestopia
NXENGINE_RUN_DEPENDS=		libretro-nxengine>=0:games/libretro-nxengine
O2EM_RUN_DEPENDS=		libretro-o2em>=0:games/libretro-o2em
OPERA_RUN_DEPENDS=		libretro-opera>=0:games/libretro-opera
PARALLEL_N64_RUN_DEPENDS=	libretro-parallel_n64>=0:games/libretro-parallel_n64
PCSX_REARMED_RUN_DEPENDS=	libretro-pcsx_rearmed>=0:games/libretro-pcsx_rearmed
PCSX2_RUN_DEPENDS=		libretro-pcsx2>=0:emulators/libretro-pcsx2
PICODRIVE_RUN_DEPENDS=		libretro-picodrive>=0:games/libretro-picodrive
PLAY_RUN_DEPENDS=		libretro-play>=0:games/libretro-play
PPSSPP_RUN_DEPENDS=		libretro-ppsspp>=0:emulators/libretro-ppsspp
PRBOOM_RUN_DEPENDS=		libretro-prboom>=0:games/libretro-prboom
PROSYSTEM_RUN_DEPENDS=		libretro-prosystem>=0:games/libretro-prosystem
PUAE_RUN_DEPENDS=		libretro-puae>=0:games/libretro-puae
QUICKNES_RUN_DEPENDS=		libretro-quicknes>=0:games/libretro-quicknes
REICAST_RUN_DEPENDS=		libretro-reicast>=0:emulators/libretro-reicast
SCUMMVM_RUN_DEPENDS=		libretro-scummvm>=0:games/libretro-scummvm
SNES9X_RUN_DEPENDS=		libretro-snes9x>=0:games/libretro-snes9x
SNES9X2005_RUN_DEPENDS=		libretro-snes9x2005>=0:games/libretro-snes9x2005
SNES9X2010_RUN_DEPENDS=		libretro-snes9x2010>=0:games/libretro-snes9x2010
STELLA2014_RUN_DEPENDS=		libretro-stella2014>=0:games/libretro-stella2014
TGBDUAL_RUN_DEPENDS=		libretro-tgbdual>=0:games/libretro-tgbdual
TYRQUAKE_RUN_DEPENDS=		libretro-tyrquake>=0:games/libretro-tyrquake
VBA_NEXT_RUN_DEPENDS=		libretro-vba_next>=0:games/libretro-vba_next
VECX_RUN_DEPENDS=		libretro-vecx>=0:games/libretro-vecx
VICE_X128_RUN_DEPENDS=          libretro-vice-x128>=0:emulators/libretro-vice@x128
VICE_X64_RUN_DEPENDS=           libretro-vice-x64>=0:emulators/libretro-vice@x64
VICE_X64SC_RUN_DEPENDS=         libretro-vice-x64sc>=0:emulators/libretro-vice@x64sc
VICE_XCBM2_RUN_DEPENDS=         libretro-vice-xcbm2>=0:emulators/libretro-vice@xcbm2
VICE_XCBM5X0_RUN_DEPENDS=       libretro-vice-xcbm5x0>=0:emulators/libretro-vice@xcbm5x0
VICE_XPET_RUN_DEPENDS=          libretro-vice-xpet>=0:emulators/libretro-vice@xpet
VICE_XPLUS4_RUN_DEPENDS=        libretro-vice-xplus4>=0:emulators/libretro-vice@xplus4
VICE_XSCPU64_RUN_DEPENDS=       libretro-vice-xscpu64>=0:emulators/libretro-vice@xscpu64
VICE_XVIC_RUN_DEPENDS=          libretro-vice-xvic>=0:emulators/libretro-vice@xvic
VIRTUALJAGUAR_RUN_DEPENDS=	libretro-virtualjaguar>=0:games/libretro-virtualjaguar
XRICK_RUN_DEPENDS=		libretro-xrick>=0:games/libretro-xrick
YABAUSE_RUN_DEPENDS=		libretro-yabause>=0:games/libretro-yabause

.include <bsd.port.mk>
