1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_MIRROR_HASH:=cc885851c97dcaef65d7f4fb0899ed1a01412b02e44851476ac47ce4da024d0b
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/jiixyj/libudev-fbsd.git
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/libudev-fbsd
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=small udev shim for FreeBSD/devd (and other non-systemd)
  23. URL:=https://github.com/jiixyj/libudev-fbsd
  24. DEPENDS:=+libevdev
  25. PROVIDES:=libudev
  26. CONFLICTS:=libudev eudev udev
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  35. endef
  36. define Package/libudev-fbsd/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libudev-fbsd))