mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +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.
54 lines
1.3 KiB
Bash
54 lines
1.3 KiB
Bash
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="2"
|
|
SOURCE_URI="http://winterdrache.de/freeware/png2ico/data/png2ico-src-${portVersion//./-}.tar.gz"
|
|
CHECKSUM_SHA256="d6bc2b8f9dacfb8010e5f5654aaba56476df18d88e344ea1a32523bb5843b68e"
|
|
SOURCE_DIR="png2ico"
|
|
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"
|
|
SOURCE_FILENAME_2="png2ico-$portVersion-memset_and_strcmp.patch"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
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
|
|
}
|