Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/deskutils/cairo-dock-plugins/files/patch-CMakeLists.txt
16151 views
1
--- CMakeLists.txt.orig 2015-02-19 16:13:47 UTC
2
+++ CMakeLists.txt
3
@@ -978,9 +978,8 @@ set (with_mail no)
4
# find the compilation flags
5
enable_if_not_defined (enable-mail)
6
if (enable-mail)
7
- find_program (LIBETPAN_CONFIG_EXECUTABLE libetpan-config)
8
execute_process(
9
- COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --cflags
10
+ COMMAND pkg-config libetpan --cflags
11
OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS)
12
if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "" AND NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "\n") # if there is a problem with the previous, we don't want to have a lot of errors
13
STRING (REGEX REPLACE "\n" "" TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # to not skip the last option
14
@@ -993,7 +992,7 @@ if (enable-mail)
15
endif()
16
# find the link flags
17
execute_process(
18
- COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --libs
19
+ COMMAND pkg-config libetpan --libs
20
OUTPUT_VARIABLE MAIL_PACKAGE_LIBS)
21
if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "")
22
STRING (REGEX REPLACE "\n" "" MAIL_PACKAGE_LIBS "${MAIL_PACKAGE_LIBS}")
23
24