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.

50 lines
1.3 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=libudev-fbsd
  6. PKG_RELEASE:=2
  7. PKG_VERSION:=20160820
  8. PKG_SOURCE_VERSION:=1f21323b817e70253d3c04bc8bedd61c477d0544
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/jiixyj/libudev-fbsd.git
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/libudev-fbsd
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=small udev shim for FreeBSD/devd (and other non-systemd)
  22. URL:=https://github.com/jiixyj/libudev-fbsd
  23. DEPENDS:=+libevdev
  24. PROVIDES:=libudev
  25. CONFLICTS:=libudev eudev udev
  26. endef
  27. define Build/InstallDev
  28. $(INSTALL_DIR) $(1)/usr/include
  29. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  32. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  34. endef
  35. define Package/libudev-fbsd/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libudev-fbsd))