aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2019-01-27 17:32:14 +0800
committertcberner <tcberner@FreeBSD.org>2019-01-27 17:32:14 +0800
commit62d0f10b1e2f355996e24869df9aa44227a8674b (patch)
treec7e3868d95038ce0255a6e7447939ff02f6fea34 /comms
parent14e8660ac3cb0b86c7904bcde1f2f7dd7b954d6f (diff)
downloadfreebsd-ports-gnome-62d0f10b1e2f355996e24869df9aa44227a8674b.tar.gz
freebsd-ports-gnome-62d0f10b1e2f355996e24869df9aa44227a8674b.tar.zst
freebsd-ports-gnome-62d0f10b1e2f355996e24869df9aa44227a8674b.zip
comms/scrcpy: New port -- Display and control your Android device
Scrcpy provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access. https://github.com/Genymobile/scrcpy PR: 235146 Submitted by: Hiroki Tagato <tagattie@yandex.com>
Diffstat (limited to 'comms')
-rw-r--r--comms/Makefile1
-rw-r--r--comms/scrcpy/Makefile49
-rw-r--r--comms/scrcpy/distinfo5
-rw-r--r--comms/scrcpy/pkg-descr4
4 files changed, 59 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile
index bc9dcc97b1ec..1ed74a5c940d 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -158,6 +158,7 @@
SUBDIR += rubygem-serialport
SUBDIR += rxtx
SUBDIR += scmxx
+ SUBDIR += scrcpy
SUBDIR += sdr-wspr
SUBDIR += ser2net
SUBDIR += serialoverip
diff --git a/comms/scrcpy/Makefile b/comms/scrcpy/Makefile
new file mode 100644
index 000000000000..092cef51d04f
--- /dev/null
+++ b/comms/scrcpy/Makefile
@@ -0,0 +1,49 @@
+# $FreeBSD$
+
+PORTNAME= scrcpy
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.6
+CATEGORIES= comms net
+MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/:jar
+DISTFILES= ${DIST_JARFILE}:jar
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= tagattie@yandex.com
+COMMENT= Display and control your Android device
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
+RUN_DEPENDS= adb:devel/android-tools-adb
+
+USES= meson pkgconfig
+USE_SDL= sdl2
+
+USE_GITHUB= yes
+GH_ACCOUNT= Genymobile
+
+MESON_ARGS= -Dbuild_server=false
+
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= README.md FAQ.md
+
+DIST_JARFILE= ${PORTNAME}-server-${DISTVERSIONPREFIX}${DISTVERSION}.jar
+INSTALL_JARFILE= ${DIST_JARFILE:C/(server).*/\1/}.jar
+PLIST_FILES= bin/scrcpy ${DATADIR}/${INSTALL_JARFILE}
+
+post-extract:
+ ${CP} ${_DISTDIR}/${DIST_JARFILE} ${WRKSRC}/${INSTALL_JARFILE}
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${INSTALL_JARFILE} ${STAGEDIR}${DATADIR}
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${INSTALL_MAN} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/comms/scrcpy/distinfo b/comms/scrcpy/distinfo
new file mode 100644
index 000000000000..829a45aa5d9b
--- /dev/null
+++ b/comms/scrcpy/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1548144750
+SHA256 (scrcpy-server-v1.6.jar) = 08df924bf6d10943df9eaacfff548a99871ebfca4641f8c7ddddb73f27cb905b
+SIZE (scrcpy-server-v1.6.jar) = 19346
+SHA256 (Genymobile-scrcpy-v1.6_GH0.tar.gz) = b41925d087420cbe24d7fa901cbb537f492c28c50d875fcf738e7fe4b26d7d05
+SIZE (Genymobile-scrcpy-v1.6_GH0.tar.gz) = 178086
diff --git a/comms/scrcpy/pkg-descr b/comms/scrcpy/pkg-descr
new file mode 100644
index 000000000000..8abecafec514
--- /dev/null
+++ b/comms/scrcpy/pkg-descr
@@ -0,0 +1,4 @@
+Scrcpy provides display and control of Android devices connected on
+USB (or over TCP/IP). It does not require any root access.
+
+WWW: https://github.com/Genymobile/scrcpy