summaryrefslogtreecommitdiffstats
path: root/source/x/glu/glu.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-07-24 00:17:18 +0000
committer Eric Hameleers <alien@slackware.com>2023-07-24 04:33:52 +0200
commita834e0728df91f779e66f9f2e553d466acce0fa1 (patch)
tree86ea992a1d5502c3cc3f801f889852fb3fde8600 /source/x/glu/glu.SlackBuild
parent800e2d39bcfcf7b10c42466ad6bfd6f6f1984238 (diff)
downloadcurrent-a834e0728df91f779e66f9f2e553d466acce0fa1.tar.gz
current-a834e0728df91f779e66f9f2e553d466acce0fa1.tar.xz
Mon Jul 24 00:17:18 UTC 202320230724001718
a/kernel-generic-6.1.40-x86_64-1.txz: Upgraded. a/kernel-huge-6.1.40-x86_64-1.txz: Upgraded. a/kernel-modules-6.1.40-x86_64-1.txz: Upgraded. d/kernel-headers-6.1.40-x86-1.txz: Upgraded. k/kernel-source-6.1.40-noarch-1.txz: Upgraded. l/imagemagick-7.1.1_14-x86_64-1.txz: Upgraded. n/whois-5.5.18-x86_64-1.txz: Upgraded. Updated the .ga TLD server. Added new recovered IPv4 allocations. Removed the delegation of 43.0.0.0/8 to JPNIC. Removed 12 new gTLDs which are no longer active. Improved the man page source, courtesy of Bjarni Ingi Gislason. Added the .edu.za SLD server. Updated the .alt.za SLD server. Added the -ru and -su NIC handles servers. x/glu-9.0.3-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. kernels/*: Upgraded. usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'source/x/glu/glu.SlackBuild')
-rwxr-xr-xsource/x/glu/glu.SlackBuild37
1 files changed, 23 insertions, 14 deletions
diff --git a/source/x/glu/glu.SlackBuild b/source/x/glu/glu.SlackBuild
index 05a1dbc5e..73e07bb71 100755
--- a/source/x/glu/glu.SlackBuild
+++ b/source/x/glu/glu.SlackBuild
@@ -1,8 +1,7 @@
#!/bin/bash
-# Slackware build script for glu
-
# Copyright 2012 Robby Workman, Northport, Alabama, USA
+# Copyright 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -76,21 +75,31 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --disable-static \
+# Configure, build, and install:
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+mkdir meson-build
+cd meson-build
+meson setup \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/libexec \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
- --build=$ARCH-slackware-linux || exit 1
-
-make $NUMJOBS || make || exit 1
-make install DESTDIR=$PKG || exit 1
-
-# Don't ship .la files:
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+ --buildtype=release \
+ -Dgl_provider=glvnd \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
+
+# No static library:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/lib*.a
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