diff options
author | Timothy Beyer <beyert@cs.ucr.edu> | 2022-06-27 07:01:29 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2022-06-27 07:04:02 +0000 |
commit | 68b199480328b8073a1ff97f2b62597010cf8137 (patch) | |
tree | cb92007aeb1df5be9b0b26206aaa5f8b3f34f12a /emulators/libretro-kronos/Makefile | |
parent | 93d4c539c9b9060fb4cd99f4e2efda0d4bc2597d (diff) | |
download | ports-68b199480328b8073a1ff97f2b62597010cf8137.tar.gz ports-68b199480328b8073a1ff97f2b62597010cf8137.zip |
Add emulators/libretro-kronos
Sega Saturn and ST-V emulator forked from uoYabause for libretro
PR: 257171
Diffstat (limited to 'emulators/libretro-kronos/Makefile')
-rw-r--r-- | emulators/libretro-kronos/Makefile | 60 |
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> |