mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
gflags: new recipe (#1359)
This commit is contained in:
73
dev-cpp/gflags/gflags-2.2.0.recipe
Normal file
73
dev-cpp/gflags/gflags-2.2.0.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="Google's C++ argument parsing library"
|
||||
DESCRIPTION="The gflags package contains a C++ library that implements \
|
||||
commandline flags processing. It includes built-in support for standard \
|
||||
types such as string and the ability to define flags in the source file in \
|
||||
which they are used."
|
||||
HOMEPAGE="https://gflags.github.io/gflags/"
|
||||
COPYRIGHT="2006 Google Inc."
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/gflags/gflags/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="466c36c6508a451734e4f4d76825cf9cd9b8716d2b70ef36479ae40f08271f88"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
gflags$secondaryArchSuffix = $portVersion
|
||||
cmd:gflags_completions.sh
|
||||
lib:libgflags$secondaryArchSuffix = $portVersion compat >= 2.2
|
||||
lib:libgflags_nothreads$secondaryArchSuffix = $portVersion compat >= 2.2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gflags${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgflags$secondaryArchSuffix = $portVersion compat >= 2.2
|
||||
devel:libgflags_nothreads$secondaryArchSuffix = $portVersion compat >= 2.2
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gflags$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
|
||||
cmake -G "Unix Makefiles" .. \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLIBRARY_INSTALL_DIR:PATH=$libDir \
|
||||
-DBUILD_SHARED_LIBS:BOOL=ON \
|
||||
-DBUILD_gflags_LIB:BOOL=ON
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir/
|
||||
rmdir $prefix/include
|
||||
|
||||
prepareInstalledDevelLibs libgflags libgflags_nothreads
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user