You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libyubikey
  3. PKG_VERSION:=1.13
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=libyubikey-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://developers.yubico.com/yubico-c/Releases
  7. PKG_HASH:=04edd0eb09cb665a05d808c58e1985f25bb7c5254d2849f36a0658ffc51c3401
  8. PKG_MAINTAINER:=Stuart B. Wilkins <stuwilkins@mac.com>
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/libyubikey-$(PKG_VERSION)
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/libyubikey
  14. SECTION:=libs
  15. CATEGORY:=Libraries
  16. TITLE:=The Yuibco yubikey c library
  17. URL:=https://developers.yubico.com/yubico-c/
  18. endef
  19. define Package/libyubikey/description
  20. The c library for the yubikey from Yubico
  21. endef
  22. define Build/InstallDev
  23. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  24. $(CP) $(PKG_BUILD_DIR)/yubikey.h $(STAGING_DIR)/usr/include
  25. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  26. $(CP) $(PKG_BUILD_DIR)/.libs/libyubikey.so* $(STAGING_DIR)/usr/lib
  27. endef
  28. CONFIGURE_ARGS += \
  29. --enable-shared \
  30. --disable-static
  31. define Package/libyubikey/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/modhex $(1)/usr/bin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykgenerate $(1)/usr/bin/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykparse $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_BUILD_DIR)/.libs/libyubikey.so.* $(1)/usr/lib
  38. endef
  39. $(eval $(call BuildPackage,libyubikey))