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.

56 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2019 EWSI
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libdcwproto
  9. PKG_VERSION:=1.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ewsi/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=b3d12f2533eafbb293bbf27608ff39520508d955a084f33894c594f39d2f7c8e
  14. PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libdcwproto
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. SUBMENU:=Networking
  24. TITLE:=Dual-Channel WiFi messaging library
  25. URL:=https://www.edgewaterwireless.com
  26. DEPENDS:=+kmod-macremapper
  27. endef
  28. define Package/libdcwproto/description
  29. Platform-independent C library for marshaling and serializing DCW messages
  30. endef
  31. TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
  32. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)*.so* $(1)/usr/lib/
  38. endef
  39. define Package/libdcwproto/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. # Note: $(INSTALL_BIN) does not keep symlinks, so use $(CP)
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/$(PKG_NAME)*.so* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libdcwproto))