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.

58 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.14
  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:=3df543e12afd41fea8eac817e48cbfde5aed8817b81670a4e9e493bb2f5bf2a4
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_INSTALL:=1
  14. PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libpciaccess
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Generic PCI access library
  20. URL:=https://xorg.freedesktop.org/
  21. endef
  22. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  23. CONFIGURE_ARGS += \
  24. --prefix=/usr
  25. define Build/InstallDev
  26. $(INSTALL_DIR) \
  27. $(1)/usr/include \
  28. $(1)/usr/lib
  29. $(CP) \
  30. $(PKG_INSTALL_DIR)/usr/include/* \
  31. $(1)/usr/include/
  32. $(CP) \
  33. $(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
  34. $(1)/usr/lib/
  35. endef
  36. define Package/libpciaccess/install
  37. $(INSTALL_DIR) \
  38. $(1)/usr/lib
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  41. $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libpciaccess))