mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
snappy: add a pkgconfig file.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user