aboutsummaryrefslogtreecommitdiff
path: root/games/moonlight-embedded/Makefile
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2017-08-03 21:44:51 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2017-08-03 21:44:51 +0000
commit68f16288f72dbf76e9c0d4739948faae8cf9cf7a (patch)
tree6c8607e5e2a128dfcdf6db5f66cbe31748699255 /games/moonlight-embedded/Makefile
parent55ba325fbb06caab888edc12be4988ab7991e5d6 (diff)
downloadports-68f16288f72dbf76e9c0d4739948faae8cf9cf7a.tar.gz
ports-68f16288f72dbf76e9c0d4739948faae8cf9cf7a.zip
Notes
Diffstat (limited to 'games/moonlight-embedded/Makefile')
-rw-r--r--games/moonlight-embedded/Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/games/moonlight-embedded/Makefile b/games/moonlight-embedded/Makefile
new file mode 100644
index 000000000000..a60f257b74b1
--- /dev/null
+++ b/games/moonlight-embedded/Makefile
@@ -0,0 +1,56 @@
+# $FreeBSD$
+
+PORTNAME= moonlight-embedded
+PORTVERSION= 2.4.2
+DISTVERSIONPREFIX= v
+CATEGORIES= games
+
+MAINTAINER= tobik@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 ssl
+USE_GITHUB= yes
+GH_ACCOUNT= irtimmer
+GH_TUPLE= irtimmer:moonlight-common-c:a1bdb36766f8db5dc9cc0694c9a376f0dca3ab59:common/third_party/moonlight-common-c
+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@' \
+ ${WRKSRC}/docs/README.pod
+
+post-install:
+ @${MV} ${STAGEDIR}${PREFIX}/etc/moonlight.conf \
+ ${STAGEDIR}${PREFIX}/etc/moonlight.conf.sample
+
+.include <bsd.port.mk>