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.

47 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libyubikey
  3. PKG_VERSION:=1.13
  4. PKG_RELEASE:=2
  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. include $(INCLUDE_DIR)/package.mk
  12. define Package/libyubikey
  13. SECTION:=libs
  14. CATEGORY:=Libraries
  15. TITLE:=The Yubico yubikey c library
  16. URL:=https://developers.yubico.com/yubico-c/
  17. endef
  18. define Package/libyubikey/description
  19. The c library for the yubikey from Yubico
  20. endef
  21. define Build/InstallDev
  22. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  23. $(CP) $(PKG_BUILD_DIR)/yubikey.h $(STAGING_DIR)/usr/include
  24. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  25. $(CP) $(PKG_BUILD_DIR)/.libs/libyubikey.so* $(STAGING_DIR)/usr/lib
  26. endef
  27. CONFIGURE_ARGS += \
  28. --enable-shared \
  29. --disable-static
  30. define Package/libyubikey/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/modhex $(1)/usr/bin/
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykgenerate $(1)/usr/bin/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/ykparse $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_BUILD_DIR)/.libs/libyubikey.so.* $(1)/usr/lib
  37. endef
  38. $(eval $(call BuildPackage,libyubikey))