diff options
Diffstat (limited to 'libraries/allegro')
-rw-r--r-- | libraries/allegro/README | 12 | ||||
-rw-r--r-- | libraries/allegro/allegro.SlackBuild | 27 | ||||
-rw-r--r-- | libraries/allegro/allegro.info | 6 |
3 files changed, 33 insertions, 12 deletions
diff --git a/libraries/allegro/README b/libraries/allegro/README index 920768e002..7409d02ada 100644 --- a/libraries/allegro/README +++ b/libraries/allegro/README @@ -1,8 +1,10 @@ -The Allegro library provides C/C++ programmers low level routines commonly -needed in game programming, such as input, graphics, midi, sound effects, and -timing. It is cross platform and works with many different compilers. -Originally developed by Shawn Hargreaves, it is now a group project with -contributions from all over the world! Some of its key features include: +The Allegro library provides C/C++ programmers low level routines +commonly needed in game programming, such as input, graphics, midi, +sound effects, and timing. It is cross platform and works with many +different compilers. Originally developed by Shawn Hargreaves, it is +now a group project with contributions from all over the world! Some +of its key features include: + * Ease of Use - comes with comprehensive documentation and examples * Extensibility - if the built-in functionality isn't enough, there are many add-ons available diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild index 7c4ca6c4df..4201cdc093 100644 --- a/libraries/allegro/allegro.SlackBuild +++ b/libraries/allegro/allegro.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for allegro # Yth | Pont-en-Royans, France | yth@ythogtha.org # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org @@ -23,11 +23,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=allegro SRCNAM=allegro5 -VERSION=${VERSION:-5.2.6.0} +VERSION=${VERSION:-5.2.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -53,6 +63,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -85,6 +98,12 @@ cd build make install DESTDIR=$PKG cd .. +# Better handling of /usr/lib${LIBDIRSUFFIX} +[ ! -d "$PKG/usr/lib${LIBDIRSUFFIX}/cmake" ] && mv $PKG/usr/lib*/cmake $PKG/usr/lib${LIBDIRSUFFIX}/cmake +[ ! -d "$PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig" ] && mv $PKG/usr/lib*/pkgconfig $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig +# At least for x86_64 libs are copied into both usr/lib/ and usr/lib64/ +rm -rf $(ls -d $PKG/usr/lib* | grep -v "usr/lib${LIBDIRSUFFIX}") | true + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -96,4 +115,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/allegro/allegro.info b/libraries/allegro/allegro.info index da048b802b..22b3540386 100644 --- a/libraries/allegro/allegro.info +++ b/libraries/allegro/allegro.info @@ -1,8 +1,8 @@ PRGNAM="allegro" -VERSION="5.2.6.0" +VERSION="5.2.9.1" HOMEPAGE="https://liballeg.org/" -DOWNLOAD="https://github.com/liballeg/allegro5/archive/5.2.6.0/allegro5-5.2.6.0.tar.gz" -MD5SUM="ba218861ee98ee855213af3f602a6049" +DOWNLOAD="https://github.com/liballeg/allegro5/archive/5.2.9.1/allegro5-5.2.9.1.tar.gz" +MD5SUM="94b189f2b138891b5f068e9a0915b5eb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |