diff options
author | Heinz Wiesinger <HMWiesinger@gmx.at> | 2010-05-11 22:54:03 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:54:03 +0200 |
commit | fac8a1fdaafdddac090b64fb5cb166b275760886 (patch) | |
tree | dd69094fc4240f8eb20e161fdf43afa292f045bd /libraries | |
parent | bd2c42a9f75f44cf1faae28af3bf97ef4fb31509 (diff) | |
download | slackbuilds-fac8a1fdaafdddac090b64fb5cb166b275760886.tar.gz |
libraries/libatomic_ops: Added to 12.1 repository
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libatomic_ops/README | 6 | ||||
-rw-r--r-- | libraries/libatomic_ops/libatomic_ops.SlackBuild | 78 | ||||
-rw-r--r-- | libraries/libatomic_ops/libatomic_ops.info | 8 | ||||
-rw-r--r-- | libraries/libatomic_ops/slack-desc | 19 |
4 files changed, 111 insertions, 0 deletions
diff --git a/libraries/libatomic_ops/README b/libraries/libatomic_ops/README new file mode 100644 index 0000000000..29fe760bdc --- /dev/null +++ b/libraries/libatomic_ops/README @@ -0,0 +1,6 @@ +Provides implementations for atomic memory update operations +on a number of architectures. This allows direct use of these +in reasonably portable code. Unlike earlier similar packages, +this one explicitly considers memory barrier semantics, and +allows the construction of code that involves minimum overhead +across a variety of architectures.
\ No newline at end of file diff --git a/libraries/libatomic_ops/libatomic_ops.SlackBuild b/libraries/libatomic_ops/libatomic_ops.SlackBuild new file mode 100644 index 0000000000..a7b57158bc --- /dev/null +++ b/libraries/libatomic_ops/libatomic_ops.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/sh + +# Slackware build script for libatomic_ops + +# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=libatomic_ops +VERSION=1.2 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/ +rm -rf $PKG/usr/share +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/libatomic_ops/libatomic_ops.info b/libraries/libatomic_ops/libatomic_ops.info new file mode 100644 index 0000000000..548cf9c9b6 --- /dev/null +++ b/libraries/libatomic_ops/libatomic_ops.info @@ -0,0 +1,8 @@ +PRGNAM="libatomic_ops" +VERSION="1.2" +HOMEPAGE="http://www.hpl.hp.com/research/linux/atomic_ops/" +DOWNLOAD="http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.2.tar.gz" +MD5SUM="1b65e48271c81e3fa2d7a9a69bab7504" +MAINTAINER="ppr:kut" +EMAIL="HMWiesinger@gmx.at" +APPROVED="rworkman" diff --git a/libraries/libatomic_ops/slack-desc b/libraries/libatomic_ops/slack-desc new file mode 100644 index 0000000000..09c892d8ff --- /dev/null +++ b/libraries/libatomic_ops/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------| +libatomic_ops: libatomic_ops (Atomic memory update operations) +libatomic_ops: +libatomic_ops: Provides implementations for atomic memory update operations +libatomic_ops: on a number of architectures. This allows direct use of these +libatomic_ops: in reasonably portable code. Unlike earlier similar packages, +libatomic_ops: this one explicitly considers memory barrier semantics, and +libatomic_ops: allows the construction of code that involves minimum overhead +libatomic_ops: across a variety of architectures. +libatomic_ops: +libatomic_ops: Homepage: http://www.hpl.hp.com/research/linux/atomic_ops/ +libatomic_ops: |