freebsd-ports/x11-wm/pawm/files/patch-CMakeLists.txt
Raphael Kubo da Costa 123411e1ee - Properly look for X11 using CMake and include the appropriate directories
instead of relying on FREETYPE_INCLUDE_DIRS (which will change with the
  upcoming Freetype 2.5.2 update) to pass -I${LOCALBASE}/include to the
  compiler.
- Support staging.
- Set LICENSE (therefore stop installing the license file into DOCSDIR and
  bump PORTREVISION).
- Remove the mysterious WITH_SN check, which was never a proper option and
  relied on some apparently unstable API (at least it was unstable at the
  time, almost 8 years ago).
2013-12-24 21:06:11 +00:00

19 lines
743 B
Text

--- CMakeLists.txt.orig 2013-12-24 22:52:47.000000000 +0200
+++ CMakeLists.txt 2013-12-24 22:53:02.000000000 +0200
@@ -39,6 +39,7 @@
ENDIF (NOT XRANDR_FOUND)
FIND_PACKAGE(Freetype REQUIRED)
+FIND_PACKAGE(X11 REQUIRED)
# FIXME: Check if CMAKE_CONFIG_PREFIX is being set ok
SET(CMAKE_CONFIG_PREFIX "/etc")
@@ -56,7 +57,7 @@
SET (CMAKE_C_FLAGS "-O2")
ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
-INCLUDE_DIRECTORIES(. ${FREETYPE_INCLUDE_DIRS} ${X11_INCLUDE_DIRS})
+INCLUDE_DIRECTORIES(. ${FREETYPE_INCLUDE_DIRS} ${X11_INCLUDE_DIR})
LINK_DIRECTORIES (. ${X11_LIBRARY_DIRS})
LINK_LIBRARIES (-lm ${X11_LIBRARIES} ${XFT_LIBRARIES} ${XPM_LIBRARIES} ${XRANDR_LIBRARIES})
ADD_CUSTOM_TARGET(signals.c DEPENDS src/signals.h src/signals.c)