diff options
author | Nikolai Saika <nicksaika@gmail.com> | 2010-05-12 23:32:58 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:32:58 +0200 |
commit | e5ceba8a763520d8568792f38c84fd788ad07a7d (patch) | |
tree | c18049d6671203e9a0bae352b6aed63ff2609aad /office | |
parent | e0773fcf36106bd3b6724972c5e0b543cd6b2537 (diff) |
office/brlcad: Added to 12.2 repository
Diffstat (limited to 'office')
-rw-r--r-- | office/brlcad/README | 5 | ||||
-rw-r--r-- | office/brlcad/brlcad.SlackBuild | 78 | ||||
-rw-r--r-- | office/brlcad/brlcad.info | 8 | ||||
-rw-r--r-- | office/brlcad/slack-desc | 12 |
4 files changed, 103 insertions, 0 deletions
diff --git a/office/brlcad/README b/office/brlcad/README new file mode 100644 index 0000000000000..f16e67bcef255 --- /dev/null +++ b/office/brlcad/README @@ -0,0 +1,5 @@ +BRL-CAD is a powerful cross-platform open source solid modeling system that +includes interactive geometry editing, high-performance ray-tracing for +rendering and geometric analysis, image and signal-processing tools, a +system performance analysis benchmark suite, libraries for robust geometric +representation, with more than 20 years of active development. diff --git a/office/brlcad/brlcad.SlackBuild b/office/brlcad/brlcad.SlackBuild new file mode 100644 index 0000000000000..16354fa2b1324 --- /dev/null +++ b/office/brlcad/brlcad.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/sh + +# Slackware build script for BRL-CAD + +# Written by Nikolai Saika <nicksaika@gmail.com> +# Released under the WTFPL - http://sam.zoy.org/wtfpl/ + +PRGNAM=brlcad +VERSION=${VERSION:-7.14.0} +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 # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +echo yes | \ +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-tcl-build \ + --disable-tk-build \ + --disable-tkhtml3-build \ + --disable-jove-build \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION +find $PKG/usr/doc -name "Makefile*" -type f -exec rm -f {} \; || true +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/office/brlcad/brlcad.info b/office/brlcad/brlcad.info new file mode 100644 index 0000000000000..f62eaede4e615 --- /dev/null +++ b/office/brlcad/brlcad.info @@ -0,0 +1,8 @@ +PRGNAM="brlcad" +VERSION="7.14.0" +HOMEPAGE="http://brlcad.org" +DOWNLOAD="http://downloads.sourceforge.net/brlcad/brlcad-7.14.0.tar.bz2" +MD5SUM="4b8cf6dea3f57be3a6cfc81ac2517d8b" +MAINTAINER="Nikolai Saika" +EMAIL="nicksaika@gmail.com" +APPROVED="rworkman" diff --git a/office/brlcad/slack-desc b/office/brlcad/slack-desc new file mode 100644 index 0000000000000..e205d73ff3292 --- /dev/null +++ b/office/brlcad/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +brlcad: BRL-CAD (Open-source solid modeling system) +brlcad: +brlcad: BRL-CAD is a powerful cross-platform open source solid modeling +brlcad: system that includes interactive geometry editing, high-performance +brlcad: ray-tracing for rendering and geometric analysis, image and signal- +brlcad: processing tools, a system performance analysis benchmark suite, +brlcad: libraries for robust geometric representation, with more than 20 +brlcad: years of active development. +brlcad: +brlcad: http://brlcad.org/ +brlcad: |