source: packages/Xorg/lib/xcbproto/Makefile @ 20535

Last change on this file since 20535 was 20535, checked in by swalker, 6 years ago

[packages] use xorg-libraries as the section definition for Xorg libraries

File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=xcb-proto
11PKG_VERSION:=1.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://xcb.freedesktop.org/dist/
16PKG_MD5SUM:=d9275a714e83ab9c1f9b260c6eff1609
17PKG_INSTALL:=1
18
19#PKG_BUILD_DEPENDS:=python-mini/host
20
21include $(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
26define Package/xcbproto
27  SECTION:=xorg-libraries
28  CATEGORY:=Xorg
29  SUBMENU:=libraries
30  BUILDONLY:=1
31  TITLE:=xcbproto
32  URL:=http://xcb.freedesktop.org/
33endef
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
42define 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
57endef
58
59$(eval $(call BuildPackage,xcbproto))
Note: See TracBrowser for help on using the repository browser.