File irc-otr-build-xchat-0.3.patch of Package irc-otr

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig	2009-02-11 07:35:13.000000000 +0000
+++ CMakeLists.txt	2012-03-13 21:37:08.000000000 +0000
@@ -116,7 +116,7 @@ MARK_AS_ADVANCED(IRSSI_INCLUDE_DIR)
 
 IF(NOT IRSSI_INCLUDE_DIR)
   MESSAGE(STATUS "*** no irssi found ***")
-ELSEIF(BUILDFOR AND NOT BUILDFOR STREQUAL "irssi")
+ELSEIF(BUILDFOR AND NOT BUILDFOR STREQUAL "irssi" AND NOT BUILDFOR STREQUAL "both")
   MESSAGE(STATUS "*** not building for irssi ***")
 ELSE(NOT IRSSI_INCLUDE_DIR)
   MESSAGE(STATUS "*** building for irssi ***")
@@ -161,7 +161,7 @@ MARK_AS_ADVANCED(XCHAT_INCLUDE_DIR)
 
 IF(NOT XCHAT_INCLUDE_DIR)
   MESSAGE(STATUS "*** no xchat found ***")
-ELSEIF(BUILDFOR AND NOT BUILDFOR STREQUAL "xchat")
+ELSEIF(BUILDFOR AND NOT BUILDFOR STREQUAL "xchat" AND NOT BUILDFOR STREQUAL "both")
   MESSAGE(STATUS "*** not building for xchat ***")
 ELSE(NOT XCHAT_INCLUDE_DIR)
   MESSAGE(STATUS "*** building for xchat ***")
Index: tarballdefs.cmake
===================================================================
--- tarballdefs.cmake.orig	2009-02-11 07:38:26.000000000 +0000
+++ tarballdefs.cmake	2012-03-13 21:37:29.000000000 +0000
@@ -1,2 +1,3 @@
 SET(IRSSIOTR_VERSION 0.3)
-SET(BUILDFOR irssi)
+SET(BUILDFOR both)
+SET(XCHAT_INCLUDE_DIR .)
openSUSE Build Service is sponsored by