mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +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.
67 lines
1.4 KiB
Bash
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
|
|
}
|