1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=librpc
  3. PKG_RELEASE=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=$(PROJECT_GIT)/project/librpc-uclibc.git
  6. PKG_SOURCE_DATE:=2015-11-04
  7. PKG_SOURCE_VERSION:=a921e3ded051746f9f7cd5e5a312fb6771716aac
  8. PKG_MIRROR_HASH:=22c8dc55e1c4e8e31635a37708a3ce622a6ca33ebd918a4321b0be6ffce89b21
  9. CMAKE_INSTALL:=1
  10. PKG_USE_MIPS16:=0
  11. PKG_BUILD_DEPENDS:=librpc/host
  12. PKG_LICENSE:=LGPL-2.1
  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. define Package/librpc
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=uClibc RPC library
  22. endef
  23. define Package/librpc/install
  24. $(INSTALL_DIR) $(1)/lib/
  25. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/librpc.so $(1)/lib/
  26. endef
  27. define Host/Install
  28. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include/rpc
  29. $(INSTALL_DATA) $(HOST_BUILD_DIR)/rpc/types.h $(STAGING_DIR_HOSTPKG)/include/rpc
  30. $(INSTALL_DATA) $(HOST_BUILD_DIR)/rpc/compat.h $(STAGING_DIR_HOSTPKG)/include/rpc
  31. endef
  32. $(eval $(call HostBuild))
  33. $(eval $(call BuildPackage,librpc))