mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
SUMMARY="Optimizes APNG animations"
|
|
DESCRIPTION="apngopt is a small utility which optimizes existing APNG animation files."
|
|
HOMEPAGE="https://sourceforge.net/projects/apng/"
|
|
COPYRIGHT="2011-2015 Max Stepin"
|
|
LICENSE="Zlib"
|
|
REVISION="1"
|
|
SOURCE_URI="https://sourceforge.net/projects/apng/files/APNG_Optimizer/$portVersion/apngopt-$portVersion-src.zip"
|
|
CHECKSUM_SHA256="c96047a893645fbd4afa5631b5d1728db3e6874ba8d76637de34355294a38bcf"
|
|
SOURCE_DIR=""
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
apngopt$secondaryArchSuffix = $portVersion
|
|
cmd:apngopt = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage apngopt$secondaryArchSuffix \
|
|
$prefix/bin/apngopt
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -d -m 755 $prefix/bin $docDir
|
|
install -t $prefix/bin -m 555 apngopt
|
|
install -t $docDir -m 444 readme.txt
|
|
}
|