1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/www/yt-dlp/Makefile
Yuri Victorovich 655dfcc40c www/yt-dlp: update 2023.12.30 → 2024.03.10
Reported by:	portscout
2024-03-11 02:17:28 -07:00

52 lines
1.8 KiB
Makefile

PORTNAME= yt-dlp
DISTVERSION= 2024.03.10
CATEGORIES= www
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Command-line program for downloading videos from various platforms
WWW= https://github.com/yt-dlp/yt-dlp
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>0:archivers/py-brotli@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodomex>0:security/py-pycryptodomex@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.17:net/py-urllib3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}websockets>=12.0:devel/py-websockets@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
USES= gmake python shebangfix
SHEBANG_GLOB= devscripts/*.py
MAKE_ARGS= PYTHON=${PYTHON_CMD} \
MANDIR=${PREFIX}/share/man
NO_ARCH= yes
OPTIONS_DEFINE= FFMPEG SECRETSTORAGE SYMLINK
OPTIONS_DEFAULT= FFMPEG SYMLINK
OPTIONS_SUB= yes
FFMPEG_RUN_DEPENDS= ffprobe:multimedia/ffmpeg
SECRETSTORAGE_DESC= Build with ${PYTHON_PKGNAMEPREFIX}SecretStorage for secretstorage option
SECRETSTORAGE_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}SecretStorage>0:security/py-SecretStorage@${PY_FLAVOR}
SECRETSTORAGE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}SecretStorage>0:security/py-SecretStorage@${PY_FLAVOR}
SYMLINK_DESC= Install youtube-dl symbolic link for executable
SYMLINK_CONFLICTS= youtube_dl
post-install-SYMLINK-on:
@${RLN} ${STAGEDIR}${PREFIX}/bin/yt-dlp ${STAGEDIR}${PREFIX}/bin/youtube-dl
.include <bsd.port.mk>