blob: 096cebcd6b183299553eadfc75d0c84d3c7b8aa6 (
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= 2008.01.24
CATEGORIES= www
MASTER_SITES= http://www.arrakis.es/~rggi3/youtube-dl/
DISTNAME= youtube-dl-${PORTVERSION}
EXTRACT_SUFX=
EXTRACT_ONLY=
MAINTAINER= pankov_p@mail.ru
COMMENT= A program for downloading videos from YouTube.com
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_PYTHON= 2.4+
PLIST_FILES= bin/youtube-dl
OPTIONS= FFMPEG "Use ffmpeg for avi output" off \
FLV2MPEG4 "Use flv2mpeg4 for avi output" off
.include <bsd.port.pre.mk>
.if defined(WITH_FFMPEG) || defined(WITH_FLV2MPEG4)
EXTRA_PATCHES+= ${PATCHDIR}/conv2avi.patch
.endif
.if defined(WITH_FFMPEG)
.if defined (WITH_FLV2MPEG4)
IGNORE= cannot use WITH_FFMPEG and WITH_FLV2MPEG4 simultaneously
.endif
CONV2AVI_CMD= ${PREFIX}/bin/ffmpeg -y -i
RUN_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg
.elif defined (WITH_FLV2MPEG4)
CONV2AVI_CMD= ${PREFIX}/bin/flv2mpeg4
RUN_DEPENDS= flv2mpeg4:${PORTSDIR}/multimedia/flv2mpeg4
.endif
post-extract:
@${CP} ${DISTDIR}/youtube-dl-${PORTVERSION} ${WRKSRC}/youtube-dl
post-patch:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKSRC}/youtube-dl
.if defined(WITH_FFMPEG) || defined(WITH_FLV2MPEG4)
@${REINPLACE_CMD} -e 's|%%CONV2AVI_CMD%%|${CONV2AVI_CMD}|' ${WRKSRC}/youtube-dl
.endif
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl
.include <bsd.port.post.mk>
|