apng2gif: new recipe. gif2apng: polishing. (#910)

This commit is contained in:
Winston Durand
2016-12-05 14:34:44 -08:00
committed by fbrosson
parent 426423c8ea
commit 39f3ed7421
2 changed files with 57 additions and 5 deletions

View File

@@ -0,0 +1,51 @@
SUMMARY="Converts APNG animations into GIF format"
DESCRIPTION="This program converts APNG animations into animated GIF format. \
It performs the reverse of gif2apng."
HOMEPAGE="http://apng2gif.sourceforge.net/"
COPYRIGHT="2009-2015 Max Stepin"
LICENSE="Zlib"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/apng2gif/apng2gif-$portVersion-src.zip"
CHECKSUM_SHA256="6c7b2cce851378f2fc8f6b490ce098e9cf0038aa05da7099771c8be94620e6ca"
SOURCE_DIR=""
ARCHITECTURES="x86_gcc2 x86 x86_64"
if [ "$targetArchitecture" = x86_gcc2 ]; then
LIBS="-lstdc++.r4 -lpng -lz"
else
LIBS="-lstdc++ -lpng -lz"
fi
PROVIDES="
apng2gif = $portVersion
cmd:apng2gif = $portVersion
"
REQUIRES="
haiku
lib:libpng
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libpng
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
cmd:make
"
BUILD()
{
make LIBS="$LIBS"
}
INSTALL()
{
install -d -m 755 $binDir $docDir
install -t $binDir -c -m 555 -s apng2gif
install -t $docDir -c -m 444 readme.txt
}