diff options
author | Zbigniew Baniewski <Zbigniew [dot] Baniewski [at] gmail [dot] com> | 2022-10-14 18:53:36 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-15 10:47:37 +0700 |
commit | 9e2db000f731a2a8c4d0cb030c8d39fa10c4093e (patch) | |
tree | d29f7b24df0f406364ca7771db5c54648234efa6 /libraries | |
parent | 998c818e0457083b48ee4fa383edd00ea223ea8b (diff) | |
download | slackbuilds-9e2db000f731a2a8c4d0cb030c8d39fa10c4093e.tar.gz |
libraries/glw: Added (SGI's OpenGL Xt/Motif widgets)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/glw/01-fix_lib_inc_dir.patch | 12 | ||||
-rw-r--r-- | libraries/glw/README | 2 | ||||
-rw-r--r-- | libraries/glw/glw.SlackBuild | 111 | ||||
-rw-r--r-- | libraries/glw/glw.info | 10 | ||||
-rw-r--r-- | libraries/glw/slack-desc | 19 |
5 files changed, 154 insertions, 0 deletions
diff --git a/libraries/glw/01-fix_lib_inc_dir.patch b/libraries/glw/01-fix_lib_inc_dir.patch new file mode 100644 index 0000000000..a6d983c040 --- /dev/null +++ b/libraries/glw/01-fix_lib_inc_dir.patch @@ -0,0 +1,12 @@ +diff -Nur glw-master/Makefile.am glw-master.new/Makefile.am +--- glw-master/Makefile.am 2018-07-18 19:05:24.000000000 +0200 ++++ glw-master.new/Makefile.am 2022-10-13 22:38:37.276257964 +0200 +@@ -35,7 +35,7 @@ + libGLw_la_CFLAGS += $(MOTIF_CFLAGS) + libGLw_la_LIBADD += $(MOTIF_LIBS) + endif +-library_includedir=$(includedir)/GL/ ++library_includedir=$(includedir) + library_include_HEADERS=GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h + + clean: diff --git a/libraries/glw/README b/libraries/glw/README new file mode 100644 index 0000000000..edccd2ecce --- /dev/null +++ b/libraries/glw/README @@ -0,0 +1,2 @@ +SGI's OpenGL Xt/Motif widgets, slightly modified by +Jeroen van der Zijp to work better with Mesa. diff --git a/libraries/glw/glw.SlackBuild b/libraries/glw/glw.SlackBuild new file mode 100644 index 0000000000..2b4aa59e99 --- /dev/null +++ b/libraries/glw/glw.SlackBuild @@ -0,0 +1,111 @@ +#!/bin/bash + +# Slackware build script for glw + +# Copyright 2022 Zbigniew Baniewski, Poland +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=glw +VERSION=${VERSION:-8.0.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-master +tar xvf $CWD/$PRGNAM-master.tar.gz +cd $PRGNAM-master +patch -p1 < $CWD/01-fix_lib_inc_dir.patch +./autogen.sh +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +if [ -d /usr/include/Xm ]; then + SLKCFLAGS="$SLKCFLAGS -D __GLX_MOTIF" +fi + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --includedir=/usr/include/X11/GLw \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG +rm -f $PKG/usr/lib{,64}/*.la + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/glw/glw.info b/libraries/glw/glw.info new file mode 100644 index 0000000000..cb97d4f4d5 --- /dev/null +++ b/libraries/glw/glw.info @@ -0,0 +1,10 @@ +PRGNAM="glw" +VERSION="8.0.0" +HOMEPAGE="https://gitlab.freedesktop.org/mesa/glw" +DOWNLOAD="https://gitlab.freedesktop.org/mesa/glw/-/archive/master/glw-master.tar.gz" +MD5SUM="b3022b9cd08c6aad081efcd10522bba7" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Zbigniew Baniewski" +EMAIL="Zbigniew [dot] Baniewski [at] gmail [dot] com" diff --git a/libraries/glw/slack-desc b/libraries/glw/slack-desc new file mode 100644 index 0000000000..0a046c3f22 --- /dev/null +++ b/libraries/glw/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +glw: glw (SGI's OpenGL Xt/Motif widgets) +glw: +glw: glw brings SGI's OpenGL Xt/Motif widgets, slightly modified by +glw: Jeroen van der Zijp to work better with Mesa. +glw: +glw: Homepage: https://gitlab.freedesktop.org/mesa/glw +glw: +glw: +glw: +glw: +glw: |