aboutsummaryrefslogtreecommitdiff
path: root/emulators/libretro-kronos/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/libretro-kronos/Makefile')
-rw-r--r--emulators/libretro-kronos/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/emulators/libretro-kronos/Makefile b/emulators/libretro-kronos/Makefile
new file mode 100644
index 000000000000..c6358da06895
--- /dev/null
+++ b/emulators/libretro-kronos/Makefile
@@ -0,0 +1,60 @@
+# Created by Timothy Beyer <beyert@cs.ucr.edu>
+
+PORTNAME= libretro-kronos
+PORTVERSION= 0.20210617
+CATEGORIES= emulators games
+
+MAINTAINER= beyert@cs.ucr.edu
+COMMENT= Sega Saturn and ST-V emulator forked from uoYabause for libretro
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/yabause/COPYING
+
+LIB_DEPENDS= libGL.so:graphics/mesa-libs
+
+# standalone version uses solely cmake, whereas the retroarch core uses both
+# cmake and gmake
+USES= cmake:noninja compiler:c++11-lib gl gmake pkgconfig qt:5 sdl
+
+USE_GITHUB= yes
+GH_ACCOUNT= FCare
+GH_PROJECT= Kronos
+GH_TAGNAME= a39f95a
+
+USE_GL= gl glew glu
+
+USE_LDCONFIG= yes
+
+USE_QT= core opengl buildtools_build qmake_build
+
+USE_SDL= sdl2
+
+CMAKE_SOURCE_PATH= ${WRKSRC}/yabause
+
+MAKE_ARGS= USE_RTHREADS=1
+
+CFLAGS+= -I${LOCALBASE}/include
+CXXFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PLIST_FILES= lib/libretro/kronos_libretro.so
+
+pre-build:
+ cd ${CMAKE_SOURCE_PATH} && ${CMAKE_BIN} .
+ cd ${WRKSRC}/yabause/src && ${MAKE} m68kmake
+
+.include <bsd.port.pre.mk>
+
+do-build:
+ cd ${WRKSRC}/yabause/src/libretro && ${DO_MAKE_BUILD}
+
+post-patch:
+.if ${ARCH} != "amd64"
+ @${REINPLACE_CMD} -e "s/HAVE_SSE = 1/HAVE_SSE = 0/" ${WRKSRC}/yabause/src/libretro/Makefile
+.endif
+
+do-install:
+ ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
+ ${INSTALL_LIB} ${WRKSRC}/yabause/src/libretro/kronos_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
+
+.include <bsd.port.post.mk>