blob: 9f5b93c885b84572c30f8ef69dad3aa0c2b77271 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# New ports collection makefile for: youtube_dl
# Date created: 2006-08-12
# Whom: Pankov Pavel <pankov_p@mail.ru>
#
# $FreeBSD$
#
PORTNAME= youtube_dl
PORTVERSION= 2012.02.27
CATEGORIES= www
MASTER_SITES= https://raw.github.com/rg3/youtube-dl/${PORTVERSION}/ \
CRITICAL
DISTNAME= youtube-dl
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
EXTRACT_ONLY= # empty
MAINTAINER= araujo@FreeBSD.org
COMMENT= A program for downloading videos from YouTube.com
LICENSE= GPLv2
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_PYTHON_RUN= 2.5-2.7
PLIST_FILES= bin/youtube-dl
OPTIONS= RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on \
FFMPEG "Use ffmpeg (required for audio conversion)" off
.include <bsd.port.options.mk>
.if defined(WITH_RTMPDUMP)
RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump
.endif
.if defined(WITH_FFMPEG)
# allow either multimedia/ffmpeg or multimedia/ffmpeg-devel
. if exists(${LOCALBASE}/include/libavcodec/vda.h)
RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg-devel
. else
RUN_DEPENDS+= ffprobe:${PORTSDIR}/multimedia/ffmpeg
. endif
.endif
post-extract:
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/youtube-dl
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl
.if defined(WITH_FFMPEG)
post-install:
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>
|