diff mbox

[1/2] package/tiff: create a symlink to libtiff-4.pc

Message ID 1430577154-5790-1-git-send-email-romain.naour@openwide.fr
State Rejected
Headers show

Commit Message

Romain Naour May 2, 2015, 2:32 p.m. UTC
Some packages like libevas still use pkg-config --libs libtiff
to find libtiff's LDFLAGS.
Since Buildroot only have tiff 4.0.3, create a symlink to
libtiff-4.pc for theses packages.

Fixes:
http://autobuild.buildroot.net/results/e5f/e5fb1e62cb634b20233751b4ea3b0630de70e9e0/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 package/tiff/tiff.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Thomas Petazzoni May 2, 2015, 3:10 p.m. UTC | #1
Dear Romain Naour,

On Sat,  2 May 2015 16:32:33 +0200, Romain Naour wrote:
> Some packages like libevas still use pkg-config --libs libtiff
> to find libtiff's LDFLAGS.
> Since Buildroot only have tiff 4.0.3, create a symlink to
> libtiff-4.pc for theses packages.

Isn't it better to fix libevas to use libtiff-4 instead?

Thomas
diff mbox

Patch

diff --git a/package/tiff/tiff.mk b/package/tiff/tiff.mk
index 6db2abd..7eb2cae 100644
--- a/package/tiff/tiff.mk
+++ b/package/tiff/tiff.mk
@@ -74,4 +74,10 @@  endif
 
 TIFF_MAKE = $(MAKE) SUBDIRS="$(TIFF_SUBDIRS)"
 
+define TIFF_PKG_CONFIG_FIXUP
+	ln -s libtiff-4.pc $(STAGING_DIR)/usr/lib/pkgconfig/libtiff.pc
+endef
+
+TIFF_POST_INSTALL_STAGING_HOOKS = TIFF_PKG_CONFIG_FIXUP
+
 $(eval $(autotools-package))