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.
23 lines
578 B
Makefile
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"
|