Skip to content

Commit

Permalink
apng2gif: new recipe. gif2apng: polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
R167 committed Dec 5, 2016
1 parent 574f1f5 commit b6e7996
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 12 deletions.
51 changes: 51 additions & 0 deletions media-gfx/apng2gif/apng2gif-1.7.recipe
Original file line number Diff line number Diff line change
@@ -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 [ "$effectiveTargetArchitecture" = 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
}

INSTALL()
{
install -d -m 755 $binDir $docDir
install -t $binDir -c -m 555 -s apng2gif
install -t $docDir -c -m 444 readme.txt
}
30 changes: 18 additions & 12 deletions media-gfx/gif2apng/gif2apng-1.9.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,36 @@ Usually it makes the files smaller."
HOMEPAGE="http://gif2apng.sourceforge.net/"
COPYRIGHT="2009-2013 Max Stepin"
LICENSE="Zlib"
REVISION="1"
REVISION="2"
SOURCE_URI="https://downloads.sourceforge.net/gif2apng/gif2apng-$portVersion-src.zip"
CHECKSUM_SHA256="3b21308e935d799b3ffb4a86c6e00ffa4cb9b3f72f52d58d51c66eb0574ae7d2"
SOURCE_DIR=""

ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
ARCHITECTURES="x86_gcc2 x86 x86_64"

if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
LIBS="-lstdc++.r4 -lpng -lz"
else
LIBS="-lstdc++ -lpng -lz"
fi

PROVIDES="
gif2apng$secondaryArchSuffix = $portVersion
gif2apng = $portVersion
cmd:gif2apng = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
haiku
lib:libz
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix
haiku_devel
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:gcc
cmd:ld
cmd:make
cmd:ld$secondaryArchSuffix
"

BUILD()
Expand All @@ -38,6 +43,7 @@ BUILD()

INSTALL()
{
mkdir -p $prefix/bin
cp gif2apng $prefix/bin
install -d -m 755 $binDir $docDir
install -t $binDir -c -m 555 -s gif2apng
install -t $docDir -c -m 444 readme.txt
}

0 comments on commit b6e7996

Please sign in to comment.