Makefile 1.3 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-zero
  6. PKG_VERSION:=1.0.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/illiliti/libudev-zero/tar.gz/$(PKG_VERSION)?
  10. PKG_HASH:=c4cf149ea96295c1e6e86038d10c725344c751982ed4a790b06c76776923e0ea
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libudev-zero
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Drop-in replacement for libudev
  21. URL:=https://github.com/illiliti/libudev-zero
  22. DEPENDS:=+libevdev
  23. PROVIDES:=libudev
  24. CONFLICTS:=libudev eudev udev
  25. endef
  26. MAKE_FLAGS += \
  27. PREFIX=/usr
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/libudev.h $(1)/usr/include/
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libudev.{a,so*} $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libudev.pc $(1)/usr/lib/pkgconfig/
  35. endef
  36. define Package/libudev-zero/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libudev.so* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libudev-zero))