diff options
author | Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> | 2015-12-18 23:30:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-19 07:23:12 +0700 |
commit | 2d8013b5d94871b76a3937893589c23f25a79b55 (patch) | |
tree | 17f7b1d146ab1905bcb17089ee4e26e2d37eb31a /development/tyrutils-ericw | |
parent | f356912de46653f1d50a742e4bb5eebddffdcbdc (diff) |
development/tyrutils-ericw: Added (Map Compiling Tools).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/tyrutils-ericw')
-rw-r--r-- | development/tyrutils-ericw/README | 19 | ||||
-rw-r--r-- | development/tyrutils-ericw/slack-desc | 19 | ||||
-rw-r--r-- | development/tyrutils-ericw/tyrutils-ericw.SlackBuild | 93 | ||||
-rw-r--r-- | development/tyrutils-ericw/tyrutils-ericw.info | 10 |
4 files changed, 141 insertions, 0 deletions
diff --git a/development/tyrutils-ericw/README b/development/tyrutils-ericw/README new file mode 100644 index 000000000000..8b0d380166fd --- /dev/null +++ b/development/tyrutils-ericw/README @@ -0,0 +1,19 @@ +tyrutils-ericw is a branch of Tyrann's quake 1 tools, focused on adding lighting features, mostly +borrowed from q3map2. There are a few bugfixes for qbsp as well. Original readme follows: + +A collection of command line utilities for building Quake levels and working with various Quake file +formats. I need to work on the documentation a bit more, but below are some brief descriptions of the +tools. + +Included utilities: + + qbsp - Used for turning a .map file into a playable .bsp file. + + light - Used for lighting a level after the bsp stage. + This util was previously known as TyrLite + + vis - Creates the potentially visible set (PVS) for a bsp. + + bspinfo - Print stats about the data contained in a bsp file. + + bsputil - Simple tool for manipulation of bsp file data. diff --git a/development/tyrutils-ericw/slack-desc b/development/tyrutils-ericw/slack-desc new file mode 100644 index 000000000000..e66788e2401b --- /dev/null +++ b/development/tyrutils-ericw/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +tyrutils-ericw: tyrutils-ericw (Quake/Hexen 2 Map Compiling Tools) +tyrutils-ericw: +tyrutils-ericw: tyrutils-ericw is a branch of Tyrann's quake 1 tools, focused on +tyrutils-ericw: adding lighting features, mostly borrowed from q3map2. There are a +tyrutils-ericw: few bugfixes for qbsp as well. +tyrutils-ericw: +tyrutils-ericw: Homepage: https://github.com/ericwa/tyrutils-ericw +tyrutils-ericw: +tyrutils-ericw: +tyrutils-ericw: +tyrutils-ericw: diff --git a/development/tyrutils-ericw/tyrutils-ericw.SlackBuild b/development/tyrutils-ericw/tyrutils-ericw.SlackBuild new file mode 100644 index 000000000000..d1eb613c04a4 --- /dev/null +++ b/development/tyrutils-ericw/tyrutils-ericw.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/sh + +# Slackware build script for tyrutils-ericw +# +# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# All rights reserved. +# +# Based on: +# SBo's cmake-template +# +# 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=tyrutils-ericw +VERSION=${VERSION:-0.15.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-ericw-v$VERSION.tar.gz || tar xvf $CWD/ericw-v$VERSION.tar.gz +cd $PRGNAM-ericw-v$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# Let's compile! +make + +# Copies over compiled binaries +install -D -m 0755 bin/bspinfo $PKG/usr/bin/bspinfo +install -D -m 0755 bin/bsputil $PKG/usr/bin/bsputil +install -D -m 0755 bin/light $PKG/usr/bin/light +install -D -m 0755 bin/qbsp $PKG/usr/bin/qbsp +install -D -m 0755 bin/vis $PKG/usr/bin/vis + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.txt COPYING changelog.txt $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/development/tyrutils-ericw/tyrutils-ericw.info b/development/tyrutils-ericw/tyrutils-ericw.info new file mode 100644 index 000000000000..2587b560edc6 --- /dev/null +++ b/development/tyrutils-ericw/tyrutils-ericw.info @@ -0,0 +1,10 @@ +PRGNAM="tyrutils-ericw" +VERSION="0.15.4" +HOMEPAGE="https://github.com/ericwa/tyrutils-ericw" +DOWNLOAD="https://github.com/ericwa/tyrutils-ericw/archive/ericw-v0.15.4.tar.gz" +MD5SUM="5c1ac216de0f2e657cf0d0bc7b302ce1" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Gethyn ThomasQuail" +EMAIL="gethyn@bloodbathsoftworks.com" |