2008-11-17 22:43:31 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_BASE_NAME:=libpciaccess
|
|
|
|
PKG_NAME:=libpciaccess
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_VERSION:=0.10.3
|
|
|
|
PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-12-01 23:07:01 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
|
2008-11-17 22:43:31 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
define Package/libpciaccess
|
|
|
|
SECTION:=xorg-libraries
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
|
|
|
DEPENDS:=+pciutils
|
|
|
|
TITLE:=libpciaccess
|
|
|
|
URL:=http://xorg.freedesktop.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-pciids-path=/usr/share/pci.ids \
|
|
|
|
, \
|
|
|
|
ac_cv_file__usr_include_asm_mtrr_h=$(shell \
|
|
|
|
test -f "$(TOOLCHAIN_DIR)/include/asm/mtrr.h" \
|
|
|
|
&& echo "yes" \
|
|
|
|
|| echo "no") \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2008-11-17 23:00:28 +00:00
|
|
|
define Build/InstallDev
|
2008-11-17 22:43:31 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/*.h \
|
|
|
|
$(1)/usr/include
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libpciaccess.{so*,a,la} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
2008-11-17 23:00:28 +00:00
|
|
|
define Package/libpciaccess/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libpciaccess.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2008-11-17 22:43:31 +00:00
|
|
|
$(eval $(call BuildPackage,libpciaccess))
|