79 lines
1.8 KiB
Bash
79 lines
1.8 KiB
Bash
SUMMARY="The Oil Runtime Compiler"
|
|
DESCRIPTION="
|
|
Orc is a library and set of tools for compiling and executing \
|
|
very simple programs that operate on arrays of data. The \"language\" \
|
|
is a generic assembly language that represents many of the features \
|
|
available in SIMD architectures, including saturated addition and \
|
|
subtraction, and many arithmetic operations.
|
|
"
|
|
HOMEPAGE="https://gstreamer.freedesktop.org/projects/orc.html"
|
|
COPYRIGHT="2002-2020 David A. Schleef"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gstreamer.freedesktop.org/src/orc/orc-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="a66e3d8f2b7e65178d786a01ef61f2a0a0b4d0b8370de7ce134ba73da4af18f0"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
orc$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:liborc_0.4$secondaryArchSuffix = 0.32.0 compat >= 0
|
|
lib:liborc_test_0.4$secondaryArchSuffix = 0.32.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
orc${secondaryArchSuffix}_devel = $portVersion compat >= 0.4
|
|
cmd:orc_bugreport$secondaryArchSuffix
|
|
cmd:orcc$secondaryArchSuffix
|
|
devel:liborc_0.4$secondaryArchSuffix = 0.32.0 compat >= 0
|
|
devel:liborc_test_0.4$secondaryArchSuffix = 0.32.0 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
orc$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson build \
|
|
--prefix=$prefix \
|
|
--bindir=$binDir \
|
|
--libdir=$libDir \
|
|
--includedir=$includeDir \
|
|
-Dgtk_doc=disabled
|
|
|
|
cd build
|
|
ninja $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
ninja install
|
|
|
|
mv $prefix/share $dataDir
|
|
|
|
prepareInstalledDevelLibs liborc-0.4 \
|
|
liborc-test-0.4
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$binDir \
|
|
$developDir
|
|
}
|