openbsd-ports/sysutils/dfc/patches/patch-CMakeLists_txt
landry b6d7d7f6d8 Import dfc 3.0.0.
dfc is a simple tool that display file system space usage using graphs
and colors. It can also output to CSV, TeX or HTML.

ok jasper@ giovanni@
2012-06-01 13:01:45 +00:00

21 lines
662 B
Plaintext

$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2012/06/01 13:01:45 landry Exp $
--- CMakeLists.txt.orig Thu May 31 00:25:46 2012
+++ CMakeLists.txt Fri Jun 1 09:58:51 2012
@@ -70,6 +70,7 @@ endif()
# Check for libintl
find_package(Libintl)
+find_library(LIBICONV_LIBRARIES NAMES iconv)
if (LIBINTL_FOUND)
option(NLS_ENABLED "Translation support with gettext" on)
else()
@@ -129,7 +130,7 @@ if(NLS_ENABLED)
add_subdirectory(po)
include_directories(${LIBINTL_INCLUDE_DIR})
- target_link_libraries(${EXECUTABLE_NAME} ${LIBINTL_LIBRARIES})
+ target_link_libraries(${EXECUTABLE_NAME} ${LIBICONV_LIBRARIES} ${LIBINTL_LIBRARIES})
endif()
set(DFC_DOC_FILES