diff options
Diffstat (limited to 'libraries/allegro')
-rw-r--r-- | libraries/allegro/README | 16 | ||||
-rw-r--r-- | libraries/allegro/allegro.SlackBuild | 13 | ||||
-rw-r--r-- | libraries/allegro/allegro.info | 8 |
3 files changed, 26 insertions, 11 deletions
diff --git a/libraries/allegro/README b/libraries/allegro/README index 920768e002..0257d99378 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 @@ -12,3 +14,7 @@ contributions from all over the world! Some of its key features include: * Open Source - anyone can contribute, including you! * Free - it won't cost you a dime, and there are no restrictions on its usage + +physfs is optional, but allegro needs to be built against it to use it, +and some programs using allegro, like opensurge, requires physfs built +into it. diff --git a/libraries/allegro/allegro.SlackBuild b/libraries/allegro/allegro.SlackBuild index c7f2502f20..149c36367a 100644 --- a/libraries/allegro/allegro.SlackBuild +++ b/libraries/allegro/allegro.SlackBuild @@ -27,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=allegro SRCNAM=allegro5 -VERSION=${VERSION:-5.2.7.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-5.2.9.1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -63,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="" @@ -95,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 diff --git a/libraries/allegro/allegro.info b/libraries/allegro/allegro.info index 4d567aced7..8cede97aa3 100644 --- a/libraries/allegro/allegro.info +++ b/libraries/allegro/allegro.info @@ -1,10 +1,10 @@ PRGNAM="allegro" -VERSION="5.2.7.0" +VERSION="5.2.9.1" HOMEPAGE="https://liballeg.org/" -DOWNLOAD="https://github.com/liballeg/allegro5/archive/5.2.7.0/allegro5-5.2.7.0.tar.gz" -MD5SUM="0485609b34225ec796e9ce908938bdd5" +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="" +REQUIRES="physfs" MAINTAINER="Yth - Arnaud" EMAIL="yth@ythogtha.org" |