mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
cf118ccf87
Reported by: lwhsu
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
PORTNAME= moonlight-embedded
|
|
DISTVERSION= 2.4.11
|
|
CATEGORIES= games
|
|
MASTER_SITES= https://github.com/irtimmer/moonlight-embedded/releases/download/v${DISTVERSION}/
|
|
|
|
PATCH_SITES= https://github.com/irtimmer/moonlight-embedded/commit/
|
|
PATCHFILES= 5b6639c8a76c4bbb5e0b4bcfe41b8df136608885.patch:-p1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Gamestream client
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
|
|
libcurl.so:ftp/curl \
|
|
libenet.so:net/enet \
|
|
libexpat.so:textproc/expat2 \
|
|
libopus.so:audio/opus \
|
|
libuuid.so:misc/e2fsprogs-libuuid
|
|
|
|
USES= cmake localbase:ldflags perl5 pkgconfig sdl ssl tar:xz
|
|
USE_LDCONFIG= yes
|
|
USE_PERL5= build
|
|
USE_SDL= sdl2
|
|
|
|
CFLAGS+= -DPREFIX="\\\"${PREFIX}\\\""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/(ALSA)/d' \
|
|
-e '/libpulse-simple/d' \
|
|
-e '/libcec/d' \
|
|
-e '/libevdev/d' -e 's@./src/input/evdev.c@@' \
|
|
-e '/libudev/d' -e 's@./src/input/udev.c@@' \
|
|
-e '/libva/d' \
|
|
-e '/vdpau/d' \
|
|
-e '/egl/d' \
|
|
-e '/glesv2/d' \
|
|
-e '/x11/d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
@${RM} ${WRKSRC}/src/loop.c
|
|
@${REINPLACE_CMD} -e '/avahi-client/d' -e 's@SHARED@STATIC@' \
|
|
-e 's@OpenSSL 1.0.2@OpenSSL@' -e '/^install(/d' \
|
|
${WRKSRC}/libgamestream/CMakeLists.txt
|
|
@${RM} ${WRKSRC}/libgamestream/discover.c
|
|
@${REINPLACE_CMD} -e 's@/etc/moonlight/moonlight.conf@${PREFIX}/etc/moonlight.conf@' \
|
|
-e 's@moonligt@moonlight@g' \
|
|
${WRKSRC}/docs/README.pod
|
|
|
|
post-install:
|
|
@${MV} ${STAGEDIR}${PREFIX}/etc/moonlight.conf \
|
|
${STAGEDIR}${PREFIX}/etc/moonlight.conf.sample
|
|
|
|
.include <bsd.port.mk>
|