mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
png2ico: new recipe. (#915)
This commit is contained in:
53
media-gfx/png2ico/png2ico-2002.12.08.recipe
Normal file
53
media-gfx/png2ico/png2ico-2002.12.08.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
SUMMARY="Converts PNG files to Windows icon resource files"
|
||||
DESCRIPTION="png2ico converts .PNG files to Windows .ICO icon resources"
|
||||
HOMEPAGE="http://winterdrache.de/freeware/png2ico/"
|
||||
COPYRIGHT="Free Software Foundation"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://winterdrache.de/freeware/png2ico/data/png2ico-src-${portVersion//./-}.tar.gz"
|
||||
CHECKSUM_SHA256="d6bc2b8f9dacfb8010e5f5654aaba56476df18d88e344ea1a32523bb5843b68e"
|
||||
SOURCE_DIR="png2ico"
|
||||
SOURCE_FILENAME_2="png2ico-$portVersion-memset_and_strcmp.patch"
|
||||
srcGitRev_2="8fb6e61574b0727120e3c7dcf4f8ed5b6f56d06c"
|
||||
SOURCE_URI_2="https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/png2ico/files/$SOURCE_FILENAME_2?id=$srcGitRev_2#noarchive"
|
||||
CHECKSUM_SHA256_2="643170b93549022d357ab5892f7f702f4ad0c0ad001ffbb784a1ad17d26a2390"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
png2ico = $portVersion
|
||||
cmd:png2ico = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libpng16
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libpng16
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
patch -p0 -i $sourceDir2/$SOURCE_FILENAME_2
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
install -d -m 755 $binDir $docDir $manDir/man1
|
||||
install -t $binDir -c -m 555 -s png2ico
|
||||
install -t $docDir -c -m 444 README doc/bmp.txt
|
||||
install -t $manDir/man1 -c -m 444 doc/png2ico.1
|
||||
}
|
||||
Reference in New Issue
Block a user