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.

51 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  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:=ibrcommon
  9. PKG_VERSION:=1.0.1
  10. PKG_RELEASE:=9
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
  13. PKG_HASH:=9c457c1ebc01e6216524636628c647bef34ab11bd96f0e0788be8749374fdc20
  14. PKG_MAINTAINER:=Johannes Morgenroth <jm@m-network.de>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_INSTALL:=1
  17. PKG_FIXUP:=libtool
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/ibrcommon
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libstdcpp +librt +libnl +libopenssl
  23. TITLE:=IBR Common C++ Library
  24. endef
  25. CONFIGURE_ARGS += \
  26. --with-openssl
  27. TARGET_CXXFLAGS += -std=c++11
  28. define Package/ibrcommon/description
  29. A library with common functions for C++.
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)
  33. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  34. endef
  35. define Package/ibrcommon/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,ibrcommon))