packages: move Xorg category to its own feed, move X-related packages as well
[openwrt/svn-archive/feeds.git] / xorg / xorg / lib / libpciaccess / Makefile
1 #
2 # Copyright (C) 2009 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.9
14
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
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25
26 define Package/libpciaccess
27 SECTION:=xorg-libraries
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 DEPENDS:=+pciutils
31 TITLE:=libpciaccess
32 URL:=http://xorg.freedesktop.org/
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-pciids-path=/usr/share/pci.ids \
38 , \
39 ac_cv_file__usr_include_asm_mtrr_h=$(shell \
40 test -f "$(TOOLCHAIN_DIR)/include/asm/mtrr.h" \
41 && echo "yes" \
42 || echo "no") \
43 )
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/include/*.h \
50 $(1)/usr/include
51
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) \
54 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.{so*,a,la} \
55 $(1)/usr/lib/
56
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
59 $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libpciaccess/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/libpciaccess.so* \
66 $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,libpciaccess))