Added
Link Here
|
1 |
PORTNAME= moonlight-embedded-devel |
2 |
DISTVERSION= 2.7.2 |
3 |
CATEGORIES= games |
4 |
MASTER_SITES= https://github.com/armin-25689/moonlight-embedded/releases/download/v${DISTVERSION}/ |
5 |
|
6 |
MAINTAINER= lisp_25689@163.com |
7 |
COMMENT= Moonlight launched from command line and supported grab keyboard |
8 |
WWW= https://github.com/moonlight-stream/moonlight-embedded |
9 |
|
10 |
LICENSE= GPLv3+ |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ |
14 |
${LOCALBASE}/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml:graphics/wayland-protocols |
15 |
LIB_DEPENDS= libavahi-client.so:net/avahi-app \ |
16 |
libavcodec.so:multimedia/ffmpeg \ |
17 |
libcurl.so:ftp/curl \ |
18 |
libepoll-shim.so:devel/libepoll-shim \ |
19 |
libevdev.so:devel/libevdev \ |
20 |
libexpat.so:textproc/expat2 \ |
21 |
libopus.so:audio/opus \ |
22 |
libudev.so:devel/libudev-devd \ |
23 |
libuuid.so:misc/e2fsprogs-libuuid \ |
24 |
libva.so:multimedia/libva \ |
25 |
libvdpau.so:multimedia/libvdpau \ |
26 |
libwayland-client.so:graphics/wayland |
27 |
|
28 |
USES= cmake gl localbase:ldflags perl5 pkgconfig sdl ssl tar:xz xorg |
29 |
USE_LDCONFIG= yes |
30 |
USE_GL= egl glesv2 |
31 |
USE_PERL5= build |
32 |
USE_SDL= sdl2 |
33 |
USE_XORG= x11 |
34 |
|
35 |
NO_WRKSUBDIR= yes |
36 |
CFLAGS+= -DHAS_SOCKLEN_T=1 -I${LOCALBASE}/include/libepoll-shim/ |
37 |
LDFLAGS+= -lepoll-shim |
38 |
CMAKE_ARGS= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/etc/moonlight |
39 |
|
40 |
CONFLICTS_INSTALL= moonlight-embedded |
41 |
|
42 |
PLIST_FILES= bin/moonlight \ |
43 |
"@sample etc/moonlight/moonlight.conf.sample" \ |
44 |
share/man/man1/moonlight.1.gz \ |
45 |
share/moonlight/gamecontrollerdb.txt |
46 |
|
47 |
OPTIONS_DEFAULT= OSS |
48 |
CEC_DESC= Enable HDMI-CEC(TV controller) feature by using libcec.so |
49 |
OSS_DESC= Open Sound System support for embedded(not SDL) platform |
50 |
PULSE_DESC= PulseAudio sound server support for embedded(not SDL) platform |
51 |
OPTIONS_GROUP= OTHERS |
52 |
OPTIONS_GROUP_OTHERS= CEC |
53 |
OPTIONS_SINGLE= SOUND |
54 |
OPTIONS_SINGLE_SOUND= OSS PULSE |
55 |
CEC_CMAKE_BOOL= ENABLE_CEC |
56 |
CEC_LIB_DEPENDS= libcec.so:multimedia/libcec \ |
57 |
libp8-platform.so:devel/p8-platform |
58 |
OSS_CMAKE_ON= -DENABLE_PULSE:BOOL=false |
59 |
PULSE_CMAKE_BOOL= ENABLE_PULSE |
60 |
PULSE_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
61 |
|
62 |
post-extract: |
63 |
@${REINPLACE_CMD} -e 's@/usr/local@${PREFIX}@' \ |
64 |
${WRKSRC}/docs/README.pod |
65 |
@${REINPLACE_CMD} -e 's@/usr/local@${PREFIX}@' \ |
66 |
${WRKSRC}/src/config.c |
67 |
|
68 |
post-install: |
69 |
@${MV} ${STAGEDIR}${PREFIX}/etc/moonlight/moonlight.conf \ |
70 |
${STAGEDIR}${PREFIX}/etc/moonlight/moonlight.conf.sample |
71 |
|
72 |
.include <bsd.port.mk> |