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.

59 lines
1.2 KiB

  1. # Copyright (C) 2019 Lucian Cristian <lucian.cristian@gmail.com>
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libpciaccess
  7. PKG_VERSION:=0.16
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_URL:=https://www.x.org/releases/individual/lib/
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_HASH:=214c9d0d884fdd7375ec8da8dcb91a8d3169f263294c9a90c575bf1938b9f489
  12. PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libpciaccess
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Generic PCI access library
  21. URL:=https://xorg.freedesktop.org/
  22. endef
  23. CONFIGURE_ARGS += \
  24. --prefix=/usr
  25. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  26. define Build/InstallDev
  27. $(INSTALL_DIR) \
  28. $(1)/usr/include \
  29. $(1)/usr/lib
  30. $(CP) \
  31. $(PKG_INSTALL_DIR)/usr/include/* \
  32. $(1)/usr/include/
  33. $(CP) \
  34. $(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
  35. $(1)/usr/lib/
  36. endef
  37. define Package/libpciaccess/install
  38. $(INSTALL_DIR) \
  39. $(1)/usr/lib
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  42. $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libpciaccess))