mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
oxipng, new recipe (#10104)
This commit is contained in:
48
media-gfx/oxipng/oxipng-9.0.0.recipe
Normal file
48
media-gfx/oxipng/oxipng-9.0.0.recipe
Normal file
@@ -0,0 +1,48 @@
|
||||
SUMMARY="Multithreaded PNG optimizer written in Rust"
|
||||
DESCRIPTION="Oxipng is a multithreaded lossless PNG/APNG compression optimizer. It can be used \
|
||||
via a command-line interface or as a library in other Rust programs."
|
||||
HOMEPAGE="https://github.com/shssoichiro/oxipng"
|
||||
COPYRIGHT="2016 Joshua Holmer"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/shssoichiro/oxipng/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="534fa8f349f52b01c2ee4332cef25ce1311edca04209ac6d972e38b171550a1b"
|
||||
SOURCE_FILENAME="oxipng-v$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
|
||||
|
||||
PROVIDES="
|
||||
oxipng$secondaryArchSuffix =$portVersion
|
||||
cmd:oxipng = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cargo$secondaryArchSuffix >= 0.74
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $prefix/bin
|
||||
cp target/release/oxipng $prefix/bin
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cargo test --release
|
||||
}
|
||||
Reference in New Issue
Block a user