2 # Copyright (C) 2008 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/X11R7.4/src/lib/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18 PKG_MD5SUM:=6d5468debf76fac84576ca26c9535821
21 include $(INCLUDE_DIR)/package.mk
25 define Package/libpciaccess
26 SECTION:=xorg-libraries
31 URL:=http://xorg.freedesktop.org/
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --with-pciids-path=/usr/share/pci.ids \
38 ac_cv_file__usr_include_asm_mtrr_h=$(shell \
39 test -f "$(TOOLCHAIN_DIR)/include/asm/mtrr.h" \
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
48 $(PKG_INSTALL_DIR)/usr/include/*.h \
51 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.{so*,a,la} \
57 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
58 $(1)/usr/lib/pkgconfig/
61 define Package/libpciaccess/install
62 $(INSTALL_DIR) $(1)/usr/lib
64 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.so* \
68 $(eval $(call BuildPackage,libpciaccess))