mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
77
sci-libs/liborigin/liborigin-3.0.2.recipe
Normal file
77
sci-libs/liborigin/liborigin-3.0.2.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="A library for reading OriginLab OPJ project files"
|
||||
DESCRIPTION="liborigin, standalone version.
|
||||
This code is a standalone library for reading OriginLab project files."
|
||||
HOMEPAGE="https://sourceforge.net/projects/liborigin/"
|
||||
COPYRIGHT="2005-2023 Stefan Gerlach
|
||||
2014-2018 Miquel Garriga
|
||||
2010Knut Franke
|
||||
2006-2010 Ion Vasilief
|
||||
2007-2009 Alex Kargovsky
|
||||
Russell Standish"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://sourceforge.net/projects/liborigin/files/liborigin/${portVersion%.*}/liborigin-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="2581420d427481eee8c371ad5b6ebeba83bd7faa8df117c7a3f7d3250b4429ca"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
liborigin$secondaryArchSuffix = $portVersion
|
||||
cmd:opj2dat$commandSuffix = $portVersion
|
||||
lib:liborigin$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
liborigin${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:liborigin$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
liborigin$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
||||
-DBUILD_STATIC_LIBS=OFF
|
||||
make -Cbuild $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -Cbuild install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
liborigin
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$documentationDir
|
||||
}
|
||||
Reference in New Issue
Block a user