openbsd-ports/net/yt/Makefile
jsg 22cd8e3851 Check for and display errors, so a string like
"This video is not available in your country." will be
displayed instead of a failed assert.

ok martynas@ pedro@
2008-11-04 04:14:50 +00:00

27 lines
557 B
Makefile

# $OpenBSD: Makefile,v 1.21 2008/11/04 04:14:50 jsg Exp $
COMMENT= customizable script to fetch youtube videos
PKGNAME= yt-9p0
CATEGORIES= net
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+= ::graphics/ffmpeg \
::net/luasocket
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/yt.lua ${PREFIX}/bin/yt
@perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE}," ${PREFIX}/bin/yt
.include <bsd.port.mk>