libraries/zmusic: Added (library for music support in games)

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-10-30 03:35:11 +00:00 committed by Willy Sudiarto Raharjo
parent fe8c4329ef
commit f278b14511
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 115 additions and 0 deletions

9
libraries/zmusic/README Normal file
View file

@ -0,0 +1,9 @@
zmusic (library for music support in games)
ZMusic is GZDoom's music system separated as a stand-alone music
library, providing a unified interface for its components.
Note: Technically, fluidsynth is optional, but it's *very* highly
recommended. I've listed it as required, for the convenience of
sbopkg/sbotools users. If you're reading this, you are not a robot,
and you can make up your own mind.

View file

@ -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------------------------------------------------------|
zmusic: zmusic (library for music support in games)
zmusic:
zmusic: ZMusic is GZDoom's music system separated as a stand-alone music
zmusic: library, providing a unified interface for its components.
zmusic:
zmusic:
zmusic:
zmusic:
zmusic:
zmusic:
zmusic:

View file

@ -0,0 +1,77 @@
#!/bin/sh
# Slackware build script for zmusic
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=zmusic
VERSION=${VERSION:-1.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=ZMusic
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -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 .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS -DNDEBUG" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
make install/strip DESTDIR=$PKG
cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# You're in a maze of twisty licenses, all slightly different.
cp -a licenses/* $PKG/usr/doc/$PRGNAM-$VERSION
# There's no other documentation at all, so include our own README
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
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}

View file

@ -0,0 +1,10 @@
PRGNAM="zmusic"
VERSION="1.1.3"
HOMEPAGE="https://github.com/coelckers/ZMusic"
DOWNLOAD="https://github.com/coelckers/ZMusic/archive/1.1.3/ZMusic-1.1.3.tar.gz"
MD5SUM="a2f96bac634f199b56d2fc3ea33b3969"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fluidsynth"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"