diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-04-22 17:31:44 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-04-23 07:52:07 +0700 |
commit | 28349be469b940e31ba456af43c2733c4106c055 (patch) | |
tree | a80c077c3f46fb880b3613f45d015a7d1a9d9b57 /games/openlierox/openlierox.SlackBuild | |
parent | 44939e2bae7e8ab6d668aeb878a393f704b6a9fa (diff) | |
download | slackbuilds-28349be469b940e31ba456af43c2733c4106c055.tar.gz |
games/openlierox: Downgraded to 0.58_rc3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/openlierox/openlierox.SlackBuild')
-rw-r--r-- | games/openlierox/openlierox.SlackBuild | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/games/openlierox/openlierox.SlackBuild b/games/openlierox/openlierox.SlackBuild index 613788013f..0fd7f26360 100644 --- a/games/openlierox/openlierox.SlackBuild +++ b/games/openlierox/openlierox.SlackBuild @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=openlierox -VERSION=${VERSION:-0.59} +VERSION=${VERSION:-0.58_rc3} +SRCVER=$(echo $VERSION | tr _ .) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,16 +42,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686 -ldl" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686 -ldl" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC -ldl" + SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else - SLKCFLAGS="-O2 -ldl" + SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi @@ -60,7 +61,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -unzip $CWD/$PRGNAM-$VERSION.zip || unzip $CWD/$VERSION.zip +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,18 +70,23 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# curl/types.h removed because not supported from new CURL versions +patch -p1 < $CWD/http_curl.patch + +# Google Breakpad is not supported on Linux 64bit if [ "$ARCH" = "x86_64" ]; then - patch -p1 < $CWD/CMakeOlxCommon_boost_x64.patch + BREAKPAD=${BREAKPAD:-off} else - patch -p1 < $CWD/CMakeOlxCommon_boost.patch + BREAKPAD=${BREAKPAD:-on} fi mkdir -p build cd build - cmake \ + cmake . \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DBREAKPAD=$BREAKPAD \ -DCMAKE_BUILD_TYPE=Release .. make cd .. @@ -100,7 +106,7 @@ mkdir -p $PKG/usr/share/pixmaps install -D -m644 share/OpenLieroX.svg $PKG/usr/share/pixmaps/OpenLieroX.svg mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README.md VERSION COPYING.LIB $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING.LIB VERSION doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |