1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/www/youtube_dl/Makefile
Kurt Jaeger 76d53b7bc3 www/youtube_dl: 2014.02.22.1 -> 2014.07.21
- new WWW: https://yt-dl.org/ in pkg-descr

PR:		191640
Submitted by:	cjpugmed@gmail.com
Approved by:	maintainer timeout
2014-07-22 11:04:04 +00:00

53 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= youtube_dl
PORTVERSION= 2014.07.21
CATEGORIES= www
MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/
DISTNAME= youtube-dl-${PORTVERSION}
MAINTAINER= araujo@FreeBSD.org
COMMENT= Program for downloading videos from YouTube.com
LICENSE= UNLICENSE
LICENSE_NAME= The Unlicense
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
USE_PYTHON_RUN= 2
ALL_TARGET= youtube-dl
OPTIONS_DEFINE= BASH RTMPDUMP FFMPEG
OPTIONS_DEFAULT=RTMPDUMP
BASH_DESC= Install programmable completions for Bash
RTMPDUMP_DESC= Use RTMPDUMP to download rtmp video streams
PLIST_FILES= bin/youtube-dl \
man/man1/youtube-dl.1.gz
WRKSRC= ${WRKDIR}/youtube-dl
BASH_PLIST_FILES= etc/bash_completion.d/youtube-dl.sh
FFMPEG_RUN_DEPENDS= ${LOCALBASE}/bin/ffprobe:${PORTSDIR}/multimedia/ffmpeg
RTMPDUMP_RUN_DEPENDS= ${LOCALBASE}/bin/rtmpdump:${PORTSDIR}/multimedia/rtmpdump
.include <bsd.port.options.mk>
post-extract:
@# remove tarball provided version, build our own
@${RM} -f ${WRKSRC}/youtube-dl
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${STAGEDIR}${PREFIX}/bin/youtube-dl
${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${STAGEDIR}${PREFIX}/man/man1/
.if ${PORT_OPTIONS:MBASH}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \
${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh
.endif
.include <bsd.port.mk>