[packages] use xorg-libraries as the section definition for Xorg libraries
[openwrt/svn-archive/archive.git] / Xorg / lib / xcbproto / Makefile
1 #
2 # Copyright (C) 2008-2010 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_NAME:=xcb-proto
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
16 PKG_MD5SUM:=d9275a714e83ab9c1f9b260c6eff1609
17 PKG_INSTALL:=1
18
19 #PKG_BUILD_DEPENDS:=python-mini/host
20
21 include $(INCLUDE_DIR)/package.mk
22 #$(call include_mk, python-package.mk)
23
24 #STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(call confvar,PACKAGE_python PACKAGE_python-mini)
25
26 define Package/xcbproto
27 SECTION:=xorg-libraries
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 BUILDONLY:=1
31 TITLE:=xcbproto
32 URL:=http://xcb.freedesktop.org/
33 endef
34
35 #define InstallPy
36 # $(INSTALL_DIR) $(1)/host/lib/$(PYTHON)/site-packages/xcbgen
37 # $(INSTALL_DATA) \
38 # $(PKG_INSTALL_DIR)/usr/lib/$(PYTHON)/site-packages/xcbgen/*.py \
39 # $(1)/host/lib/$(PYTHON)/site-packages/xcbgen/
40 #endef
41
42 define Build/InstallDev
43 # $(call InstallPy,$(1),$(2))
44 $(INSTALL_DIR) \
45 $(1)/usr/lib/pkgconfig \
46 $(1)/host/share/xcb
47
48 $(INSTALL_DATA) \
49 $(PKG_INSTALL_DIR)/usr/share/xcb/* \
50 $(1)/host/share/xcb/
51
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
54 $(1)/usr/lib/pkgconfig/
55
56 $(SED) 's,datadir=/usr,datadir=$(STAGING_DIR)/host,g' $(1)/usr/lib/pkgconfig/xcb-proto.pc
57 endef
58
59 $(eval $(call BuildPackage,xcbproto))