mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 08:10:07 +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.
97 lines
2.2 KiB
Bash
97 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="2008-2018 Ivan Maidanski
|
|
1991-1994 Xerox Corporation
|
|
1996-1999 Silicon Graphics
|
|
1999-2011 Hewlett-Packard Development Company, L.P.
|
|
2005, 2007 Thiemo Seufer
|
|
2007 NEC LE-IT
|
|
2009 Bradley Smith
|
|
2009 Takashi YOSHII"
|
|
LICENSE="MIT
|
|
Boehm
|
|
GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/ivmai/libatomic_ops/releases/download/v$portVersion/libatomic_ops-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="587edf60817f56daf1e1ab38a4b3c729b8e846ff67b4f62a6157183708f099af"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.1.1"
|
|
libGplVersion="1.1.2"
|
|
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 \
|
|
--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
|
|
}
|