snappy: add a pkgconfig file.

This commit is contained in:
Jerome Duval
2017-11-20 20:36:51 +01:00
parent 940cfed36a
commit 35e2133439

View File

@@ -8,7 +8,7 @@ for most inputs, but the resulting compressed files are anywhere from 20% to \
HOMEPAGE="https://google.github.io/snappy/"
COPYRIGHT="2005-2017 Google Inc"
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/google/snappy/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="3dfa02e873ff51a11ee02b9ca391807f0c8ea0529a4924afa645fbf97163f9d4"
@@ -54,6 +54,21 @@ INSTALL()
make install
prepareInstalledDevelLib libsnappy
mkdir -p $developLibDir/pkgconfig
cat > $developLibDir/pkgconfig/snappy.pc << EOF
prefix=${prefix}
exec_prefix=${prefix}
libdir=${libDir}
includedir=${includeDir}
Name: snappy
Description: A fast compression/decompression library
Version: $portVersion
Libs: -L${developLibDir} -lsnappy
Cflags: -I${includedir}
EOF
packageEntries devel \
$developDir \
$libDir/cmake