head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2026.01.26.19.43.32; author nia; state Exp; branches; next ; commitid 6roRUluAf1hphWrG; desc @@ 1.1 log @jstrings: Initial import. A tool for finding JIS encoded Japanese text in binary data. Verified to build on NetBSD, FreeBSD, OpenBSD, macOS, Linux. @ text @$NetBSD$ Make iconv dependency optional, some systems have it in libc. --- CMakeLists.txt.orig 2026-01-26 19:30:15.724494513 +0000 +++ CMakeLists.txt @@@@ -32,11 +32,9 @@@@ find_library(ICONV_LIB iconv) find_library(ICONV_LIB iconv) -if(NOT ICONV_LIB) - message(FATAL_ERROR "libiconv not found") +if(ICONV_LIB) + target_link_libraries(${PROJECT_NAME} iconv) endif() - -target_link_libraries(${PROJECT_NAME} iconv) install(TARGETS jstrings RUNTIME DESTINATION bin) @