mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
87 lines
2.0 KiB
Bash
87 lines
2.0 KiB
Bash
SUMMARY="A library for solving packages and reading repositories"
|
|
DESCRIPTION="A Library for solving packages and reading repositories."
|
|
HOMEPAGE="https://github.com/openSUSE/libsolv"
|
|
COPYRIGHT="2007-2013, Novell Inc."
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="4"
|
|
srcGitRev="01ed09a3e1f4637f72d4239fe3724fcafa39be94"
|
|
SOURCE_URI="https://github.com/weinhold/libsolv/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="4e96208d44dc15ed7ac95a86f35790f34a2bb97c0f0aa3dc355263a54a6ea7e1"
|
|
SOURCE_FILENAME="$portVersionedName.tar.gz"
|
|
SOURCE_DIR="libsolv-$srcGitRev"
|
|
PATCHES="libsolv-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libsolv$secondaryArchSuffix = $portVersion
|
|
lib:libsolv$secondaryArchSuffix = $portVersion
|
|
lib:libsolvext$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libexpat$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libsolv${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsolv${secondaryArchSuffix} = $portVersion
|
|
devel:libsolvext${secondaryArchSuffix} = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
libsolv${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i 's,${CMAKE_INSTALL_PREFIX}/bin',$binDir, CMakeLists.txt
|
|
sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, \
|
|
src/CMakeLists.txt ext/CMakeLists.txt
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix -DLIB=$relativeLibDir ..
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
# set up the develop directory correctly
|
|
prepareInstalledDevelLibs libsolv libsolvext
|
|
|
|
# move cmake files
|
|
mkdir -p $dataDir
|
|
mv $prefix/share/cmake $dataDir
|
|
rmdir $prefix/share
|
|
|
|
# We don't want the executables.
|
|
rm -r $prefix/bin
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$dataDir \
|
|
$developDir
|
|
}
|