From 0f1ac701b7a52d5b3bcc61d1e5560c3259dd757a Mon Sep 17 00:00:00 2001 From: Andrzej Telszewski Date: Mon, 12 Jul 2010 15:28:20 -0500 Subject: libraries/libmpc: Added (C library for complex number arithmetic) Signed-off-by: Robby Workman --- libraries/libmpc/README | 3 ++ libraries/libmpc/libmpc.SlackBuild | 80 ++++++++++++++++++++++++++++++++++++++ libraries/libmpc/libmpc.info | 10 +++++ libraries/libmpc/slack-desc | 19 +++++++++ 4 files changed, 112 insertions(+) create mode 100644 libraries/libmpc/README create mode 100644 libraries/libmpc/libmpc.SlackBuild create mode 100644 libraries/libmpc/libmpc.info create mode 100644 libraries/libmpc/slack-desc (limited to 'libraries/libmpc') diff --git a/libraries/libmpc/README b/libraries/libmpc/README new file mode 100644 index 0000000000..191ca74f83 --- /dev/null +++ b/libraries/libmpc/README @@ -0,0 +1,3 @@ +Mpc is a C library for the arithmetic of complex numbers with arbitrarily +high precision and correct rounding of the result. It is built upon and +follows the same principles as Mpfr. diff --git a/libraries/libmpc/libmpc.SlackBuild b/libraries/libmpc/libmpc.SlackBuild new file mode 100644 index 0000000000..ef3ab361f5 --- /dev/null +++ b/libraries/libmpc/libmpc.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Slackware build script for MPC + +# Written by Andrzej Telszewski + +PRGNAM=libmpc +VERSION=0.8.2 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=mpc + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --enable-static=no \ + --enable-shared=yes \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/* + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog COPYING.LIB INSTALL NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +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.${PKGTYPE:-tgz} diff --git a/libraries/libmpc/libmpc.info b/libraries/libmpc/libmpc.info new file mode 100644 index 0000000000..8b65ea0355 --- /dev/null +++ b/libraries/libmpc/libmpc.info @@ -0,0 +1,10 @@ +PRGNAM="libmpc" +VERSION="0.8.2" +HOMEPAGE="http://www.multiprecision.org/" +DOWNLOAD="http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz" +MD5SUM="e98267ebd5648a39f881d66797122fb6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Andrzej Telszewski" +EMAIL="atelszewski@gmail.com" +APPROVED="rworkman" diff --git a/libraries/libmpc/slack-desc b/libraries/libmpc/slack-desc new file mode 100644 index 0000000000..1ab87d65bd --- /dev/null +++ b/libraries/libmpc/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-------------------------------------------------------| +libmpc: libmpc (C library for the arithmetic of complex numbers) +libmpc: +libmpc: Mpc is a C library for the arithmetic of complex numbers with +libmpc: arbitrarily high precision and correct rounding of the result. +libmpc: It is built upon and follows the same principles as Mpfr. +libmpc: +libmpc: Homepage: http://www.multiprecision.org/ +libmpc: +libmpc: +libmpc: +libmpc: -- cgit v1.2.3