|
Lines 1-7
Link Here
|
| 1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= youtube_dl |
3 |
PORTNAME= youtube_dl |
| 4 |
PORTVERSION= 2015.03.03.1 |
4 |
PORTVERSION= 2015.05.04 |
| 5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
| 6 |
MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/ |
6 |
MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/ |
| 7 |
DISTNAME= youtube-dl-${PORTVERSION} |
7 |
DISTNAME= youtube-dl-${PORTVERSION} |
|
Lines 20-66
Link Here
|
| 20 |
MAKE_ARGS= PYTHON=${PYTHON_CMD} |
20 |
MAKE_ARGS= PYTHON=${PYTHON_CMD} |
| 21 |
USES= python:run |
21 |
USES= python:run |
| 22 |
NO_ARCH= yes |
22 |
NO_ARCH= yes |
|
|
23 |
WRKSRC= ${WRKDIR}/youtube-dl |
| 23 |
|
24 |
|
| 24 |
OPTIONS_DEFINE= BASH FISH RTMPDUMP FFMPEG ZSH |
25 |
OPTIONS_DEFINE= BASH FISH RTMPDUMP FFMPEG ZSH |
| 25 |
OPTIONS_DEFAULT=RTMPDUMP |
26 |
OPTIONS_DEFAULT=RTMPDUMP |
| 26 |
|
27 |
OPTIONS_SUB= yes |
| 27 |
FISH_DESC= Install programmable completions for Fish |
28 |
FISH_DESC= Install programmable completions for Fish |
| 28 |
RTMPDUMP_DESC= Use RTMPDUMP to download rtmp video streams |
29 |
RTMPDUMP_DESC= Use RTMPDUMP to download rtmp video streams |
| 29 |
|
30 |
|
| 30 |
PLIST_FILES= bin/youtube-dl \ |
31 |
PLIST_FILES= bin/youtube-dl \ |
| 31 |
man/man1/youtube-dl.1.gz |
32 |
man/man1/youtube-dl.1.gz \ |
|
|
33 |
%%BASH%%etc/bash_completion.d/youtube-dl.sh \ |
| 34 |
%%FISH%%share/fish/completions/youtube-dl.fish \ |
| 35 |
%%ZSH%%share/zsh/site-functions/_youtube-dl |
| 32 |
|
36 |
|
| 33 |
WRKSRC= ${WRKDIR}/youtube-dl |
|
|
| 34 |
|
| 35 |
BASH_PLIST_FILES= etc/bash_completion.d/youtube-dl.sh |
| 36 |
FISH_PLIST_FILES= share/fish/completions/youtube-dl.fish |
| 37 |
ZSH_PLIST_FILES= share/zsh/site-functions/_youtube-dl |
| 38 |
FFMPEG_RUN_DEPENDS= ${LOCALBASE}/bin/ffprobe:${PORTSDIR}/multimedia/ffmpeg |
37 |
FFMPEG_RUN_DEPENDS= ${LOCALBASE}/bin/ffprobe:${PORTSDIR}/multimedia/ffmpeg |
| 39 |
RTMPDUMP_RUN_DEPENDS= ${LOCALBASE}/bin/rtmpdump:${PORTSDIR}/multimedia/rtmpdump |
38 |
RTMPDUMP_RUN_DEPENDS= ${LOCALBASE}/bin/rtmpdump:${PORTSDIR}/multimedia/rtmpdump |
| 40 |
|
39 |
|
| 41 |
.include <bsd.port.options.mk> |
|
|
| 42 |
|
| 43 |
post-extract: |
40 |
post-extract: |
| 44 |
@# remove tarball provided version, build our own |
41 |
@# remove tarball provided version, build our own |
| 45 |
@${RM} -f ${WRKSRC}/youtube-dl |
42 |
@${RM} -f ${WRKSRC}/youtube-dl |
| 46 |
|
43 |
|
| 47 |
do-install: |
|
|
| 48 |
${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${STAGEDIR}${PREFIX}/bin/youtube-dl |
| 49 |
${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 |
| 50 |
.if ${PORT_OPTIONS:MBASH} |
| 51 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d |
| 52 |
${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \ |
| 53 |
${STAGEDIR}${PREFIX}/etc/bash_completion.d/youtube-dl.sh |
| 54 |
.endif |
| 55 |
.if ${PORT_OPTIONS:MFISH} |
| 56 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions |
| 57 |
${INSTALL_DATA} ${WRKSRC}/youtube-dl.fish \ |
| 58 |
${STAGEDIR}${PREFIX}/share/fish/completions/ |
| 59 |
.endif |
| 60 |
.if ${PORT_OPTIONS:MZSH} |
| 61 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions |
| 62 |
${INSTALL_DATA} ${WRKSRC}/youtube-dl.zsh \ |
| 63 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_youtube-dl |
| 64 |
.endif |
| 65 |
|
| 66 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |