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.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libslirp
  3. PKG_VERSION:=4.6.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://gitlab.freedesktop.org/slirp/$(PKG_NAME)/-/archive/v$(PKG_VERSION)
  7. PKG_HASH:=69ad4df0123742a29cc783b35de34771ed74d085482470df6313b6abeb799b11
  8. PKG_INSTALL:=1
  9. PKG_BUILD_PARALLEL:=1
  10. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  11. PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmailcom>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/meson.mk
  16. include $(INCLUDE_DIR)/nls.mk
  17. define Package/libslirp
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. SUBMENU:=Networking
  21. TITLE:=user-mode networking library for virtual environments
  22. DEPENDS:=+glib2
  23. URL:=https://gitlab.freedesktop.org/slirp/libslirp
  24. endef
  25. define Package/libslirp/description
  26. libslirp is a user-mode networking library used by virtual machines,
  27. containers or various tools.
  28. endef
  29. define Package/libslirp/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslirp.so $(1)/usr/lib/
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslirp.so.* $(1)/usr/lib/
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include/slirp $(1)/usr/lib/pkgconfig
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslirp.so $(1)/usr/lib/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libslirp.so.* $(1)/usr/lib/
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/slirp/** $(1)/usr/include/slirp/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/** $(1)/usr/lib/pkgconfig/
  40. endef
  41. $(eval $(call BuildPackage,libslirp))