8cbfe1d0760ade4be7c6c05506281d6238849dd6
[openwrt/svn-archive/archive.git] / Xorg / xorg / data / xbitmaps / 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:=xbitmaps
11 PKG_NAME:=xbitmaps
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.0.1
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/data/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/xbitmaps
21 SECTION:=xorg-data
22 CATEGORY:=Xorg
23 SUBMENU:=data
24 DEPENDS:=
25 TITLE:=xbitmaps
26 URL:=http://xorg.freedesktop.org/
27 endef
28
29 define Build/InstallDev
30 DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
31 endef
32
33 #ifeq (libXext,libX11)
34 # CONFIGURE_ARGS_XTRA=--without-xcb
35 #endif
36
37 define Build/Compile
38 $(call $(PKG_NAME)/Compile)
39 make -C $(PKG_BUILD_DIR)
40 mkdir -p $(PKG_INSTALL_DIR)
41 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
42 endef
43
44 define Build/Configure
45 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
46 if [ -x $(CONFIGURE_CMD) ]; then \
47 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
48 $(CONFIGURE_VARS) \
49 $(CONFIGURE_CMD) \
50 $(CONFIGURE_ARGS_XTRA) \
51 $(CONFIGURE_ARGS) ; \
52 fi \
53 )
54 endef
55
56 define Package/xbitmaps/install/Default
57 $(INSTALL_DIR) $(1)/usr/include/X11/bitmaps
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/X11/bitmaps/* $(1)/usr/include/X11/bitmaps
59 endef
60
61 $(eval $(call BuildPackage,xbitmaps))