diff options
author | marino <marino> | 2011-12-06 19:12:04 +0000 |
---|---|---|
committer | marino <marino> | 2011-12-06 19:12:04 +0000 |
commit | ca2c6123eebdb8d60d2a1acbe32cace367e1dcd8 (patch) | |
tree | a83e5c358668c00545653de64614cd51b56f9b08 /misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt | |
parent | f89102f6247261372836f878e044d10c680f5da5 (diff) | |
download | pkgsrc-ca2c6123eebdb8d60d2a1acbe32cace367e1dcd8.tar.gz |
misc/kdeadmin4: Detect libcrypt rather than scan for crypt.h
This patch camed from kde 4.7 and fixes the DragonFly build.
Diffstat (limited to 'misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt')
-rw-r--r-- | misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt b/misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt new file mode 100644 index 00000000000..6cd93c5964f --- /dev/null +++ b/misc/kdeadmin3/patches/patch-kuser_CMakeLists.txt @@ -0,0 +1,32 @@ +$NetBSD: patch-kuser_CMakeLists.txt,v 1.1 2011/12/06 19:12:04 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}) + |