summaryrefslogtreecommitdiffstats
path: root/graphics/hugin/hugin.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/hugin/hugin.SlackBuild')
-rw-r--r--graphics/hugin/hugin.SlackBuild44
1 files changed, 29 insertions, 15 deletions
diff --git a/graphics/hugin/hugin.SlackBuild b/graphics/hugin/hugin.SlackBuild
index 8a31feb9ee..e90b451e18 100644
--- a/graphics/hugin/hugin.SlackBuild
+++ b/graphics/hugin/hugin.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for Hugin
#
# Copyright 2009-2010 Erik W. Hanson, Minneapolis, MN, USA
-# Copyright 2011-2018 by titopoquito (titopoquito@gmail.com)
+# Copyright 2011-2024 by titopoquito (titopoquito@gmail.com)
# Thanks to Romain Dartigues for the help with the update to 2016.2.0
# All rights reserved.
#
@@ -24,10 +24,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230630 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - fix permissions of files in /usr/doc (they were 770).
+
+# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix build if /usr/bin/wx-config points to wxPython2.
+# - remove install instructions from doc dir.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=hugin
-VERSION=${VERSION:-2018.0.0}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2023.0.0}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +47,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -65,16 +79,20 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
+zcat $CWD/boost-1.85.0-patch | patch -p0
+
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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
mkdir -p build
cd build
cmake \
+ -DwxWidgets_CONFIG_EXECUTABLE=/usr/lib$LIBDIRSUFFIX/wx/config/gtk3-unicode-3.0 \
+ -DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-3.0 \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
@@ -83,23 +101,19 @@ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..
-make install DESTDIR=$PKG
+make install/strip DESTDIR=$PKG
cd ..
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mv $PKG/usr/share/man $PKG/usr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING.txt Changes.txt INSTALL_cmake README \
- TODO $PKG/usr/doc/$PRGNAM-$VERSION
+install -m0644 -oroot -groot AUTHORS COPYING.txt Changes.txt README TODO \
+ $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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE