File cdrkit-1.1.9-zlib-check.patch of Package wodim

Index: 3rd-party/zisofs_tools/CMakeLists.txt
===================================================================
--- 3rd-party/zisofs_tools/CMakeLists.txt.orig	2007-05-30 19:55:02.000000000 +0200
+++ 3rd-party/zisofs_tools/CMakeLists.txt	2009-10-02 20:55:18.000000000 +0200
@@ -1,8 +1,9 @@
 PROJECT (ZISOFSTOOLS C)
+FIND_PACKAGE(ZLIB REQUIRED)
 ADD_DEFINITIONS(-Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -Wcast-align)
 AUX_SOURCE_DIRECTORY(. MKZ_SRCS)
 ADD_EXECUTABLE (mkzftree ${MKZ_SRCS})
-TARGET_LINK_LIBRARIES(mkzftree z)
+TARGET_LINK_LIBRARIES(mkzftree ${ZLIB_LIBRARY})
 SET_TARGET_PROPERTIES(mkzftree PROPERTIES  SKIP_BUILD_RPATH TRUE)
 INSTALL(TARGETS mkzftree DESTINATION bin)
 INSTALL(FILES mkzftree.1 DESTINATION share/man/man1)
Index: genisoimage/CMakeLists.txt
===================================================================
--- genisoimage/CMakeLists.txt.orig	2008-01-06 04:01:25.000000000 +0100
+++ genisoimage/CMakeLists.txt	2009-10-02 20:56:58.000000000 +0200
@@ -1,5 +1,5 @@
 PROJECT (MKISOFS C)
-
+FIND_PACKAGE(ZLIB REQUIRED)
 INCLUDE(../include/AddScgBits.cmake)
 INCLUDE(../include/AddSchilyBits.cmake)
 
@@ -39,7 +39,7 @@ ENDIF(NOT HAVE_GETOPT_LONG)
 LINK_DIRECTORIES(../libhfs_iso ../librols ../libusal ../libunls  ../wodim)
 
 ADD_EXECUTABLE (genisoimage genisoimage.c ${MKISOFS_MOST_SRCS})
-TARGET_LINK_LIBRARIES(genisoimage wodimstuff hfs_iso  ${MAGICLIBS} c unls z bz2 ${EXTRA_LIBICONV} ${EXTRA_LIBS})
+TARGET_LINK_LIBRARIES(genisoimage wodimstuff hfs_iso  ${MAGICLIBS} c unls ${ZLIB_LIBRARY} bz2 ${EXTRA_LIBICONV} ${EXTRA_LIBS})
 
 # common lib set and genisoimage source parts for the rest
 LINK_LIBRARIES(wodimstuff ${EXTRA_LIBS}  unls ${EXTRA_LIBICONV} )
openSUSE Build Service is sponsored by