mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
108 lines
2.7 KiB
Bash
108 lines
2.7 KiB
Bash
SUMMARY="The SPICE client and server library"
|
|
DESCRIPTION="The SPICE package provides the SPICE server library and client.
|
|
|
|
These components are used to provide access to a remote machine's display and devices"
|
|
HOMEPAGE="https://www.spice-space.org/"
|
|
COPYRIGHT="2009 Red Hat, Inc"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.spice-space.org/download/releases/spice-server/spice-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="ada9af67ab321916bd7eb59e3d619a4a7796c08a28c732edfc7f02fc80b1a37a"
|
|
SOURCE_DIR="spice-$portVersion"
|
|
PATCHES="spice-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.14.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
spice$secondaryArchSuffix = $portVersion
|
|
lib:libspice_server$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
#lib:libgstreamer_1.0$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblz4$secondaryArchSuffix
|
|
lib:libopus$secondaryArchSuffix
|
|
lib:liborc_0.4$secondaryArchSuffix
|
|
lib:libpixman_1$secondaryArchSuffix
|
|
lib:libsasl2$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libX11$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
spice${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libspice_server$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
spice$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
#devel:libgstreamer_1.0$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:liblz4$secondaryArchSuffix
|
|
devel:libopus$secondaryArchSuffix
|
|
devel:liborc_0.4$secondaryArchSuffix
|
|
devel:libpixman_1$secondaryArchSuffix
|
|
devel:libsasl2$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libX11$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
devel:spice_protocol
|
|
pyparsing_python3
|
|
six_python3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:openssl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -rf build
|
|
|
|
chmod +x build-aux/meson/check-spice-common
|
|
|
|
export LDFLAGS="-lnetwork -lbsd"
|
|
|
|
meson build --buildtype=release \
|
|
--prefix=$prefix --libdir=$libDir --datadir=$dataDir --bindir=$binDir \
|
|
--includedir=$includeDir --sysconfdir=$settingsDir --sbindir=$binDir \
|
|
--libexecdir=$libDir --localedir=$dataDir/locale \
|
|
-Dgstreamer=no \
|
|
-Dsasl=true \
|
|
-Dtests=false \
|
|
-Dlz4=true \
|
|
-Dopus=enabled \
|
|
-Dmanual=false
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLibs \
|
|
libspice-server
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|