pkgsrc/net/maguro/Makefile
pin 468b9a9949 net/maguro: import package
Maguro, a fast YouTube downloader.

Using the CLI:
-Check which streams are available (in no particular order).
-Choose a stream to download, and specify the output.

Using the Library:
-maguro also exposes a library for use in other applications. It is
fully-asynchronous, and is (hopefully) intuitive and easy to use.

Disclaimer:
-This software is created with the purpose of downloading videos with express
permission from their creator(s). The creator of this software is not
responsible for whether this software is used to download copyrighted
YouTube videos.
2021-05-01 14:40:11 +00:00

28 lines
761 B
Makefile

# $NetBSD: Makefile,v 1.1 2021/05/01 14:40:11 pin Exp $
DISTNAME= maguro-0.0.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=krashanoff/}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/krashanoff/maguro/
COMMENT= Fast YouTube downloader with Rust-native bindings
LICENSE= mit
.include "cargo-depends.mk"
USE_LANGUAGES+= c
USE_TOOLS+= pkg-config
INSTALLATION_DIRS= bin
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
MAKE_ENV+= RUSTFLAGS=${RUSTFLAGS:Q}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/maguro ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"