mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
108 lines
2.3 KiB
Bash
108 lines
2.3 KiB
Bash
SUMMARY="A lightweight pkg-config replacement"
|
|
DESCRIPTION="A program which helps to configure compiler and linker flags for \
|
|
development libraries. It is similar to pkg-config from freedesktop.org."
|
|
HOMEPAGE="http://pkgconf.org/"
|
|
COPYRIGHT="2011-2018 pkgconf authors"
|
|
LICENSE="ISC"
|
|
REVISION="1"
|
|
SOURCE_URI="https://distfiles.dereferenced.org/pkgconf/pkgconf-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="bab39371d4ab972be1d539a8b10b6cc21f8eafc97f617102e667e82bd32eb234"
|
|
PATCHES="pkgconf-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix="$secondaryArchSuffix"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=""
|
|
fi
|
|
|
|
libVersion="3.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
pkgconf$secondaryArchSuffix = $portVersion
|
|
cmd:pkgconf$secondaryArchSuffix = $portVersion
|
|
lib:libpkgconf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
pkgconf${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libpkgconf$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
pkgconf$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
SUMMARY_pkgconfig="$SUMMARY (pkg-config compat symlink)"
|
|
DESCRIPTION_pkgconfig="$DESCRIPTION (pkg-config compatibility symlink)"
|
|
|
|
PROVIDES_pkgconfig="
|
|
pkgconf${secondaryArchSuffix}_pkgconfig = $portVersion
|
|
cmd:pkg_config$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_pkgconfig="
|
|
pkgconf$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_pkgconfig="
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:diff
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
devel:libatf_c$secondaryArchSuffix
|
|
cmd:kyua$commandSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage pkgconf$secondaryArchSuffix \
|
|
"$binDir/pkgconf" \
|
|
"$libDir/libpkgconf.so.$libVersion"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
install -d -m 755 "$docDir" "$developDocDir"
|
|
install -t "$docDir" -m 644 AUTHORS NEWS
|
|
install -t "$developDocDir" -m 644 doc/*.rst
|
|
|
|
ln -s pkgconf "$binDir/pkg-config"
|
|
|
|
rm -f "$libDir"/*.la
|
|
|
|
prepareInstalledDevelLib libpkgconf
|
|
fixPkgconfig
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
"$dataDir/aclocal" \
|
|
"$manDir/man7"
|
|
packageEntries pkgconfig "$binDir/pkg-config"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|