mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
SUMMARY="Save optimized PNG files"
|
|
DESCRIPTION="The OptiPNGTranslator allows you to save images as PNG files \
|
|
which have been optimized with the commandline tool optipng.
|
|
It's a translator, therefore the option to save as 'Optimized PNG image' will \
|
|
be available in any native application. You find settings like the \
|
|
optimization level in the DataTranslations preferences. The higher the \
|
|
level, the longer it takes."
|
|
HOMEPAGE="https://github.com/noryb009/OptiPNGTranslator"
|
|
COPYRIGHT="2013-2022 Luke (noryb009)"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
srcGitRev="0.1.0"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="2b169894f07043be92aad0901888759f56fab17eb68673a8fa38d77e45c9bed2"
|
|
SOURCE_FILENAME="optipngtranslator-$portVersion-v$srcGitRev.tar.gz"
|
|
SOURCE_DIR="OptiPNGTranslator-$srcGitRev"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
optipngtranslator$secondaryArchSuffix = $portVersion
|
|
add_on:OptiPNGTranslator$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
cmd:optipng
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
makefile_engine
|
|
cmd:as
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs OBJ_DIR=objects
|
|
make bindcatalogs OBJ_DIR=objects
|
|
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $addOnsDir/Translators
|
|
cp objects/OptiPNGTranslator $addOnsDir/Translators
|
|
}
|