mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
98 lines
2.2 KiB
Bash
98 lines
2.2 KiB
Bash
SUMMARY="An atomic memory update operations portable implementation"
|
|
DESCRIPTION="Semi-portable access to hardware-provided atomic memory update \
|
|
operations on a number architectures."
|
|
HOMEPAGE="https://github.com/ivmai/libatomic_ops"
|
|
COPYRIGHT="1991-1994 Xerox Corporation
|
|
1996-1999 Silicon Graphics
|
|
1999-2011 Hewlett-Packard Development Company, L.P.
|
|
2005, 2007 Thiemo Seufer
|
|
2007 NEC LE-IT
|
|
2008-2022 Ivan Maidanski
|
|
2009 Bradley Smith
|
|
2009 Takashi Yoshii"
|
|
LICENSE="MIT
|
|
Boehm
|
|
GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/bdwgc/libatomic_ops/releases/download/v$portVersion/libatomic_ops-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0db3ebff755db170f65e74a64ec4511812e9ee3185c232eeffeacd274190dfb0"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.3.0"
|
|
libGplVersion="1.3.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
libGplVersionCompat="$libGplVersion compat >= ${libGplVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libatomic_ops$secondaryArchSuffix = $portVersion
|
|
lib:libatomic_ops$secondaryArchSuffix = $libVersionCompat
|
|
lib:libatomic_ops_gpl$secondaryArchSuffix = $libGplVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libatomic_ops${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libatomic_ops$secondaryArchSuffix = $libVersionCompat
|
|
devel:libatomic_ops_gpl$secondaryArchSuffix = $libGplVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libatomic_ops$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gawk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage libatomic_ops$secondaryArchSuffix \
|
|
"$libDir"/libatomic_ops.so.$libVersion \
|
|
"$libDir"/libatomic_ops_gpl.so.$libGplVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --disable-dependency-tracking \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--with-gnu-ld
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mkdir -p $developDocDir
|
|
mv $docDir/README* $developDocDir
|
|
|
|
# remove libtool files
|
|
rm -f $libDir/libatomic_ops*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
libatomic_ops \
|
|
libatomic_ops_gpl
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|