[Buildroot] [PATCH v2 1/2] package/libtomcrypt: add pkgconfig support

Arnout Vandecappelle arnout at mind.be
Tue May 4 20:18:53 UTC 2021



On 02/05/2021 12:50, Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
> Changes v1 -> v2:
>   - use libtomcrypt provided libtomcrypt.pc.in template file
> ---
>  package/libtomcrypt/libtomcrypt.mk | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/package/libtomcrypt/libtomcrypt.mk b/package/libtomcrypt/libtomcrypt.mk
> index fccd4b051c..3d166a6854 100644
> --- a/package/libtomcrypt/libtomcrypt.mk
> +++ b/package/libtomcrypt/libtomcrypt.mk
> @@ -27,6 +27,10 @@ define LIBTOMCRYPT_INSTALL_STAGING_CMDS
>  	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" \
>  		PREFIX=/usr NODOCS=1 INSTALL_USER=$(shell id -u) \
>  		INSTALL_GROUP=$(shell id -g) install
> +	sed -e 's,^prefix=.*,prefix=/usr,' \
> +		-e 's,^Version:.*,Version: $(LIBTOMCRYPT_VERSION),' \
> +		$(@D)/libtomcrypt.pc.in \
> +		> $(STAGING_DIR)/usr/lib/pkgconfig/libtomcrypt.pc

 What about the option of using makefile.unix so we don't have to do this ourselves?

 I've kept the patch as New in patchwork in case you don't see that as feasible.

 Regards,
 Arnout

>  endef
>  
>  $(eval $(generic-package))
> 



More information about the buildroot mailing list