Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=usign
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/usign.git
  6. PKG_SOURCE_DATE:=2020-05-23
  7. PKG_SOURCE_VERSION:=f1f65026a94137c91b5466b149ef3ea3f20091e9
  8. PKG_MIRROR_HASH:=3f6569a5e63fdfd032976ac0f79d736d3935101ac1b97fb370514b013c5e6bb6
  9. CMAKE_INSTALL:=1
  10. PKG_CHECK_FORMAT_SECURITY:=1
  11. PKG_USE_MIPS16:=0
  12. PKG_LICENSE:=ISC
  13. PKG_LICENSE_FILES:=
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
  19. define Package/usign
  20. SECTION:=base
  21. CATEGORY:=Base system
  22. DEPENDS:=+libubox
  23. TITLE:=libreCMC signature verification utility
  24. endef
  25. TARGET_CFLAGS += -flto
  26. TARGET_LDFLAGS += -flto=jobserver
  27. CMAKE_OPTIONS += \
  28. -DUSE_LIBUBOX=on
  29. define Package/usign/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/usign $(1)/usr/bin
  32. ln -s usign $(1)/usr/bin/signify
  33. endef
  34. $(eval $(call BuildPackage,usign))
  35. $(eval $(call HostBuild))