mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
82 lines
1.8 KiB
Bash
82 lines
1.8 KiB
Bash
SUMMARY="An implementation of the Progressive Graphics File (PGF)"
|
|
DESCRIPTION="libpgf is a library implementing an interface for handling \
|
|
PGF (Progressive Graphic File) format files."
|
|
HOMEPAGE="https://www.libpgf.org/"
|
|
COPYRIGHT="2006 xeraina GmbH, Switzerland"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://sourceforge.net/projects/libpgf/files/libpgf/$portVersion/libpgf.zip"
|
|
CHECKSUM_SHA256="cba8f7cd6f77adadf75e5ad39944e7490a00e5ae9a00cd2214119cb338c5abad"
|
|
SOURCE_FILENAME="libpgf-$portVersion.zip"
|
|
SOURCE_DIR="libpgf"
|
|
PATCHES="libpgf-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="7.0.15"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libpgf$secondaryArchSuffix = $portVersion
|
|
lib:libpgf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpgf${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpgf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libpgf$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:dos2unix
|
|
cmd:doxygen
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage libpgf$secondaryArchSuffix \
|
|
"$libDir/libpgf.so.$libVersion"
|
|
|
|
BUILD()
|
|
{
|
|
find . -type f | xargs dos2unix
|
|
mv README{.txt,}
|
|
sh ./autogen.sh
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/*.la
|
|
|
|
install -d -m 755 "$developDocDir"
|
|
mv "$dataDir/doc/libpgf-$portVersion/html" "$developDocDir"
|
|
rm -rf "$dataDir" "$manDir"
|
|
|
|
prepareInstalledDevelLib libpgf
|
|
fixPkgconfig
|
|
packageEntries devel "$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|