pkgsrc/graphics/oxipng/Makefile
pin b51db2b27f graphics/oxipng: import package
Oxipng is a multithreaded lossless PNG compression optimizer. It can be used
via a command-line interface or as a library in other Rust programs.

It began as a complete rewrite of the OptiPNG project with the core goal of
implementing multithreading, which would be very difficult to do within the
existing C codebase of OptiPNG.
2021-01-29 11:39:38 +00:00

23 lines
578 B
Makefile

# $NetBSD: Makefile,v 1.1 2021/01/29 11:39:38 pin Exp $
DISTNAME= oxipng-4.0.3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=shssoichiro/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/shssoichiro/oxipng/
COMMENT= Multithreaded PNG optimizer
LICENSE= mit
.include "cargo-depends.mk"
USE_LANGUAGES+= c # rust, but needs a toolchain to link
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/oxipng ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"