diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2009-09-24 20:38:20 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2009-09-24 20:38:20 +0000 |
commit | c8256e6ac29c04aeb94f7e67bc4b40ac031f8bfd (patch) | |
tree | 133095ab9f6af7829dbf711c1d125480eb42954b /x11/kdelibs4/files | |
parent | def7062c1e48cf8321a448806ccaecec52856e51 (diff) | |
download | ports-c8256e6ac29c04aeb94f7e67bc4b40ac031f8bfd.tar.gz ports-c8256e6ac29c04aeb94f7e67bc4b40ac031f8bfd.zip |
Notes
Diffstat (limited to 'x11/kdelibs4/files')
3 files changed, 235 insertions, 25 deletions
diff --git a/x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake b/x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake index 9e9c2e2e5ed0..b706d00de0fe 100644 --- a/x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake +++ b/x11/kdelibs4/files/patch-cmake_modules_FindKdcraw.cmake @@ -1,11 +1,87 @@ ---- ./cmake/modules/FindKdcraw.cmake.orig 2009-01-06 17:27:37.000000000 +0000 -+++ ./cmake/modules/FindKdcraw.cmake 2009-01-25 08:34:44.000000000 +0000 -@@ -51,7 +51,7 @@ +--- ./cmake/modules/FindKdcraw.cmake.orig 2009-05-08 02:16:53.000000000 +0400 ++++ ./cmake/modules/FindKdcraw.cmake 2009-09-23 00:36:17.000000000 +0400 +@@ -45,63 +45,33 @@ + + else(KDCRAW_LOCAL_FOUND) + +- message(STATUS "Check Kdcraw library using pkg-config...") + if(NOT WIN32) ++ message(STATUS "Check Kdcraw library using pkg-config...") ++ + # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - INCLUDE(UsePkgConfig) - +- INCLUDE(UsePkgConfig) +- - PKGCONFIG(libkdcraw _KDCRAWIncDir _KDCRAWLinkDir _KDCRAWLinkFlags _KDCRAWCflags) -+ PKGCONFIG(libkdcraw-kde4 _KDCRAWIncDir _KDCRAWLinkDir _KDCRAWLinkFlags _KDCRAWCflags) +- +- if(_KDCRAWLinkFlags) +- # query pkg-config asking for a libkdcraw >= 0.2.0 +- EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.2.0 libkdcraw RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) +- if(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkdcraw release >= 0.2.0") +- set(KDCRAW_VERSION_GOOD_FOUND TRUE) +- else(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkdcaw release < 0.2.0, too old") +- set(KDCRAW_VERSION_GOOD_FOUND FALSE) +- set(KDCRAW_FOUND FALSE) +- endif(_return_VALUE STREQUAL "0") +- else(_KDCRAWLinkFlags) +- set(KDCRAW_VERSION_GOOD_FOUND FALSE) +- set(KDCRAW_FOUND FALSE) +- endif(_KDCRAWLinkFlags) +- ELSE(NOT WIN32) +- set(KDCRAW_VERSION_GOOD_FOUND TRUE) +- ENDif(NOT WIN32) ++ include(FindPkgConfig) ++ pkg_check_modules(PC_LIBKDCRAW libkdcraw-kde4>=0.2.0) ++ set(KDCRAW_DEFINITIONS ${PC_LIBKDCRAW_CFLAGS_OTHER}) ++ endif(NOT WIN32) + +- if(KDCRAW_VERSION_GOOD_FOUND) +- set(KDCRAW_DEFINITIONS "${_KDCRAWCflags}") +- +- FIND_PATH(KDCRAW_INCLUDE_DIR libkdcraw/version.h +- ${_KDCRAWIncDir} ++ find_path(KDCRAW_INCLUDE_DIR NAMES libkdcraw/version.h ++ HINTS ++ ${PC_LIBKDCRAW_INCLUDEDIR} ++ ${PC_LIBKDCRAW_INCLUDE_DIRS} + ) +- +- FIND_LIBRARY(KDCRAW_LIBRARIES NAMES kdcraw +- PATHS +- ${_KDCRAWLinkDir} ++ find_library(KDCRAW_LIBRARY NAMES kdcraw ++ HINTS ++ ${PC_LIBKDCRAW_LIBDIR} ++ ${PC_LIBKDCRAW_LIBRARY_DIRS} + ) +- +- if (KDCRAW_INCLUDE_DIR AND KDCRAW_LIBRARIES) +- set(KDCRAW_FOUND TRUE) +- endif (KDCRAW_INCLUDE_DIR AND KDCRAW_LIBRARIES) +- endif(KDCRAW_VERSION_GOOD_FOUND) +- if (KDCRAW_FOUND) +- if (NOT Kdcraw_FIND_QUIETLY) +- message(STATUS "Found libkdcraw: ${KDCRAW_LIBRARIES}") +- endif (NOT Kdcraw_FIND_QUIETLY) +- else (KDCRAW_FOUND) +- if (Kdcraw_FIND_REQUIRED) +- if (NOT KDCRAW_INCLUDE_DIR) +- message(FATAL_ERROR "Could NOT find libkdcraw header files") +- endif (NOT KDCRAW_INCLUDE_DIR) +- if (NOT KDCRAW_LIBRARIES) +- message(FATAL_ERROR "Could NOT find libkdcraw library") +- endif (NOT KDCRAW_LIBRARIES) +- endif (Kdcraw_FIND_REQUIRED) +- endif (KDCRAW_FOUND) ++ ++ include(FindPackageHandleStandardArgs) ++ find_package_handle_standard_args(Kdcraw DEFAULT_MSG KDCRAW_LIBRARY KDCRAW_INCLUDE_DIR) ++ ++ if(KDCRAW_FOUND) ++ set(KDCRAW_LIBRARIES ${KDCRAW_LIBRARY}) ++ endif(KDCRAW_FOUND) - if(_KDCRAWLinkFlags) - # query pkg-config asking for a libkdcraw >= 0.2.0 + MARK_AS_ADVANCED(KDCRAW_INCLUDE_DIR KDCRAW_LIBRARIES) + diff --git a/x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake b/x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake index 5b977de2d138..c243accfb041 100644 --- a/x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake +++ b/x11/kdelibs4/files/patch-cmake_modules_FindKexiv2.cmake @@ -1,11 +1,82 @@ ---- ./cmake/modules/FindKexiv2.cmake.orig 2009-01-06 17:27:37.000000000 +0000 -+++ ./cmake/modules/FindKexiv2.cmake 2009-01-25 08:34:53.000000000 +0000 -@@ -49,7 +49,7 @@ +--- ./cmake/modules/FindKexiv2.cmake.orig 2009-01-06 20:27:37.000000000 +0300 ++++ ./cmake/modules/FindKexiv2.cmake 2009-09-23 00:38:15.000000000 +0400 +@@ -47,60 +47,29 @@ + + # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls - INCLUDE(UsePkgConfig) - +- INCLUDE(UsePkgConfig) +- - PKGCONFIG(libkexiv2 _KEXIV2IncDir _KEXIV2LinkDir _KEXIV2LinkFlags _KEXIV2Cflags) -+ PKGCONFIG(libkexiv2-kde4 _KEXIV2IncDir _KEXIV2LinkDir _KEXIV2LinkFlags _KEXIV2Cflags) - - if(_KEXIV2LinkFlags) - # query pkg-config asking for a libkexiv2 >= 0.2.0 +- +- if(_KEXIV2LinkFlags) +- # query pkg-config asking for a libkexiv2 >= 0.2.0 +- EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.2.0 libkexiv2 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) +- if(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkexiv2 release >= 0.2.0") +- set(KEXIV2_VERSION_GOOD_FOUND TRUE) +- else(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkexiv2 release < 0.2.0, too old") +- set(KEXIV2_VERSION_GOOD_FOUND FALSE) +- set(KEXIV2_FOUND FALSE) +- endif(_return_VALUE STREQUAL "0") +- else(_KEXIV2LinkFlags) +- set(KEXIV2_VERSION_GOOD_FOUND FALSE) +- set(KEXIV2_FOUND FALSE) +- endif(_KEXIV2LinkFlags) +- else(NOT WIN32) +- set(KEXIV2_VERSION_GOOD_FOUND TRUE) ++ include(FindPkgConfig) ++ pkg_check_modules(PC_LIBKEXIV2 libkexiv2-kde4>=0.2.0) ++ set(KEXIV2_DEFINITIONS ${PC_LIBKEXIV2_CFLAGS_OTHER}) + endif(NOT WIN32) + +- if(KEXIV2_VERSION_GOOD_FOUND) +- set(KEXIV2_DEFINITIONS "${_KEXIV2Cflags}") +- +- FIND_PATH(KEXIV2_INCLUDE_DIR libkexiv2/version.h +- ${_KEXIV2IncDir} ++ find_path(KEXIV2_INCLUDE_DIR NAMES libkexiv2/version.h ++ HINTS ++ ${PC_LIBKEXIV2_INCLUDEDIR} ++ ${PC_LIBKEXIV2_INCLUDE_DIRS} + ) +- +- FIND_LIBRARY(KEXIV2_LIBRARIES NAMES kexiv2 +- PATHS +- ${_KEXIV2LinkDir} ++ find_library(KEXIV2_LIBRARY NAMES kexiv2 ++ HINTS ++ ${PC_LIBKEXIV2_LIBDIR} ++ ${PC_LIBKEXIV2_LIBRARY_DIRS} + ) +- +- if (KEXIV2_INCLUDE_DIR AND KEXIV2_LIBRARIES) +- set(KEXIV2_FOUND TRUE) +- endif (KEXIV2_INCLUDE_DIR AND KEXIV2_LIBRARIES) +- endif(KEXIV2_VERSION_GOOD_FOUND) +- if (KEXIV2_FOUND) +- if (NOT Kexiv2_FIND_QUIETLY) +- message(STATUS "Found libkexiv2: ${KEXIV2_LIBRARIES}") +- endif (NOT Kexiv2_FIND_QUIETLY) +- else (KEXIV2_FOUND) +- if (Kexiv2_FIND_REQUIRED) +- if (NOT KEXIV2_INCLUDE_DIR) +- message(FATAL_ERROR "Could NOT find libkexiv2 header files") +- endif (NOT KEXIV2_INCLUDE_DIR) +- if (NOT KEXIV2_LIBRARIES) +- message(FATAL_ERROR "Could NOT find libkexiv2 library") +- endif (NOT KEXIV2_LIBRARIES) +- endif (Kexiv2_FIND_REQUIRED) +- endif (KEXIV2_FOUND) +- ++ ++ include(FindPackageHandleStandardArgs) ++ find_package_handle_standard_args(Kexiv2 DEFAULT_MSG KEXIV2_LIBRARY KEXIV2_INCLUDE_DIR) ++ ++ if(KEXIV2_FOUND) ++ set(KEXIV2_LIBRARIES ${KEXIV2_LIBRARY}) ++ endif(KEXIV2_FOUND) ++ + MARK_AS_ADVANCED(KEXIV2_INCLUDE_DIR KEXIV2_LIBRARIES) + + endif(KEXIV2_LOCAL_FOUND) diff --git a/x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake b/x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake index 9ba135be8252..814d692694fd 100644 --- a/x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake +++ b/x11/kdelibs4/files/patch-cmake_modules_FindKipi.cmake @@ -1,11 +1,74 @@ ---- ./cmake/modules/FindKipi.cmake.orig 2009-01-06 17:27:37.000000000 +0000 -+++ ./cmake/modules/FindKipi.cmake 2009-01-25 08:35:05.000000000 +0000 -@@ -50,7 +50,7 @@ - # in the FIND_PATH() and FIND_LIBRARY() calls - INCLUDE(UsePkgConfig) +--- ./cmake/modules/FindKipi.cmake.orig 2009-01-06 20:27:37.000000000 +0300 ++++ ./cmake/modules/FindKipi.cmake 2009-09-23 00:39:53.000000000 +0400 +@@ -48,52 +48,28 @@ + # use pkg-config to get the directories and then use these values + # in the FIND_PATH() and FIND_LIBRARY() calls +- INCLUDE(UsePkgConfig) +- - PKGCONFIG(libkipi _KIPIIncDir _KIPILinkDir _KIPILinkFlags _KIPICflags) -+ PKGCONFIG(libkipi-kde4 _KIPIIncDir _KIPILinkDir _KIPILinkFlags _KIPICflags) +- +- if(_KIPILinkFlags) +- # query pkg-config asking for a libkipi >= 0.2.0 +- exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.2.0 libkipi RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) +- if(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkipi release >= 0.2.0") +- set(KIPI_VERSION_GOOD_FOUND TRUE) +- else(_return_VALUE STREQUAL "0") +- message(STATUS "Found libkipi release < 0.2.0, too old") +- set(KIPI_VERSION_GOOD_FOUND FALSE) +- set(KIPI_FOUND FALSE) +- endif(_return_VALUE STREQUAL "0") +- else(_KIPILinkFlags) +- set(KIPI_VERSION_GOOD_FOUND FALSE) +- set(KIPI_FOUND FALSE) +- endif(_KIPILinkFlags) +- else(NOT WIN32) +- set(KIPI_VERSION_GOOD_FOUND TRUE) ++ include(FindPkgConfig) ++ pkg_check_modules(PC_LIBKIPI libkexiv2-kde4>=0.2.0) ++ set(KIPI_DEFINITIONS ${PC_LIBKIPI_CFLAGS_OTHER}) + endif(NOT WIN32) +- if(KIPI_VERSION_GOOD_FOUND) +- set(KIPI_DEFINITIONS ${_KIPICflags}) + +- find_path(KIPI_INCLUDE_DIR NAMES libkipi/version.h PATHS ${KDE4_INCLUDE_DIR} ${_KIPIIncDir}) +- find_library(KIPI_LIBRARIES NAMES kipi PATHS ${KDE4_LIB_DIR} ${_KIPILinkDir}) ++ find_path(KIPI_INCLUDE_DIR NAMES libkipi/version.h ++ HINTS ++ ${PC_LIBKIPI_INCLUDEDIR} ++ ${PC_LIBKIPI_INCLUDE_DIRS} ++ ) ++ find_library(KIPI_LIBRARY NAMES kipi ++ HINTS ++ ${PC_LIBKIPI_LIBDIR} ++ ${PC_LIBKIPI_LIBRARY_DIRS} ++ ) + +- if (KIPI_INCLUDE_DIR AND KIPI_LIBRARIES) +- set(KIPI_FOUND TRUE) +- endif (KIPI_INCLUDE_DIR AND KIPI_LIBRARIES) +- endif(KIPI_VERSION_GOOD_FOUND) +- if (KIPI_FOUND) +- if (NOT Kipi_FIND_QUIETLY) +- message(STATUS "Found libkipi: ${KIPI_LIBRARIES}") +- endif (NOT Kipi_FIND_QUIETLY) +- else (KIPI_FOUND) +- if (Kipi_FIND_REQUIRED) +- if (NOT KIPI_INCLUDE_DIR) +- message(FATAL_ERROR "Could NOT find libkipi header files") +- endif (NOT KIPI_INCLUDE_DIR) +- if (NOT KIPI_LIBRARIES) +- message(FATAL_ERROR "Could NOT find libkipi library") +- endif (NOT KIPI_LIBRARIES) +- endif (Kipi_FIND_REQUIRED) +- endif (KIPI_FOUND) ++ include(FindPackageHandleStandardArgs) ++ find_package_handle_standard_args(Kipi DEFAULT_MSG KIPI_LIBRARY KIPI_INCLUDE_DIR) ++ ++ if(KIPI_FOUND) ++ set(KIPI_LIBRARIES ${KIPI_LIBRARY}) ++ endif(KIPI_FOUND) + + MARK_AS_ADVANCED(KIPI_INCLUDE_DIR KIPI_LIBRARIES) - if(_KIPILinkFlags) - # query pkg-config asking for a libkipi >= 0.2.0 |