head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2023.05.10.17.05.15; author nikita; state dead; branches; next 1.1; commitid WqhIGXKBbQwShroE; 1.1 date 2023.04.27.22.02.33; author nikita; state Exp; branches; next ; commitid ENyTwup7IBBylNmE; desc @@ 1.2 log @libnitrokey: fix for new libhidapi. remove patch. might require a new patch on FreeBSD. @ text @$NetBSD: patch-CMakeLists.txt,v 1.1 2023/04/27 22:02:33 nikita Exp $ fix build with pkgsrc hidapi. --- CMakeLists.txt.orig 2023-04-27 23:48:15.821869063 +0200 +++ CMakeLists.txt 2023-04-27 23:49:29.139633117 +0200 @@@@ -83,12 +83,8 @@@@ ELSEIF(UNIX) # add_library(hidapi-libusb STATIC hidapi/libusb/hid.c ) find_package(PkgConfig) - IF(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") - pkg_search_module(HIDAPI_LIBUSB REQUIRED hidapi) - set(HIDAPI_LIBUSB_NAME hidapi) - ELSE() - pkg_search_module(HIDAPI_LIBUSB REQUIRED hidapi-libusb) - ENDIF() + pkg_search_module(HIDAPI_LIBUSB REQUIRED hidapi) + set(HIDAPI_LIBUSB_NAME hidapi) target_compile_options(nitrokey PRIVATE ${HIDAPI_LIBUSB_CFLAGS}) target_link_libraries(nitrokey ${HIDAPI_LIBUSB_LDFLAGS}) ELSEIF(WIN32) @ 1.1 log @libnitrokey: import as security/libnitrokey version 3.8 libnitrokey is a project to communicate with Nitrokey Pro and Storage devices in a clean and easy manner. Written in C++14, testable with py.test and Catch frameworks, with C API, Python access (through CFFI and C API, in future with Pybind11). The development of this project is aimed to make it itself a living documentation of communication protocol between host and the Nitrokey stick devices. @ text @d1 1 a1 1 $NetBSD$ @