libatomic_ops: bump version to 7.6.2 (#2213)

* Add debug-info package and TEST.
* Sort BUILD_PREREQUIRES, replace libtool to libtoolize.
* Drop libtool files.
* Fix COPYRIGHT.
* Fix LICENSE: Mention MIT and add Boehm licenses.
This commit is contained in:
Ivan Maidanski
2018-02-15 22:02:32 +03:00
committed by fbrosson
parent 33ea0491bf
commit 0fea3f917f
2 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,94 @@
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
2003-2011 Hewlett-Packard Development Company, L.P.
2005, 2007 Thiemo Seufer
2007 NEC LE-IT
2016 Marek Vasut"
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="219724edad3d580d4d37b22e1d7cb52f0006d282d26a9b8681b560a625142ee6"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
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
}

View File

@@ -0,0 +1,29 @@
Copyright (c) 1988, 1989 Hans-J. Boehm, Alan J. Demers
Copyright (c) 1991-1996 by Xerox Corporation. All rights reserved.
Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved.
Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
The file linux_threads.c is also
Copyright (c) 1998 by Fergus Henderson. All rights reserved.
The files Makefile.am, and configure.in are
Copyright (c) 2001 by Red Hat Inc. All rights reserved.
Several files supporting GNU-style builds are copyrighted by the Free
Software Foundation, and carry a different license from that given
below.
THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
Permission is hereby granted to use or copy this program
for any purpose, provided the above notices are retained on all copies.
Permission to modify the code and to distribute modified code is granted,
provided the above notices are retained, and a notice that the code was
modified is included with the above copyright notice.
A few of the files needed to use the GNU-style build procedure come with
slightly different licenses, though they are all similar in spirit. A few
are GPL'ed, but with an exception that should cover all uses in the
collector. (If you are concerned about such things, I recommend you look
at the notice in config.guess or ltmain.sh.)