2006-08-16 14:51:40 +02:00
|
|
|
# New ports collection makefile for: youtube_dl
|
|
|
|
# Date created: 2006-08-12
|
|
|
|
# Whom: Pankov Pavel <pankov_p@mail.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= youtube_dl
|
2012-03-04 00:06:38 +01:00
|
|
|
PORTVERSION= 2012.02.27
|
2006-08-16 14:51:40 +02:00
|
|
|
CATEGORIES= www
|
2012-03-06 12:43:58 +01:00
|
|
|
MASTER_SITES= https://raw.github.com/rg3/youtube-dl/${PORTVERSION}/ \
|
|
|
|
CRITICAL
|
2009-06-14 22:37:44 +02:00
|
|
|
DISTNAME= youtube-dl
|
2010-07-18 17:54:37 +02:00
|
|
|
EXTRACT_SUFX= # empty
|
2009-06-14 22:37:44 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
2010-07-18 17:54:37 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
2006-08-16 14:51:40 +02:00
|
|
|
|
2008-11-29 15:12:01 +01:00
|
|
|
MAINTAINER= araujo@FreeBSD.org
|
2006-08-16 14:51:40 +02:00
|
|
|
COMMENT= A program for downloading videos from YouTube.com
|
|
|
|
|
2012-03-06 12:43:58 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-08-16 14:51:40 +02:00
|
|
|
NO_BUILD= yes
|
2010-06-26 20:50:23 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2010-08-20 01:09:58 +02:00
|
|
|
USE_PYTHON_RUN= 2.5-2.7
|
2006-08-16 14:51:40 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/youtube-dl
|
|
|
|
|
2012-03-06 12:43:58 +01:00
|
|
|
OPTIONS= RTMPDUMP "Use RTMPDUMP to download rtmp video streams" on \
|
|
|
|
FFMPEG "Use ffmpeg (required for audio conversion)" off
|
2010-12-05 16:20:05 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_RTMPDUMP)
|
|
|
|
RUN_DEPENDS+= rtmpdump:${PORTSDIR}/multimedia/rtmpdump
|
|
|
|
.endif
|
|
|
|
|
2012-03-06 12:43:58 +01:00
|
|
|
.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
|
|
|
|
|
2006-08-16 14:51:40 +02:00
|
|
|
post-extract:
|
2011-08-05 11:32:30 +02:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/youtube-dl
|
2006-08-16 14:51:40 +02:00
|
|
|
|
|
|
|
do-install:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${PREFIX}/bin/youtube-dl
|
2006-08-16 14:51:40 +02:00
|
|
|
|
2012-03-06 12:43:58 +01:00
|
|
|
.if defined(WITH_FFMPEG)
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
2009-05-06 02:28:19 +02:00
|
|
|
.include <bsd.port.mk>
|