blob: c6358da0689590fc9fab8e83be99b77bbb543fe6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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>
|