provide a clean solution for the pkg-config issue of package exiv2

This commit is contained in:
Volker Grabsch 2011-07-29 14:28:06 +02:00
parent 4570c759bc
commit 9a1cc4900c
2 changed files with 15 additions and 2 deletions

15
src/exiv2-r2571.patch Normal file
View File

@ -0,0 +1,15 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
This patch has been taken from:
http://dev.exiv2.org/projects/exiv2/repository/revisions/2571
--- a/config/exiv2.pc.in
+++ b/config/exiv2.pc.in
@@ -7,5 +7,5 @@ Name: exiv2
Description: Image metadata library and tools
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lexiv2 @EXV_LIB_STATIC@
-Libs.private: @LDFLAGS@ @EXPAT_LDFLAGS@ @LTLIBINTL@ @LTLIBICONV@ @LIBS@ @EXPAT_LIBS@
+Libs.private: @EXPAT_LDFLAGS@ @LTLIBINTL@ @LTLIBICONV@ @LIBS@ @EXPAT_LIBS@
Cflags: -I${includedir}

View File

@ -31,8 +31,6 @@ define $(PKG)_BUILD
--disable-visibility \
--disable-nls \
--with-expat
# fix pkg-config linker flags
$(SED) -i 's,-no-undefined,,' '$(1)/config/exiv2.pc'
$(MAKE) -C '$(1)/xmpsdk/src' -j '$(JOBS)'
$(MAKE) -C '$(1)/src' -j '$(JOBS)' install-lib
endef