blob: 79b8ac7b0fa17a1f3b01e2c03917377a885566ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= scrcpy
DISTVERSIONPREFIX= v
DISTVERSION= 1.17
CATEGORIES= comms net
MASTER_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${DISTVERSIONFULL}/:server
DISTFILES= ${SERVER_FILE}:server
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= tagattie@FreeBSD.org
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= compiler:c++11-lang meson pkgconfig sdl
USE_GITHUB= yes
GH_ACCOUNT= Genymobile
USE_SDL= sdl2
MESON_ARGS= -Dportable=false \
-Dprebuilt_server=${WRKSRC}/${SERVER_FILE}
PLIST_FILES= bin/scrcpy man/man1/scrcpy.1.gz ${DATADIR}/scrcpy-server
PORTDOCS= FAQ.md README.md
OPTIONS_DEFINE= DOCS
SERVER_FILE= ${PORTNAME}-server-${DISTVERSIONFULL}
post-extract:
${CP} ${DISTDIR}/${SERVER_FILE} ${WRKSRC}
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|