1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/comms/scrcpy/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

43 lines
1.0 KiB
Makefile

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>