From 9d47280ce1762592fd211cc90efa34bffa5d09ff Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 25 Apr 2023 15:53:13 +0200 Subject: [PATCH] libhx, bump to building version (#8523) --- .../{libhx-3.22.recipe => libhx-3.26.recipe} | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) rename sys-libs/libhx/{libhx-3.22.recipe => libhx-3.26.recipe} (69%) diff --git a/sys-libs/libhx/libhx-3.22.recipe b/sys-libs/libhx/libhx-3.26.recipe similarity index 69% rename from sys-libs/libhx/libhx-3.22.recipe rename to sys-libs/libhx/libhx-3.26.recipe index c6e9acd26..0fbe907b8 100644 --- a/sys-libs/libhx/libhx-3.22.recipe +++ b/sys-libs/libhx/libhx-3.26.recipe @@ -9,20 +9,23 @@ consolidating tasks that often happen to be open-coded, such as (simple) \ config file reading, option parsing, directory traversal, and others, into a \ library. The focus is on reducing the amount of time (and secondarily, the \ amount of code) a developer has to spend for otherwise implementing such." -HOMEPAGE="http://libhx.sourceforge.net/" -COPYRIGHT="2007-2014 Jan Engelhardt" +HOMEPAGE="https://inai.de/projects/libhx/" +COPYRIGHT="2007-2021 Jan Engelhardt" LICENSE="GNU LGPL v2" REVISION="1" -SOURCE_URI="http://sourceforge.net/projects/libhx/files/libHX/$portVersion/libHX-$portVersion.tar.xz" -CHECKSUM_SHA256="cc2087a964a82d2e50e8161cf458481ededebb7021e4660410cf53248a4c83a3" +SOURCE_URI="https://inai.de/files/libhx/libHX-$portVersion.tar.xz" +CHECKSUM_SHA256="67e2dd0b5b888ab8c02362d043ac2d4dd26eb5bb976064603b57b3e3a7adb209" SOURCE_DIR="libHX-$portVersion" -ARCHITECTURES="?all !x86_gcc2" +ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" +libVersion="32.0.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + PROVIDES=" libhx$secondaryArchSuffix = $portVersion - lib:libHX$secondaryArchSuffix = 28.3.0 compat >= 28 + lib:libHX$secondaryArchSuffix = $libVersionCompat lib:libHX_rtcheck$secondaryArchSuffix " REQUIRES=" @@ -31,11 +34,10 @@ REQUIRES=" PROVIDES_devel=" libhx${secondaryArchSuffix}_devel = $portVersion - devel:libHX$secondaryArchSuffix = 28.3.0 compat >= 28 + devel:libHX$secondaryArchSuffix = $libVersionCompat devel:libHX_rtcheck$secondaryArchSuffix " REQUIRES_devel=" - haiku${secondaryArchSuffix}_devel libhx$secondaryArchSuffix == $portVersion base " @@ -43,14 +45,18 @@ BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf cmd:awk cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix cmd:make " BUILD() { - sh autogen.sh + export LIBS="-lnetwork" + autoreconf -vfi runConfigure ./configure make $jobArgs } @@ -59,9 +65,17 @@ INSTALL() { make install + # removee libtool files + rm -f $libDir/*.la + prepareInstalledDevelLibs \ libHX libHX_rtcheck fixPkgconfig packageEntries devel \ $developDir } + +TEST() +{ + make check +}