coin-or-Clp/coin-or-Clp-pkgconfig.patch

13 lines
814 B
Diff

diff -up Clp-1.15.7/Makefile.in.orig Clp-1.15.7/Makefile.in
--- Clp-1.15.7/Makefile.in.orig 2014-07-16 12:34:46.203191658 -0300
+++ Clp-1.15.7/Makefile.in 2014-07-16 12:34:57.902192106 -0300
@@ -908,7 +908,7 @@ uninstall-local: uninstall-doc
install-data-hook:
@$(mkdir_p) "$(addlibsdir)"
-@COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
+@COIN_HAS_PKGCONFIG_TRUE@ PKG_CONFIG_PATH=$(DESTDIR)$(pkgconfiglibdir) \
@COIN_HAS_PKGCONFIG_TRUE@ $(PKG_CONFIG) --libs clp > $(addlibsdir)/clp_addlibs.txt
@COIN_CXX_IS_CL_TRUE@@COIN_HAS_PKGCONFIG_FALSE@ echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libClp.lib @CLPLIB_LIBS_INSTALLED@" > $(addlibsdir)/clp_addlibs.txt
@COIN_CXX_IS_CL_FALSE@@COIN_HAS_PKGCONFIG_FALSE@ echo -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@ > $(addlibsdir)/clp_addlibs.txt