1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 20:31:17 +00:00

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 <XPREFIX>_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.
This commit is contained in:
Magliano Andrea 2012-07-05 10:15:22 +02:00
parent 01995b1326
commit 93af415ad7

View File

@ -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")