Files
haikuports/haiku-apps/optipngtranslator/optipngtranslator-0.0.1.recipe
humdinger 425e8badb9 optipngtranslator: add 2ndary arch (#3267)
* optipngtranslator: add 2ndary arch
* The package was not installable, because it needed
  cmd:optipng_x86 on 32bit Haiku. I removed the check of
  $buildArchitecture and "targetArchitecture and always
  use the plain cmd:optipng.
  optipng is available for all architectures.
* Add 2ndary architecture so _x86 apps can use the
  _x86 version of the translator.
* Improved description
* Bumped revision
2018-10-25 11:31:53 +02:00

52 lines
1.4 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 Luke (noryb009)"
LICENSE="MIT"
REVISION="4"
srcGitRev="8e3996a92d840f3c097cf954e001d4f371265161"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="4bbcb970f42bc13bba1105cce03739601339c3c52f8aec6c16130a9a1834746d"
SOURCE_FILENAME="optipngtranslator-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="OptiPNGTranslator-$srcGitRev"
ARCHITECTURES="x86_gcc2 x86 x86_64"
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 \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` \
TARGET_DIR=.
}
INSTALL()
{
mkdir -p $addOnsDir/Translators
cp OptiPNGTranslator $addOnsDir/Translators
}