packages: kde4-kdelibs/kde4-kdelibs-findlzmafix.patch (NEW) - fix lzma/xz d...

shadzik shadzik at pld-linux.org
Sat May 1 15:01:16 CEST 2010


Author: shadzik                      Date: Sat May  1 13:01:16 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix lzma/xz detection

---- Files affected:
packages/kde4-kdelibs:
   kde4-kdelibs-findlzmafix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/kde4-kdelibs/kde4-kdelibs-findlzmafix.patch
diff -u /dev/null packages/kde4-kdelibs/kde4-kdelibs-findlzmafix.patch:1.1
--- /dev/null	Sat May  1 15:01:16 2010
+++ packages/kde4-kdelibs/kde4-kdelibs-findlzmafix.patch	Sat May  1 15:01:08 2010
@@ -0,0 +1,36 @@
+--- cmake/modules/FindLibLZMA.cmake.orig	2010-05-01 14:59:21.337331735 +0200
++++ cmake/modules/FindLibLZMA.cmake	2010-05-01 14:59:29.397337364 +0200
+@@ -17,8 +17,15 @@
+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+ 
+ 
+-FIND_PATH(LIBLZMA_INCLUDE_DIR lzma.h )
+-FIND_LIBRARY(LIBLZMA_LIBRARY lzma)
++FIND_PATH(LIBLZMA_INCLUDE_DIR lzma.h 
++	HINTS
++	/usr/include
++)
++FIND_LIBRARY(LIBLZMA_LIBRARY NAMES lzma liblzma
++	HINTS
++	/usr/lib
++	/usr/lib64
++)
+ 
+ SET(LIBLZMA_LIBRARIES ${LIBLZMA_LIBRARY})
+ SET(LIBLZMA_INCLUDE_DIRS ${LIBLZMA_INCLUDE_DIR})
+@@ -31,7 +38,6 @@
+    INCLUDE(CheckLibraryExists)
+    CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_auto_decoder "" LIBLZMA_HAS_AUTO_DECODER)
+    CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_easy_encoder "" LIBLZMA_HAS_EASY_ENCODER)
+-   CHECK_LIBRARY_EXISTS(${LIBLZMA_LIBRARIES} lzma_lzma_preset "" LIBLZMA_HAS_LZMA_PRESET)
+ ENDIF (LIBLZMA_LIBRARIES)
+ 
+ INCLUDE(FindPackageHandleStandardArgs)
+@@ -39,7 +45,6 @@
+                                                         LIBLZMA_LIBRARY
+                                                         LIBLZMA_HAS_AUTO_DECODER
+                                                         LIBLZMA_HAS_EASY_ENCODER
+-                                                        LIBLZMA_HAS_LZMA_PRESET
+                                  )
+ 
+ MARK_AS_ADVANCED( LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY )
================================================================


More information about the pld-cvs-commit mailing list