ccache: adopted port
This commit is contained in:
parent
ca3ee0060d
commit
5091ccc6f9
@ -1,6 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/Z0OBP9Wp/ktP5NylRMIJyHi+5ecHOwGMztI1ubDy2dQQIysILZe7Fx5JlceuYp8cmyDHJ5tbqCgUbe1q6PLHQk=
|
||||
SHA256 (Pkgfile) = b09da045d3b53365bf8943f562353eca141f2410b030df21ed497ee259fd2f38
|
||||
RWSE3ohX2g5d/WmtiPqv0QrGP/sDXQTVbDmxhpEIGICtrEp5F6YuoBPPEpMPlnX+P/dOJ+NZCJ2ppKaHNCncB9T8sm77sf1rpA0=
|
||||
SHA256 (Pkgfile) = dfeb163b21dc1a98ecce241a60572af7619c170f62bcde74c2fc83358ad67670
|
||||
SHA256 (.footprint) = aa85bfc686cf873efffd292c55eae8016e161bd8074d4f3490539f6089eead23
|
||||
SHA256 (ccache-4.8.2.tar.xz) = 3d3fb3f888a5b16c4fa7ee5214cca76348afd6130e8443de5f6f2424f2076a49
|
||||
SHA256 (ccache.1) = 2f1376814804a041951b4353f8698ee370691ec7bab10e32c5f8d3833da6b241
|
||||
|
@ -1,41 +1,34 @@
|
||||
# Description: A fast compiler cache.
|
||||
# Description: A fast compiler cache
|
||||
# URL: https://ccache.dev/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: cmake
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on:
|
||||
# Optional: asciidoctor hiredis clang-ccache-bindings gcc-fortran-ccache-bindings mingw-ccache-bindings
|
||||
|
||||
name=ccache
|
||||
version=4.8.2
|
||||
release=1
|
||||
source=(https://github.com/$name/$name/releases/download/v$version/$name-$version.tar.xz
|
||||
ccache.1)
|
||||
source=(https://github.com/$name/$name/releases/download/v$version/$name-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
prt-get isinst hiredis && PKGMK_CCACHE+=' -D REDIS_STORAGE_BACKEND=ON' || PKGMK_CCACHE+=' -D REDIS_STORAGE_BACKEND=OFF'
|
||||
prt-get isinst hiredis && PKGMK_CCACHE+=' -D REDIS_STORAGE_BACKEND=ON' || PKGMK_CCACHE+=' -D REDIS_STORAGE_BACKEND=OFF'
|
||||
|
||||
cmake -S $name-$version -B build -G Ninja $PKGMK_CCACHE \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D ENABLE_IPO=ON \
|
||||
-D HIREDIS_FROM_INTERNET=OFF \
|
||||
-D ZSTD_FROM_INTERNET=OFF \
|
||||
-D ENABLE_TESTING=OFF
|
||||
cmake -S $name-$version -B build -G Ninja $PKGMK_CCACHE \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-D ENABLE_IPO=ON \
|
||||
-D HIREDIS_FROM_INTERNET=OFF \
|
||||
-D ZSTD_FROM_INTERNET=OFF \
|
||||
-D ENABLE_TESTING=OFF
|
||||
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
# install bundled man page else generate it with asciidoctor
|
||||
if [ ! -e '/usr/bin/asciidoctor' ]; then
|
||||
install -d $PKG/usr/share/man/man1
|
||||
install -m 644 $SRC/ccache.1 $PKG/usr/share/man/man1/
|
||||
fi
|
||||
install -d $PKG/usr/lib/ccache
|
||||
|
||||
install -d $PKG/usr/lib/ccache
|
||||
|
||||
for c in cc gcc g++ cpp c++; do
|
||||
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
|
||||
done
|
||||
for c in cc gcc g++ cpp c++; do
|
||||
ln -s /usr/bin/ccache $PKG/usr/lib/ccache/$c
|
||||
done
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user