mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
119 lines
3.1 KiB
Bash
119 lines
3.1 KiB
Bash
SUMMARY="SignOn Daemon (Qt)"
|
|
DESCRIPTION="The SignOn daemon is a D-Bus service which performs user authentication on behalf of \
|
|
its clients. There are currently authentication plugins for OAuth 1.0 and 2.0, SASL, Digest-MD5, \
|
|
and plain username/password combination."
|
|
HOMEPAGE="https://gitlab.com/accounts-sso/signond/"
|
|
COPYRIGHT="2014 Developer name
|
|
2016 Another developer's name"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/-/archive/VERSION_$portVersion/signond-VERSION_$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="5d9f29fbf5892d01e38ce931b9a69c4bb08e6788f6cbdc80c277f4723b44249d"
|
|
SOURCE_DIR="signond-VERSION_$portVersion"
|
|
PATCHES="signond-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
signond_qt5$secondaryArchSuffix = $portVersion
|
|
lib:libsignon_extension$secondaryArchSuffix = $libVersionCompat
|
|
lib:libsignon_plugins_common$secondaryArchSuffix = $libVersionCompat
|
|
lib:libsignon_plugins$secondaryArchSuffix = $libVersionCompat
|
|
lib:libsignon_qt5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Sql$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
CONFLICTS="
|
|
signond_qt6$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
signond_qt5${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsignon_extension$secondaryArchSuffix = $libVersionCompat
|
|
devel:libsignon_plugins_common$secondaryArchSuffix = $libVersionCompat
|
|
devel:libsignon_plugins$secondaryArchSuffix = $libVersionCompat
|
|
devel:libsignon_qt5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
signond_qt5$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
signond_qt5${secondaryArchSuffix}_tools = $portVersion
|
|
cmd:signond = $portVersion
|
|
cmd:signonpluginprocess = $portVersion
|
|
"
|
|
REQUIRES_tools="
|
|
signond_qt5$secondaryArchSuffix == $portVersion base
|
|
$REQUIRES
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Sql$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:doxygen
|
|
cmd:dot
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
cmd:qmake$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
qmake PREFIX=$prefix DATADIR=$dataDir LIBDIR=$libDir INCLUDEDIR=$includeDir
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# cleanup
|
|
rm -f $libDir/libsignon-qt5.a
|
|
|
|
# move things around
|
|
mkdir $dataDir
|
|
mv $prefix/share/dbus-1 $dataDir
|
|
rm -rf $prefix/share
|
|
|
|
prepareInstalledDevelLibs \
|
|
libsignon-extension \
|
|
libsignon-plugins-common \
|
|
libsignon-plugins \
|
|
libsignon-qt5
|
|
fixPkgconfig
|
|
|
|
ln -fs $developLibDir/libsignon-qt5.so.$libVersion $libDir/libsignon-qt5.so
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$developDir
|
|
|
|
packageEntries tools \
|
|
$prefix/bin
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|