2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_BASE_NAME:=libpciaccess
11 PKG_NAME:=libpciaccess
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/lib/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_MD5SUM:=685cb20e7a6165bc010972f1183addbd
23 include $(INCLUDE_DIR)/package.mk
26 define Package/libpciaccess
27 SECTION:=xorg-libraries
32 URL:=http://xorg.freedesktop.org/
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-pciids-path=/usr/share/pci.ids \
39 ac_cv_file__usr_include_asm_mtrr_h=$(shell \
40 test -f "$(TOOLCHAIN_DIR)/include/asm/mtrr.h" \
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
49 $(PKG_INSTALL_DIR)/usr/include/*.h \
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
54 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.{so*,a,la} \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
62 define Package/libpciaccess/install
63 $(INSTALL_DIR) $(1)/usr/lib
65 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.so* \
69 $(eval $(call BuildPackage,libpciaccess))