From 93af415ad77a0e38ac3f914cb702906f04c01b4e Mon Sep 17 00:00:00 2001 From: Magliano Andrea Date: Thu, 5 Jul 2012 10:15:22 +0200 Subject: [PATCH] Force global library path for pkgsrc. DragonFlyBSD uses pkgsrc package infrastructure, hence the the need for extra flags. Cmake pkg_search_module macro sets according _LDFLAGS var, thus the correct way should be to append it to conky_includes and conky_libs for each extra package needed. As all pkgsrc packages always install in /usr/pkg, the simplest thing is to set specific cflags and ldflags at the very beginning. Conky is btw wip (work in progress) in pkgsrc system, mostly with NetBSD patches. This is intended as radical workaround (DragonFlyBSD specific for now) instead of submitting specific patches to pksrc maintainers. --- cmake/Conky.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake index a19295fa..62465bb2 100644 --- a/cmake/Conky.cmake +++ b/cmake/Conky.cmake @@ -67,6 +67,11 @@ set(conky_includes ${CMAKE_BINARY_DIR}) add_definitions(-D_LARGEFILE64_SOURCE) # Standard definitions set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE") +if(OS_DRAGONFLY) +set(conky_libs ${conky_libs} -L/usr/pkg/lib) +set(conky_includes ${conky_includes} -I/usr/pkg/include) +endif(OS_DRAGONFLY) + # Do version stuff set(VERSION_MAJOR "2") set(VERSION_MINOR "0")