Browse Source

xap/pcsxr-pgxp: Upgraded to pcsxr-pgxp-g62467b8.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
c7bcd2d306
  1. 37
      xap/pcsxr-pgxp/pcsxr-pgxp.SlackBuild

37
xap/pcsxr-pgxp/pcsxr-pgxp.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2017 Damien Goutte-Gattat
# Copyright (C) 2012,2017,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,13 +24,10 @@
#
# Latest pcsxr sourcecode is available at:
# <https://github.com/loathingKernel/pcsxr>.
#
# Note: The package built by this SlackBuild is incompatible with the
# one built by the xap/pcsxr Slackbuild.
# Source package infos
NAMESRC=${NAMESRC:-pcsxr-pgxp}
COMMIT=${COMMIT:-b117a70f}
COMMIT=${COMMIT:-62467b8}
VERSION=${VERSION:-g$COMMIT}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
REPO=${REPO:-https://github.com/loathingKernel/pcsxr.git}
@ -90,26 +87,30 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
sh autogen.sh
mkdir build && cd build
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--enable-opengl \
--enable-libcdio
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib$LIBDIRSUFFIX \
-DCMAKE_INSTALL_MANDIR=/usr/man \
-DCMAKE_INSTALL_DOCDIR=/usr/doc/$NAME \
-DOpenGL_GL_PREFERENCE=GLVND \
-DUSE_LIBCDIO=ON \
..
make -j $JOBS
make install-strip DESTDIR=$PKG
make install/strip DESTDIR=$PKG
# Move man pages and docs to the right place (MANDIR and DOCDIR options
# are ignored, as almost always with CMake-based projects).
mv $PKG/usr/share/man $PKG/usr/man
mv $PKG/usr/share/doc $PKG/usr/doc
mv $PKG/usr/doc/pcsxr $PKG/usr/doc/$NAME
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMESRC-$VERSION
install -m 644 AUTHORS COPYING ChangeLog ChangeLog.df README \
doc/keys.txt doc/tweaks.txt $PKG/usr/doc/$NAMESRC-$VERSION
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh

Loading…
Cancel
Save