72 lines
2.5 KiB
Plaintext
72 lines
2.5 KiB
Plaintext
$OpenBSD: patch-awesomeConfig_cmake,v 1.10 2012/12/31 19:21:45 dcoppa Exp $
|
|
--- awesomeConfig.cmake.orig Mon Dec 24 15:36:05 2012
|
|
+++ awesomeConfig.cmake Mon Dec 31 19:57:06 2012
|
|
@@ -16,12 +16,11 @@ option(COMPRESS_MANPAGES "compress manpages" ON)
|
|
option(GENERATE_LUADOC "generate luadoc" ON)
|
|
|
|
# {{{ CFLAGS
|
|
-add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
|
|
- -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
|
|
- -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self
|
|
- -Wpointer-arith -Wredundant-decls -Wformat-nonliteral
|
|
- -Wno-format-zero-length -Wmissing-format-attribute -Wmissing-prototypes
|
|
- -Wstrict-prototypes)
|
|
+add_definitions(-std=gnu99 -fgnu89-inline -fno-strict-aliasing
|
|
+ -Wchar-subscripts -Wcast-align -Wwrite-strings -Wsign-compare
|
|
+ -Wunused -Wno-unused-parameter -Wuninitialized -Wpointer-arith
|
|
+ -Wno-format-zero-length -Wmissing-format-attribute
|
|
+ -Wmissing-prototypes -Wstrict-prototypes)
|
|
# }}}
|
|
|
|
# {{{ Endianness
|
|
@@ -54,7 +53,6 @@ a_find_program(ASCIIDOC_EXECUTABLE asciidoc FALSE)
|
|
a_find_program(XMLTO_EXECUTABLE xmlto FALSE)
|
|
a_find_program(GZIP_EXECUTABLE gzip FALSE)
|
|
# lua documentation
|
|
-a_find_program(LUA_EXECUTABLE lua FALSE)
|
|
a_find_program(LUADOC_EXECUTABLE luadoc FALSE)
|
|
# theme graphics
|
|
a_find_program(CONVERT_EXECUTABLE convert TRUE)
|
|
@@ -62,8 +60,8 @@ a_find_program(CONVERT_EXECUTABLE convert TRUE)
|
|
include(FindDoxygen)
|
|
# pkg-config
|
|
include(FindPkgConfig)
|
|
-# lua 5.1
|
|
-include(FindLua51)
|
|
+# lua libraries
|
|
+include(FindLuaLibs)
|
|
# }}}
|
|
|
|
# {{{ Check if documentation can be build
|
|
@@ -141,9 +139,10 @@ pkg_check_modules(AWESOME_REQUIRED REQUIRED
|
|
xcb-xtest
|
|
xcb-xinerama
|
|
xcb-shape
|
|
- xcb-util>=0.3.8
|
|
+ xcb-aux>=0.3.6
|
|
+ xcb-atom>=0.3.6
|
|
xcb-keysyms>=0.3.4
|
|
- xcb-icccm>=0.3.8
|
|
+ xcb-icccm>=0.3.6
|
|
xcb-image>=0.3.0
|
|
cairo-xcb
|
|
libstartup-notification-1.0>=0.10
|
|
@@ -194,7 +193,7 @@ else()
|
|
endif()
|
|
|
|
# Error check
|
|
-if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug
|
|
+if(NOT LUALIBS_FOUND)
|
|
message(FATAL_ERROR "lua library not found")
|
|
endif()
|
|
|
|
@@ -263,7 +262,7 @@ endif()
|
|
if(DEFINED AWESOME_MAN_PATH)
|
|
set(AWESOME_MAN_PATH ${AWESOME_MAN_PATH} CACHE PATH "awesome manpage directory")
|
|
else()
|
|
- set(AWESOME_MAN_PATH ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "awesome manpage directory")
|
|
+ set(AWESOME_MAN_PATH ${CMAKE_INSTALL_PREFIX}/man CACHE PATH "awesome manpage directory")
|
|
endif()
|
|
|
|
# Hide to avoid confusion
|