mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
libplatform, fix for cmake > 4, move/rename to proper place (#12856)
This commit is contained in:
@@ -3,11 +3,11 @@ DESCRIPTION="This library provides platform specific support for other libraries
|
||||
HOMEPAGE="http://libcec.pulse-eight.com/"
|
||||
COPYRIGHT="2011-2015 Pulse-Eight Limited"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/Pulse-Eight/platform/archive/p8-platform-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0"
|
||||
SOURCE_DIR="platform-p8-platform-$portVersion"
|
||||
PATCHES="libp8_platform-$portVersion.patchset"
|
||||
PATCHES="libplatform-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -16,19 +16,22 @@ libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libp8_platform$secondaryArchSuffix = $portVersion
|
||||
libplatform$secondaryArchSuffix = $portVersion
|
||||
lib:libp8_platform$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
REPLACES="
|
||||
libp8_platform$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libp8_platform${secondaryArchSuffix}_devel = $portVersion
|
||||
libplatform${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libp8_platform$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libp8_platform$secondaryArchSuffix == $portVersion base
|
||||
libplatform$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -44,11 +47,14 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCMAKE_INSTALL_LIBDIR=$libDir \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
||||
-DBUILD_SHARED_LIBS=1
|
||||
-DBUILD_SHARED_LIBS=1 \
|
||||
-Wno-dev
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user