aboutsummaryrefslogtreecommitdiff
path: root/system/pcem/pcem.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/pcem/pcem.SlackBuild')
-rw-r--r--system/pcem/pcem.SlackBuild40
1 files changed, 18 insertions, 22 deletions
diff --git a/system/pcem/pcem.SlackBuild b/system/pcem/pcem.SlackBuild
index f3fa93810aa32..7549ecbf5ad5c 100644
--- a/system/pcem/pcem.SlackBuild
+++ b/system/pcem/pcem.SlackBuild
@@ -25,28 +25,28 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=pcem
-VERSION=${VERSION:-965ea55.20220306}
-SRCVERSION=${SRCVERSION:-965ea55331e7c1c5a3ca169e006150615cb65776}
+VERSION=${VERSION:-f4a1ab9.20220418}
+SRCVERSION=${SRCVERSION:-f4a1ab9c5193ebeaa5ab7da3b613dc78a5614550}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# Use ALSA=yes to output MIDI with ALSA.
unset USE_ALSA
-[ ${ALSA:-no} = yes ] && USE_ALSA="-Duse-alsa=true"
+[ ${ALSA:-no} = yes ] && USE_ALSA="-DUSE_ALSA=ON"
-# Use NETWORKING=yes to enable networking.
-unset USE_NETWORKING
-[ ${NETWORKING:-no} = yes ] && USE_NETWORKING="-Duse-networking=true"
+# Use NETWORKING=no to disable networking.
+USE_NETWORKING="-DUSE_NETWORKING=ON"
+[ ${NETWORKING:-yes} = no ] && USE_NETWORKING="-DUSE_NETWORKING=OFF"
# Use PCAP=no to disable PCAP networking. Has no effect unless networking is
# turned on.
unset NO_PCAP
-[ ${PCAP:-yes} = no ] && NO_PCAP="-Duse-pcap-networking=false"
+[ ${PCAP:-yes} = no ] && NO_PCAP="-DUSE_PCAP_NETWORKING=OFF"
# Use PLUGINS=yes to build the plugin engine.
unset USE_PLUGINS
-[ ${PLUGINS:-no} = yes ] && USE_PLUGINS="-Duse-plugin-engine=true"
+[ ${PLUGINS:-no} = yes ] && USE_PLUGINS="-DPLUGIN_ENGINE=ON"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -91,9 +91,6 @@ rm -rf $PRGNAM-$SRCVERSION
unzip $CWD/$PRGNAM-$SRCVERSION.zip
cd $PRGNAM-$SRCVERSION
-# Fix building the plugin engine with meson
-patch -p1 < $CWD/plugins.diff
-
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -105,29 +102,28 @@ mkdir build
cd build
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
-meson \
- --buildtype release \
+cmake -G "Ninja" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPCEM_LIB_DIR=/usr/lib$LIBDIRSUFFIX \
$USE_ALSA \
$USE_NETWORKING \
$NO_PCAP \
$USE_PLUGINS \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --mandir=/usr/man \
..
ninja
-meson install --destdir=$PKG
+DESTDIR=$PKG ninja install/strip
cd ..
-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
-
-mv $PKG/usr/man/man1/pcem.man.1 $PKG/usr/man/man1/pcem.1
+mkdir -p $PKG/usr/man/man1
+mv $PKG/usr/share/man/man1/pcem.man/pcem.man.1 $PKG/usr/man/man1/pcem.1
+rm -r $PKG/usr/share/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# The text files saying "roms go here" aren't really necessary.
find $PKG/usr/share/pcem/roms -name roms.txt -delete
+rm -f $PKG/usr/share/pcem/configs/configs.txt
# File included in error.
rm -f $PKG/usr/share/pcem/roms/mda.rom
@@ -136,7 +132,7 @@ rm -f $PKG/usr/share/pcem/roms/mda.rom
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- tested.html \
+ TESTED.md \
README.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat COPYING > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE