head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.4 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.1.0.2 pkgsrc-2011Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2012.03.19.20.50.24; author markd; state dead; branches; next 1.1; 1.1 date 2011.12.07.07.53.24; author marino; state Exp; branches; next ; desc @@ 1.2 log @Update to KDE SC 4.8.0 @ text @$NetBSD: patch-kuser_CMakeLists.txt,v 1.1 2011/12/07 07:53:24 marino Exp $ --- kuser/CMakeLists.txt.orig 2008-12-04 08:35:50.000000000 +0000 +++ kuser/CMakeLists.txt @@@@ -3,6 +3,7 @@@@ project(kuser) find_package(KdepimLibs REQUIRED) include(CheckFunctionExists) +include(CheckLibraryExists) include(TestBigEndian) @@@@ -26,6 +27,7 @@@@ check_include_files(crypt.h HAVE_CRYPT_H check_include_files(sys/stat.h HAVE_SYS_STAT_H) check_include_files(unistd.h HAVE_UNISTD_H) check_include_files(paths.h HAVE_PATHS_H) +check_library_exists(crypt crypt "" HAVE_CRYPT_LIBRARY) set(CMAKE_REQUIRED_INCLUDES pwd.h) check_function_exists(fgetpwent HAVE_FGETPWENT) @@@@ -72,9 +74,9 @@@@ kde4_add_ui_files(kuser_SRCS ku_filesset kde4_add_executable(kuser ${kuser_SRCS}) target_link_libraries(kuser ${KDE4_KIO_LIBS} ${KDE4_KLDAP_LIBS} kntlm) -if(HAVE_CRYPT_H) +if(HAVE_CRYPT_LIBRARY) target_link_libraries(kuser crypt) -endif(HAVE_CRYPT_H) +endif(HAVE_CRYPT_LIBRARY) install(TARGETS kuser ${INSTALL_TARGETS_DEFAULT_ARGS}) @ 1.1 log @misc/kdeadmin4: Detect libcrypt rather than scan for crypt.h This patch camed from kde 4.7 and fixes the DragonFly build. @ text @d1 1 a1 1 $NetBSD$ @