openbsd-ports/net/yt/Makefile
martynas 85db4ef145 - start accepting options: -C, -n, -o
- -C will resume previously interrupted transfer
- -n will not convert videos
- -o=XXX will save file to XXX.(mp4|flv)
- print info stuff to stderr;  so we can pipe it
- bump to yt-10;  since usage changes
as a result;  you can actually stream your videos with mplayer, like:
	yt -o=- url | mplayer -
ok jsg@, sthen@
2009-06-13 01:51:08 +00:00

28 lines
556 B
Makefile

# $OpenBSD: Makefile,v 1.27 2009/06/13 01:51:08 martynas Exp $
COMMENT= customizable script to fetch youtube videos
PKGNAME= yt-10
CATEGORIES= net www
DISTFILES=
# Public domain
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/lua
NO_CHECKSUM= Yes
NO_BUILD= Yes
NO_REGRESS= Yes
RUN_DEPENDS+= ::devel/luastdlib \
::graphics/ffmpeg \
::net/luasocket
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/yt.lua ${PREFIX}/bin/yt
@${SUBST_CMD} ${PREFIX}/bin/yt
.include <bsd.port.mk>