openbsd-ports/x11/polkit-qt4/patches/patch-PolkitQt-1Config_cmake_in
ajacoutot 2d712ed490 Fix path to POLKITQT-1_*_LIBRARY: unbreak CMake's find_package() function
when looking for PolkitQt-1 (needed for kde 4.7 work).

from Vadim Zhukov, thanks.
2011-10-04 06:07:46 +00:00

17 lines
1.1 KiB
Plaintext

$OpenBSD: patch-PolkitQt-1Config_cmake_in,v 1.1 2011/10/04 06:07:46 ajacoutot Exp $
--- PolkitQt-1Config.cmake.in.orig Tue Oct 4 05:42:32 2011
+++ PolkitQt-1Config.cmake.in Tue Oct 4 05:44:47 2011
@@ -33,9 +33,9 @@ elseif(APPLE)
set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.dylib")
set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.dylib")
else()
- set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-core-1.so")
- set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.so")
- set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.so")
+ set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-core-1.so.${LIBpolkit-qt-core-1_VERSION}")
+ set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.so.${LIBpolkit-qt-agent-1_VERSION}")
+ set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.so.${LIBpolkit-qt-gui-1_VERSION}")
endif()
set(POLKITQT-1_LIBRARIES ${POLKITQT-1_GUI_LIBRARY} ${POLKITQT-1_CORE_LIBRARY} ${POLKITQT-1_AGENT_LIBRARY})