diff options
Diffstat (limited to 'multimedia/wxcam/wxcam.SlackBuild')
-rw-r--r-- | multimedia/wxcam/wxcam.SlackBuild | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/multimedia/wxcam/wxcam.SlackBuild b/multimedia/wxcam/wxcam.SlackBuild index 852b5e82e7..65ff702a15 100644 --- a/multimedia/wxcam/wxcam.SlackBuild +++ b/multimedia/wxcam/wxcam.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for wxcam. # Originally written 11/01/2009 @@ -6,6 +6,7 @@ # Updated for version 1.0.4 27/07/2009 # Updated for version 1.0.7 01/01/2011 # Updated for version 1.1 18/03/2012 +# Modified by B. Watson (BUILD=2) 07/02/2022 (force use of wxPython). # # Copyright 2009-2012 Pierre Cazenave <pwcazenave {at} gmail [dot] com> # All rights reserved. @@ -27,10 +28,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=wxcam VERSION=${VERSION:-1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,7 +44,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -75,13 +86,14 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -std=c++14" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-static \ + --with-wx-config=/usr/lib$LIBDIRSUFFIX/wx/config/gtk2-unicode-release-2.8 \ --build=$ARCH-slackware-linux make wxcamdocdir=/usr/doc/$PRGNAM-$VERSION @@ -100,4 +112,4 @@ 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 |