summaryrefslogtreecommitdiff
path: root/source/d/ccache
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2020-10-19 20:16:19 +0000
committerEric Hameleers <alien@slackware.com>2020-10-20 08:59:56 +0200
commita5a6e494a74ca91943ba9e0831b225ac19b1ee1b (patch)
tree8df8343bd91fa5a86cfe84e3e061e45a5b7faba7 /source/d/ccache
parent12e5feaa943ad3f13e80248edc442dab02e5ed7f (diff)
downloadcurrent-a5a6e494a74ca91943ba9e0831b225ac19b1ee1b.tar.gz
Mon Oct 19 20:16:19 UTC 202020201019201619
a/glibc-zoneinfo-2020c-noarch-1.txz: Upgraded. This package provides the latest timezone updates. d/ccache-4.0-x86_64-1.txz: Upgraded. Please note that the default cache directory has been changed to $HOME/.cache/ccache and the default config file has been changed to $HOME/.config/ccache/ccache.conf. You'll probably want to move your existing config file if you've set any options, and then clear out the old location of $HOME/.ccache to avoid wasting storage space. d/python-pip-20.2.4-x86_64-1.txz: Upgraded. d/python-setuptools-50.3.2-x86_64-1.txz: Upgraded. l/glib2-2.66.2-x86_64-1.txz: Upgraded. l/mozjs78-78.4.0esr-x86_64-1.txz: Upgraded. l/python-urllib3-1.25.11-x86_64-1.txz: Upgraded. x/pyxdg-0.27-x86_64-1.txz: Upgraded. xap/mozilla-firefox-78.4.0esr-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://www.mozilla.org/en-US/firefox/78.4.0/releasenotes/
Diffstat (limited to 'source/d/ccache')
-rwxr-xr-xsource/d/ccache/ccache.SlackBuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/source/d/ccache/ccache.SlackBuild b/source/d/ccache/ccache.SlackBuild
index 905a2046..f5c0f6b2 100755
--- a/source/d/ccache/ccache.SlackBuild
+++ b/source/d/ccache/ccache.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2017, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -63,13 +63,26 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-./configure \
- --prefix=/usr \
- --mandir=/usr/man \
- --sysconfdir=/etc || exit 1
-
-make $NUMJOBS || make || exit 1
-make install DESTDIR=$PKG || exit 1
+# Configure, build, and install:
+mkdir cmake-build
+cd cmake-build
+ cmake \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
+ -DDOC_INSTALL_DIR="doc" \
+ -DMAN_INSTALL_DIR=/usr/man \
+ .. || exit 1
+ make $NUMJOBS || make || exit 1
+ make install DESTDIR=$PKG || exit 1
+ # Generate and install man page:
+ ( cd doc
+ make doc-man-page
+ mkdir -p $PKG/usr/man/man1
+ cat Ccache.1 > $PKG/usr/man/man1/ccache.1
+ )
+cd ..
# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
@@ -88,7 +101,7 @@ fi
mkdir -p $PKG/usr/doc/ccache-$VERSION
cp -a \
- *.md *.txt *.html \
+ CONTRIBUTING* *GPL* LICENSE* README* doc/*.md doc/AUTHORS* doc/NEWS* \
$PKG/usr/doc/ccache-$VERSION
# Strip binaries: