ports/games/libretro-emux/files/patch-emux_libretro_Makefile.bsd
Loïc Bartoletti f22c8b9e32 [NEW PORTS]: games/libretro-* libretro cores for compatible emulators
Libretro is a simple API that allows for the creation of games and emulators. It needs a compatible libretro emulator to work (such as retroarch). This is a collection of 48 ports and a meta port to play retrogames.

libretro - meta port for libretro cores
libretro-2048 - 2048 puzzle
libretro-beetle_bsnes - Nintendo SNES emulator from Mednafen
libretro-beetle_gba - Nintendo Gameboy Advance emulator from Mednafen
libretro-beetle_lynx - Atari Lynx emulator from Mednafen
libretro-beetle_ngp - Neogeo Pocket emulator from Mednafen
libretro-beetle_pce_fast - NEC PC Engine emulator from Mednafen
libretro-beetle_pcfx - NEC PCFX emulator from Mednafen
libretro-beetle_psx - Sony Playstation emulator from Mednafen
libretro-beetle_supergrafx - NEC Supergrafx emulator from Mednafen
libretro-beetle_vb - Nintendo Virtual Boy emulator from Mednafen
libretro-beetle_wswan - Bandai Wonderswan emulator from Mednafen
libretro-bluemsx - MSX emulator
libretro-desmume2015 - Nintendo DS emulator
libretro-dosbox - MS-DOS emulator
libretro-emux - Emulator project support a couple of 8bit platforms
libretro-fbalpha - Final Burn Alpha, arcade emulator
libretro-fceumm - Nintendo NES emulator
libretro-fuse - ZX Spectrum emulator
libretro-gambatte - Nintendo Gameboy Color Emulator
libretro-genesis_plus_gx - Sega 8 and 16 bit multi-emulator
libretro-gpsp - Nintendo Gameboy emulator
libretro-gw - Nintendo Game & Watch emulator
libretro-handy - Atari Lynx emulator
libretro-hatari - Atari ST/STE/TT/Falcon emulator
libretro-mame2000 - Multiple Arcade Machine Emulator (0.37b5)
libretro-mame2003 - Multiple Arcade Machine Emulator (0.78)
libretro-mame2003_plus - Multiple Arcade Machine Emulator (0.78 with extra games)
libretro-mgba - Nintendo Gameboy Advance emulator
libretro-nestopia - Nintendo NES emulator
libretro-nxengine - Cave Story engine
libretro-o2em - Magnavox Odyssey 2 / Phillips Videopac emulator
libretro-opera - Panasonic 3DO emulator
libretro-pcsx_rearmed - Sony Playstion 1 emulator
libretro-picodrive - Sega 8 and 16 bit multi-emulator
libretro-prboom - Doom engine
libretro-prosystem - Atari 7800 / Prosystem emulator
libretro-quicknes - Nintendo NES emulator
libretro-scummvm - SCUMMVM backend
libretro-snes9x - Nintendo SNES emulator (Trunk)
libretro-snes9x2005 - Nintendo SNES emulator (1.43)
libretro-snes9x2010 - Nintendo SNES emulator (1.52)
libretro-stella2014 - Atari 2600 emulator
libretro-tgbdual - Nintendo Game Boy / Game Boy Color emulator
libretro-tyrquake - Quake engine
libretro-uae - Commodore Amiga emulator
libretro-vbanext - Nintendo Game Boy Advance emulator
libretro-vecx - GCE Vectrex emulator
libretro-virtualjaguar - Atari Jaguar emulator

PR:	244897
Submitted by:	Daniel Menelkir <menelkir@itroll.org>
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D24516
2020-04-29 05:27:55 +00:00

91 lines
2 KiB
Text

--- emux/libretro/Makefile.bsd.orig 2016-11-09 04:30:27 UTC
+++ emux/libretro/Makefile.bsd
@@ -0,0 +1,88 @@
+##############
+# Works on hosts Linux
+# apt-get install g++-multilib libc6-dev-i386
+
+##########################
+# Checks the host platform
+
+HOST_PLATFORM = linux
+ifeq ($(shell uname -a),)
+ HOST_PLATFORM = windows
+else ifneq ($(findstring MINGW,$(shell uname -a)),)
+ HOST_PLATFORM = windows
+else ifneq ($(findstring Darwin,$(shell uname -a)),)
+ HOST_PLATFORM = darwin
+else ifneq ($(findstring win,$(shell uname -a)),)
+ HOST_PLATFORM = windows
+endif
+
+#################
+# Toolchain setup
+
+AS = as
+AR = ar
+
+############
+# Extensions
+
+OBJEXT = .o
+SOEXT = .so
+
+################
+# Platform setup
+
+STATIC_LINKING = 0
+platform = unix
+PLATDEFS =
+PLATCFLAGS = -fpic -fstrict-aliasing
+PLATCXXFLAGS = -fpic -fstrict-aliasing
+PLATLDFLAGS = -shared -lm -Wl,-version-script=$(BUILD_DIR)/link.T -Wl,-no-undefined
+PLATLDXFLAGS = -shared -lm -Wl,-version-script=$(BUILD_DIR)/link.T -Wl,-no-undefined
+
+################
+# libretro setup
+
+RETRODEFS = -D__LIBRETRO__
+RETROCFLAGS =
+RETROCXXFLAGS =
+RETROLDFLAGS =
+RETROLDXFLAGS =
+
+#################
+# Final variables
+
+DEFINES = $(PLATDEFS) $(RETRODEFS)
+CFLAGS = $(PLATCFLAGS) $(RETROCFLAGS) $(DEFINES) $(INCLUDES)
+CXXFLAGS = $(PLATCXXFLAGS) $(RETROCXXFLAGS) $(DEFINES) $(INCLUDES)
+LDFLAGS = $(PLATLDFLAGS) $(RETROLDFLAGS)
+LDXFLAGS = $(PLATLDXFLAGS) $(RETROLDXFLAGS)
+
+########
+# Tuning
+
+ifneq ($(DEBUG),)
+ CFLAGS += -O0 -g
+ CXXFLAGS += -O0 -g
+else
+ CFLAGS += -O3 -DNDEBUG
+ CXXFLAGS += -O3 -DNDEBUG
+endif
+
+ifneq ($(LOG_PERFORMANCE),)
+ CFLAGS += -DLOG_PERFORMANCE
+ CXXFLAGS += -DLOG_PERFORMANCE
+endif
+
+####################################
+# Variable setup for Makefile.common
+
+CORE_DIR ?= ..
+BUILD_DIR ?= .
+INCLUDES =
+
+include $(BUILD_DIR)/Makefile.common
+
+###############
+# Include rules
+
+include $(BUILD_DIR)/Makefile.rules