mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
79 lines
1.8 KiB
Bash
79 lines
1.8 KiB
Bash
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="b394e3bf633888f9f4a3e1449d7c7eb39b778a2e657424177a04cde4afe6965a"
|
|
|
|
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 -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-DBUILD_STATIC_LIBS=OFF
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
liborigin
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$documentationDir
|
|
}
|