0
0
Fork 0
haikuports/dev-libs/libxdg_basedir/libxdg_basedir-1.2.0.recipe

67 lines
1.4 KiB
Bash

SUMMARY="Implementation of the XDG Base Directory Specifications"
DESCRIPTION="Small library to access XDG Base Directories Specification paths"
HOMEPAGE="https://github.com/devnev/libxdg-basedir"
COPYRIGHT="2012 Mark Nevill"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/devnev/libxdg-basedir/archive/libxdg-basedir-$portVersion.tar.gz"
CHECKSUM_SHA256="1c2b0032a539033313b5be2e48ddd0ae94c84faf21d93956d53562eef4614868"
SOURCE_DIR="libxdg-basedir-libxdg-basedir-$portVersion"
PATCHES="libxdg_basedir-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libxdg_basedir$secondaryArchSuffix = $portVersion
lib:libxdg_basedir$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libxdg_basedir${secondaryArchSuffix}_devel
devel:libxdg_basedir$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES_devel="
libxdg_basedir$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/*.la
prepareInstalledDevelLib libxdg-basedir
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}