summaryrefslogtreecommitdiff
path: root/net/youtube-dl/Makefile
blob: 29ed7fb1c3984c54a8f15fa5019d1f0d442c2030 (plain)
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
# $NetBSD: Makefile,v 1.6 2008/05/05 08:25:14 tnn Exp $
#

DISTNAME=	youtube-dl
PKGNAME=	youtube-dl-20080420
CATEGORIES=	net
MASTER_SITES=	http://www.arrakis.es/~rggi3/youtube-dl/
EXTRACT_SUFX=	# none

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.arrakis.es/~rggi3/youtube-dl/
COMMENT=	Download videos from youtube.com

DIST_SUBDIR=	${PKGNAME_NOREV}
PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=			# none
PYTHON_VERSIONS_ACCEPTED=	25 24
WRKSRC=				${WRKDIR}

INSTALLATION_DIRS=	bin

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing paths.
SUBST_STAGE.path=	pre-build
SUBST_FILES.path=	youtube-dl
SUBST_SED.path=         -e 's,/usr/bin/env python,${PYTHONBIN},g'

do-build:

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/youtube-dl ${DESTDIR}${PREFIX}/bin

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"