|
Lines 1-12
Link Here
|
| 1 |
# $FreeBSD: ports/www/youtube_dl/Makefile,v 1.66 2012/11/17 06:03:13 svnexp Exp $ |
1 |
# $FreeBSD: ports/www/youtube_dl/Makefile,v 1.66 2012/11/17 06:03:13 svnexp Exp $ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= youtube_dl |
3 |
PORTNAME= youtube_dl |
| 4 |
PORTVERSION= 2012.09.27 |
4 |
PORTVERSION= 2012.12.11 |
| 5 |
CATEGORIES= www |
5 |
CATEGORIES= www |
| 6 |
MASTER_SITES= GH \ |
6 |
MASTER_SITES= https://cloud.github.com/downloads/rg3/youtube-dl/ \ |
| 7 |
CRITICAL |
7 |
CRITICAL |
| 8 |
|
8 |
DISTNAME= youtube-dl.${PORTVERSION} |
| 9 |
EXTRACT_SUFX= # empty |
|
|
| 10 |
|
9 |
|
| 11 |
MAINTAINER= araujo@FreeBSD.org |
10 |
MAINTAINER= araujo@FreeBSD.org |
| 12 |
COMMENT= A program for downloading videos from YouTube.com |
11 |
COMMENT= A program for downloading videos from YouTube.com |
|
Lines 16-39
Link Here
|
| 16 |
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip |
15 |
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip |
| 17 |
|
16 |
|
| 18 |
USE_PYTHON_RUN= 2.6-2.7 |
17 |
USE_PYTHON_RUN= 2.6-2.7 |
| 19 |
ALL_TARGET= compile |
18 |
ALL_TARGET= youtube-dl |
| 20 |
USE_GITHUB= yes |
19 |
|
| 21 |
GH_ACCOUNT= rg3 |
20 |
OPTIONS_DEFINE= BASH RTMPDUMP FFMPEG |
| 22 |
GH_PROJECT= youtube-dl |
21 |
OPTIONS_DEFAULT=RTMPDUMP |
| 23 |
GH_COMMIT= b5de8af |
22 |
|
|
|
23 |
BASH_DESC= Install programmable completions for Bash |
| 24 |
RTMPDUMP_DESC= Use RTMPDUMP to download rtmp video streams |
| 25 |
FFMPEG_DESC= Use ffmpeg (required for audio conversion) |
| 24 |
|
26 |
|
| 25 |
PLIST_FILES= bin/youtube-dl |
27 |
PLIST_FILES= bin/youtube-dl |
|
|
28 |
MAN1= youtube-dl.1 |
| 26 |
|
29 |
|
| 27 |
OPTIONS= RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on \ |
30 |
WRKSRC= ${WRKDIR}/youtube-dl |
| 28 |
FFMPEG "Use ffmpeg (required for audio conversion)" off |
|
|
| 29 |
|
31 |
|
| 30 |
.include <bsd.port.options.mk> |
32 |
.include <bsd.port.options.mk> |
| 31 |
|
33 |
|
| 32 |
.if defined(WITH_RTMPDUMP) |
34 |
.if ${PORT_OPTIONS:MRTMPDUMP} |
| 33 |
RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump |
35 |
RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump |
| 34 |
.endif |
36 |
.endif |
| 35 |
|
37 |
|
| 36 |
.if defined(WITH_FFMPEG) |
38 |
.if ${PORT_OPTIONS:MBASH} |
|
|
39 |
ALL_TARGET+= youtube-dl.bash-completion |
| 40 |
PLIST_FILES+= etc/bash_completion.d/youtube-dl.sh |
| 41 |
.endif |
| 42 |
|
| 43 |
.if ${PORT_OPTIONS:MFFMPEG} |
| 37 |
# allow either multimedia/ffmpeg or multimedia/ffmpeg-devel |
44 |
# allow either multimedia/ffmpeg or multimedia/ffmpeg-devel |
| 38 |
. if exists(${LOCALBASE}/include/libavcodec/vda.h) |
45 |
. if exists(${LOCALBASE}/include/libavcodec/vda.h) |
| 39 |
RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg-devel |
46 |
RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg-devel |
|
Lines 44-51
Link Here
|
| 44 |
|
51 |
|
| 45 |
do-install: |
52 |
do-install: |
| 46 |
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl |
53 |
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl |
|
|
54 |
@${INSTALL_DATA} ${WRKSRC}/youtube-dl.1 ${PREFIX}/man/man1 |
| 55 |
.if ${PORT_OPTIONS:MBASH} |
| 56 |
${MKDIR} ${PREFIX}/etc/bash_completion.d |
| 57 |
${INSTALL_DATA} ${WRKSRC}/youtube-dl.bash-completion \ |
| 58 |
${PREFIX}/etc/bash_completion.d/youtube-dl.sh |
| 59 |
.endif |
| 47 |
|
60 |
|
| 48 |
.if defined(WITH_FFMPEG) |
61 |
.if ${PORT_OPTIONS:MFFMPEG} |
| 49 |
post-install: |
62 |
post-install: |
| 50 |
@${CAT} ${PKGMESSAGE} |
63 |
@${CAT} ${PKGMESSAGE} |
| 51 |
.endif |
64 |
.endif |