b8b9ff51fe340821ffe7b8ef78bd8455bb77b3ab
[openwrt/svn-archive/archive.git] / Xorg / xorg / lib / libpciaccess / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_BASE_NAME:=libpciaccess
11 PKG_NAME:=libpciaccess
12 PKG_RELEASE:=1
13 PKG_VERSION:=0.10.3
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/lib/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL:=1
22
23 define Package/libpciaccess
24 SECTION:=xorg-libraries
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 DEPENDS:=+pciutils
28 TITLE:=libpciaccess
29 URL:=http://xorg.freedesktop.org/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --with-pciids-path=/usr/share/pci.ids \
35 , \
36 ac_cv_file__usr_include_asm_mtrr_h=$(shell \
37 test -f "$(TOOLCHAIN_DIR)/include/asm/mtrr.h" \
38 && echo "yes" \
39 || echo "no") \
40 )
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include
45 $(INSTALL_DATA) \
46 $(PKG_INSTALL_DIR)/usr/include/*.h \
47 $(1)/usr/include
48
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(INSTALL_DATA) \
51 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.{so*,a,la} \
52 $(1)/usr/lib/
53
54 $(INSTALL_DATA) \
55 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
56 $(1)/usr/lib/pkgconfig/
57 endef
58
59 define Package/libpciaccess/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.so* \
63 $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libpciaccess))