From 193525bbe8a285e50c00fc1d04905cf2c8d3bb59 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 27 Apr 2023 16:57:36 +0200 Subject: [PATCH] libelf, remove static library (#8538) --- dev-libs/libelf/libelf-0.8.13.recipe | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/dev-libs/libelf/libelf-0.8.13.recipe b/dev-libs/libelf/libelf-0.8.13.recipe index fc94e715e..13bec5b92 100644 --- a/dev-libs/libelf/libelf-0.8.13.recipe +++ b/dev-libs/libelf/libelf-0.8.13.recipe @@ -1,6 +1,5 @@ SUMMARY="ELF object file access library" -DESCRIPTION=" -Libelf lets you read, modify or create ELF files in an architecture-independent \ +DESCRIPTION="Libelf lets you read, modify or create ELF files in an architecture-independent \ way. The library takes care of size and endian issues, e.g. you can process a \ file for SPARC processors on an Intel-based system. This library is a \ clean-room rewrite of the System V Release 4 library and is source code \ @@ -8,17 +7,20 @@ compatible with it." HOMEPAGE="http://www.mr511.de/software/english.html" COPYRIGHT="1995-2008 Michael Riepe" LICENSE="GNU LGPL v2" -REVISION="3" -SOURCE_URI="http://www.mr511.de/software/libelf-0.8.13.tar.gz" +REVISION="4" +SOURCE_URI="https://fossies.org/linux/misc/old/libelf-0.8.13.tar.gz" CHECKSUM_SHA256="591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d" PATCHES="libelf-0.8.13.patch" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86_gcc2 x86" +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + PROVIDES=" libelf$secondaryArchSuffix = $portVersion - lib:libelf$secondaryArchSuffix = $portVersion + lib:libelf$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix @@ -26,7 +28,7 @@ REQUIRES=" PROVIDES_devel=" libelf${secondaryArchSuffix}_devel = $portVersion - devel:libelf$secondaryArchSuffix = $portVersion + devel:libelf$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" lib:libelf$secondaryArchSuffix == $portVersion base @@ -47,7 +49,7 @@ BUILD() { libtoolize -fci autoreconf - runConfigure ./configure + runConfigure ./configure --disable-nls make } @@ -55,6 +57,12 @@ INSTALL() { make install make install-compat + + # remove static library + rm -f $libDir/libelf.a + prepareInstalledDevelLib libelf + fixPkgconfig + packageEntries devel $developDir }