mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
libraries/qt5: Added optional documentation and example options.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
38f57507d6
commit
0baa48d6d9
2 changed files with 31 additions and 4 deletions
|
@ -10,3 +10,11 @@ slackbuilds.org)
|
|||
Note: To build Qt5 with Pulseadio then pass USEPULSE=yes to the slackbuild.
|
||||
|
||||
USEPULSE=yes ./qt5.SlackBuild
|
||||
|
||||
Note2: To build documentation pass DOCS=yes to the slackbuild.
|
||||
|
||||
DOCS=yes ./qt5.SlackBuild
|
||||
|
||||
Note3: To build examples pass EXAMPLES=yes to the slackbuild
|
||||
|
||||
EXAMPLES=yes ./qt5.SlackBuild
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
PRGNAM=qt5
|
||||
VERSION=${VERSION:-5.4.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -96,7 +96,7 @@ 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 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Slackware patch to build against MySQL/MariaDB.
|
||||
patch -p1 < $CWD/patches/qt5.mysql.h.diff
|
||||
|
@ -127,6 +127,13 @@ else
|
|||
sed -i '/qtwebengine/d' qt.pro
|
||||
fi
|
||||
|
||||
# Build examples. Default is no.
|
||||
if [ "${EXAMPLES:-no}" == "yes" ]; then
|
||||
BUILD_EXAMPLES=""
|
||||
else
|
||||
BUILD_EXAMPLES="-nomake examples"
|
||||
fi
|
||||
|
||||
export CFLAGS="$SLKCFLAGS"
|
||||
export CXXFLAGS="$SLKCFLAGS"
|
||||
export OPENSOURCE_CXXFLAGS="$SLKCFLAGS"
|
||||
|
@ -153,18 +160,30 @@ export OPENSOURCE_CXXFLAGS="$SLKCFLAGS"
|
|||
-xcb \
|
||||
-glib \
|
||||
-accessibility \
|
||||
-nomake examples \
|
||||
-no-separate-debug-info \
|
||||
-no-pch \
|
||||
-no-rpath \
|
||||
-no-strip \
|
||||
-release \
|
||||
$RELOCATIONS \
|
||||
$PULSE
|
||||
$PULSE \
|
||||
$BUILD_EXAMPLES
|
||||
|
||||
make
|
||||
make install INSTALL_ROOT=$PKG
|
||||
|
||||
# Install documentation. Default is not to install documentation.
|
||||
if [ "${DOCS:-no}" == "yes" ]; then
|
||||
# Recreate Makefiles in order to use the just compiled qdoc.
|
||||
for doc in $(find . -name "Makefile*" | xargs egrep "^\s/usr/lib${LIBDIRSUFFIX}/qt5/bin/" \
|
||||
| cut -d':' -f1)
|
||||
do
|
||||
rm -fv $doc
|
||||
done
|
||||
make docs
|
||||
make install_docs INSTALL_ROOT=$PKG
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue