mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
106 lines
2.4 KiB
Bash
106 lines
2.4 KiB
Bash
SUMMARY="The libofx OFX banking protocol abstraction library"
|
|
DESCRIPTION="API designed to allow applications to support OFX command responses, \
|
|
usually provided by financial institutions"
|
|
HOMEPAGE="https://github.com/libofx/libofx/"
|
|
COPYRIGHT="2002-2010 Benoit Grégoire"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libofx/libofx/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ea9fa07759622ecc7f25b637fa8fb34d587af80607ca4389d25966a6a4f94ab9"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="7.0.4"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libofx$secondaryArchSuffix = $portVersion
|
|
lib:libofx$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libosp$secondaryArchSuffix
|
|
lib:libsigc_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libofx${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libofx$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libofx$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
SUMMARY_tools="Command line tools for libofx"
|
|
PROVIDES_tools="
|
|
libofx${secondaryArchSuffix}_tools
|
|
cmd:ofx2qif$commandSuffix
|
|
cmd:ofxconnect$commandSuffix
|
|
cmd:ofxdump$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
haiku$secondaryArchSuffix
|
|
libofx$secondaryArchSuffix == $portVersion base
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libglibmm_2.4$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libosp$secondaryArchSuffix
|
|
lib:libsigc_2.0$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libxml++_2.6$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libosp$secondaryArchSuffix
|
|
devel:libxml++_2.6$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-GNinja
|
|
ninja -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib libofx
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$dataDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ctest --test-dir build --output-on-failure
|
|
}
|