71 lines
1.7 KiB
Bash
71 lines
1.7 KiB
Bash
SUMMARY="Callback Framework for C++"
|
|
DESCRIPTION="A typesafe callback system for standard C++. It allows you to \
|
|
define signals and to connect those signals to any callback function, either \
|
|
global or a member function, regardless of whether it is static or virtual.
|
|
|
|
It also contains adaptor classes for connection of dissimilar callbacks and \
|
|
has an ease of use unmatched by other C++ callback libraries."
|
|
HOMEPAGE="http://libsigc.sourceforge.net/stable.shtml"
|
|
COPYRIGHT="2002-2020 The libsigc++ Development Team"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.9/libsigc++-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="0bf9b301ad6198c550986c51150a646df198e8d1d235270c16486b0dda30097f"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libsigc++$secondaryArchSuffix = $portVersion
|
|
lib:libsigc_2.0$secondaryArchSuffix = 0.0.0 compat = 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libsigc++${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsigc_2.0$secondaryArchSuffix = 0.0.0 compat = 0
|
|
"
|
|
REQUIRES_devel="
|
|
libsigc++$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
mv $libDir/sigc++-2.0/include/sigc++config.h $includeDir/sigc++-2.0
|
|
rm -rf $libDir/sigc++-2.0 $dataDir
|
|
|
|
prepareInstalledDevelLib libsigc-2.0
|
|
rm $developLibDir/*.la
|
|
fixPkgconfig
|
|
|
|
sed -i -e 's|-I${libdir}/sigc++-2.0/include||' \
|
|
$developLibDir/pkgconfig/sigc++-2.0.pc
|
|
|
|
packageEntries devel $relativeDevelopDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|