Added
Link Here
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= libretro-flycast |
4 |
PORTVERSION= 0.20210608 |
5 |
CATEGORIES= emulators games |
6 |
|
7 |
MAINTAINER= beyert@cs.ucr.edu |
8 |
COMMENT= Standalone port of flycast to libretro |
9 |
|
10 |
LICENSE= GPLv2 |
11 |
#LICENSE_COMB= multi |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
ONLY_FOR_ARCHS= amd64 i386 |
15 |
|
16 |
LIB_DEPENDS+= libcurl.so:ftp/curl \ |
17 |
libasound.so:audio/alsa-lib \ |
18 |
libao.so:audio/libao \ |
19 |
libevdev.so:devel/libevdev \ |
20 |
libpulse.so:audio/pulseaudio \ |
21 |
libudev.so:devel/libudev-devd \ |
22 |
libvulkan.so:graphics/vulkan-loader |
23 |
|
24 |
USES= compiler:c++11-lib gmake gl xorg dos2unix |
25 |
USE_LDCONFIG= yes |
26 |
|
27 |
USE_GITHUB= yes |
28 |
GH_ACCOUNT= libretro |
29 |
GH_PROJECT= flycast |
30 |
GH_TAGNAME= 8e4fa54e |
31 |
|
32 |
USE_GL+= gl glew glu |
33 |
|
34 |
CFLAGS+= -I${LOCALBASE}/include |
35 |
CXXFLAGS+= -I${LOCALBASE}/include |
36 |
|
37 |
.include <bsd.port.pre.mk> |
38 |
|
39 |
DOS2UNIX_FILES= core/hw/bba/rtl8139c.h |
40 |
|
41 |
.if ${ARCH} == amd64 |
42 |
CFLAGS+= -DLOW_END |
43 |
CXXFLAGS+= -DLOW_END |
44 |
.endif |
45 |
|
46 |
LDFLAGS+= -L${LOCALBASE}/lib |
47 |
MAKE_ARGS= HAVE_VULKAN=0 HAVE_GENERIC_JIT=0 |
48 |
|
49 |
.if ${ARCH} == amd64 |
50 |
MAKE_ARGS+= WITH_DYNAREC=x86_64 |
51 |
.elif ${ARCH} == i386 |
52 |
MAKE_ARGS+= WITH_DYNAREC=x86 |
53 |
.endif |
54 |
|
55 |
PLIST_FILES= lib/libretro/flycast_libretro.so |
56 |
|
57 |
do-install: |
58 |
${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro; |
59 |
${INSTALL_LIB} ${WRKSRC}/flycast_libretro.so \ |
60 |
${STAGEDIR}/${PREFIX}/lib/libretro/flycast_libretro.so; |
61 |
|
62 |
.include <bsd.port.post.mk> |