mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/qwt: Don't build examples by defalt.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
596c4689aa
commit
16c6a38dc0
2 changed files with 25 additions and 7 deletions
|
@ -5,3 +5,7 @@ widget, different kinds of sliders, and much more.
|
|||
|
||||
Optional dependency: qt4. If installed, the package will include qt4
|
||||
support.
|
||||
|
||||
If you're interested in developing software that uses qwt, you might
|
||||
want to build this with EXAMPLES=yes in the environment. This will
|
||||
compile the example programs and install them in the doc dir.
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
# Modified by the Slackbuilds.org project
|
||||
# Maintained 2015-2021 by Christoph Willing <chris.willing@linux.com>
|
||||
|
||||
# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3:
|
||||
# - don't build and install the example binaries by default;
|
||||
# add EXAMPLES=yes option.
|
||||
|
||||
# 20220222 bkw: Modified by SlackBuilds.org:
|
||||
# - add optional qt4 support.
|
||||
|
||||
|
@ -15,7 +19,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=qwt
|
||||
VERSION=${VERSION:-6.1.6}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -66,6 +70,12 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \+
|
||||
|
||||
# 20220419 bkw: don't build the examples by default. they're not
|
||||
# particularly useful. the sources to the examples are installed in
|
||||
# the doc dir, if users want to play with them.
|
||||
[ "${EXAMPLES:-no}" != "yes" ] &&
|
||||
sed -i '/^QWT_CONFIG.*QwtExamples/s,^,#,' qwtconfig.pri
|
||||
|
||||
if [ -x /usr/lib$LIBDIRSUFFIX/qt4/bin/qmake ]; then
|
||||
mkdir -p build-qt4
|
||||
cd build-qt4
|
||||
|
@ -95,13 +105,17 @@ mv $PKG/usr/doc/man $PKG/usr
|
|||
rm -f $PKG/usr/man/man3/_tmp*
|
||||
gzip -9 $PKG/usr/man/man*/*
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
cp -a build/examples/bin $PKG/usr/doc/$PRGNAM-$VERSION/examples/
|
||||
cp -a examples/* $PKG/usr/doc/$PRGNAM-$VERSION/examples/
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC/examples
|
||||
cp -a examples/* $PKGDOC/examples/
|
||||
if [ "${EXAMPLES:-no}" = "yes" ]; then
|
||||
mkdir -p $PKGDOC/examples/bin
|
||||
install -s -m0755 build/examples/bin/* $PKGDOC/examples/bin
|
||||
fi
|
||||
|
||||
mv $PKG/usr/doc/html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CHANGES* COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
mv $PKG/usr/doc/html $PKGDOC
|
||||
cp -a CHANGES* COPYING README $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
Loading…
Reference in a new issue