diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-07 12:06:17 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-11 07:23:58 +0700 |
commit | 557658ecc42a23d7561e753b8834e787d7659c2d (patch) | |
tree | e7e64c9e4d49955dbc654b5c5dc484d6f8a1442b /libraries/fmodapi/fmodapi.SlackBuild | |
parent | 6dba8ee436763e01dfba06d4d431efac0b179fff (diff) |
libraries/fmodapi: Updated for version 4.44.61, new maintainer.
Diffstat (limited to 'libraries/fmodapi/fmodapi.SlackBuild')
-rw-r--r-- | libraries/fmodapi/fmodapi.SlackBuild | 57 |
1 files changed, 36 insertions, 21 deletions
diff --git a/libraries/fmodapi/fmodapi.SlackBuild b/libraries/fmodapi/fmodapi.SlackBuild index 7fa72ecfd1031..7a59e28d33b98 100644 --- a/libraries/fmodapi/fmodapi.SlackBuild +++ b/libraries/fmodapi/fmodapi.SlackBuild @@ -2,17 +2,36 @@ # Slackware build script for fmodapi -# Written by Pablo Santamaria (pablosantamaria@gmail.com) +# Originally written by Pablo Santamaria (email removed) + +# Modified and now maintained by B. Watson <yalhcru@gmail.com>. +# Original version had no license. Modified version released under +# the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20170207 bkw: +# - Take over maintenance, update for v4.44.61. +# - Upstream's packaging has changed: 32-bit and 64-bit libs are now +# distributed in the same tarball. So this script can no longer +# build the old 4.28.17 version. +# - Include examples in /usr/doc. +# - Rewrite README and slack-desc so it reads less like the manufacturer's +# advertising and more like a factual description. + +# Newer versions also include something called the FMOD Designer API. +# I'm not including it in this build because I'm not sure how it should +# be packaged, and because none of the SBo builds that depend on fmodapi +# use the designer API. If you need it, please let me know and I'll +# revisit it. PRGNAM=fmodapi -VERSION=${VERSION:-4.28.17} +VERSION=${VERSION:-4.44.61} SRCVER=$( echo $VERSION | sed 's/\.//g' ) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -23,14 +42,9 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then +if [ "$ARCH" = "x86_64" ]; then LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -39,9 +53,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}${SRCVER}linux${LIBDIRSUFFIX} -tar xvf $CWD/${PRGNAM}${SRCVER}linux${LIBDIRSUFFIX}.tar.gz -cd ${PRGNAM}${SRCVER}linux${LIBDIRSUFFIX} +rm -rf ${PRGNAM}${SRCVER}linux +tar xvf $CWD/${PRGNAM}${SRCVER}linux.tar.gz +cd ${PRGNAM}${SRCVER}linux chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -49,19 +63,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} -mkdir -p $PKG/usr/include/fmodex +PKGLIB=$PKG/usr/lib${LIBDIRSUFFIX} +LIBNAM=libfmodex$LIBDIRSUFFIX +LIBNAML=libfmodexL$LIBDIRSUFFIX +mkdir -p $PKGLIB -( cd api/lib - cp -a libfmodex*.so* $PKG/usr/lib${LIBDIRSUFFIX} -) +cp -a api/lib/$LIBNAM-$VERSION.so api/lib/$LIBNAML-$VERSION.so $PKGLIB +ln -s $LIBNAM-$VERSION.so $PKGLIB/$LIBNAM.so +ln -s $LIBNAML-$VERSION.so $PKGLIB/$LIBNAML.so -( cd api/inc - cp -a * $PKG/usr/include/fmodex -) +mkdir -p $PKG/usr/include/fmodex +cp -a api/inc/* $PKG/usr/include/fmodex mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a documentation/* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a documentation/* examples $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |