mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
173 lines
4.4 KiB
Bash
173 lines
4.4 KiB
Bash
SUMMARY="Multi-platform helper library for security applications and libraries"
|
|
DESCRIPTION="OS abstraction functions for various projects"
|
|
HOMEPAGE="http://www.aqbanking.de"
|
|
COPYRIGHT="Martin Preuss"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/aqbanking/gwenhywfar/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d52937b56e0760d11dc200ad5fb2cfd9d8bf147d0b1b97451f23f31c6ee641a2"
|
|
PATCHES="gwenhywfar-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="79.14.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gwenhywfar$secondaryArchSuffix = $portVersion
|
|
lib:libgwengui_cpp$secondaryArchSuffix = $libVersionCompat
|
|
lib:libgwenhywfar$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gwenhywfar${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:gwenhywfar_config$commandSuffix
|
|
devel:libgwengui_cpp$secondaryArchSuffix = $libVersionCompat
|
|
devel:libgwenhywfar$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gwenhywfar$secondaryArchSuffix == $portVersion base
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgnutls$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_gtk3="
|
|
gwenhywfar${secondaryArchSuffix}_gtk3 = $portVersion
|
|
lib:libgwengui_gtk3$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_gtk3="
|
|
haiku$secondaryArchSuffix
|
|
gwenhywfar$secondaryArchSuffix == $portVersion base
|
|
lib:libatk_1.0$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libcairo_gobject$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgdk_3$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libpango_1.0$secondaryArchSuffix
|
|
lib:libpangocairo_1.0$secondaryArchSuffix
|
|
"
|
|
PROVIDES_gtk3_devel="
|
|
gwenhywfar${secondaryArchSuffix}_gtk3_devel = $portVersion
|
|
devel:libgwengui_gtk3$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_gtk3_devel="
|
|
gwenhywfar${secondaryArchSuffix}_gtk3
|
|
gwenhywfar${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
|
|
SUMMARY_tools="Command line utilities for gwenhywfar"
|
|
PROVIDES_tools="
|
|
gwenhywfar${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:gct_tool$commandSuffix
|
|
cmd:gsa$commandSuffix
|
|
cmd:gwbuild$commandSuffix
|
|
cmd:mklistdoc$commandSuffix
|
|
cmd:typemaker$commandSuffix
|
|
cmd:typemaker2$commandSuffix
|
|
cmd:xmlmerge$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
haiku$secondaryArchSuffix
|
|
gwenhywfar$secondaryArchSuffix == $portVersion base
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgnutls$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libgettextlib$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gettext$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs "binDir" ./configure \
|
|
--bindir=$commandBinDir \
|
|
--with-guis=gtk3 \
|
|
LDFLAGS="-lnetwork"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.la
|
|
|
|
prepareInstalledDevelLibs \
|
|
libgwengui-cpp \
|
|
libgwengui-gtk3 \
|
|
libgwenhywfar
|
|
|
|
fixPkgconfig
|
|
|
|
# gtk3 package
|
|
packageEntries gtk3 \
|
|
$libDir/libgwengui-gtk3.so.79*
|
|
|
|
# gtk3_devel package
|
|
packageEntries gtk3_devel \
|
|
$developLibDir/libgwengui-gtk3.* \
|
|
$developLibDir/pkgconfig/gwengui-gtk3.pc \
|
|
$includeDir/gwenhywfar5/gwen-gui-gtk3
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$commandBinDir/gwenhywfar-config \
|
|
$dataDir/aclocal \
|
|
$libDir/cmake
|
|
|
|
# tools package
|
|
packageEntries tools \
|
|
$commandBinDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|