adding xbitmaps
authorJens Muecke <jens@nons.de>
Thu, 24 Jan 2008 02:57:44 +0000 (02:57 +0000)
committerJens Muecke <jens@nons.de>
Thu, 24 Jan 2008 02:57:44 +0000 (02:57 +0000)
adding missing dependency
setting green background as default

SVN-Revision: 10234

XOrg/app/xsetroot/Makefile
XOrg/data/xbitmaps/Makefile [new file with mode: 0644]
XOrg/meta/xorg-server-essentials/files/xinitrc

index e8b8b4e..bc4f0e9 100644 (file)
@@ -27,7 +27,7 @@ define Package/xsetroot
   SECTION:=xorg-app
   CATEGORY:=Xorg
   SUBMENU:=app
-  DEPENDS:=${_DEPEND} @DISPLAY_SUPPORT
+  DEPENDS:=${_DEPEND} +xbitmaps @DISPLAY_SUPPORT
   TITLE:=xsetroot
   URL:=http://xorg.freedesktop.org/
 endef
diff --git a/XOrg/data/xbitmaps/Makefile b/XOrg/data/xbitmaps/Makefile
new file mode 100644 (file)
index 0000000..fdcb95a
--- /dev/null
@@ -0,0 +1,62 @@
+# 
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_BASE_NAME:=xbitmaps
+PKG_NAME:=xbitmaps
+PKG_RELEASE:=1
+PKG_VERSION:=X11R7.0-1.0.1
+PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.2/src/data/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
+
+#PKG_FIXUP = libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/xbitmaps
+  SECTION:=xorg-data
+  CATEGORY:=Xorg
+  SUBMENU:=data
+  DEPENDS:=@DISPLAY_SUPPORT
+  TITLE:=xbitmaps
+  URL:=http://xorg.freedesktop.org/
+endef
+
+define Build/InstallDev
+       DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
+endef
+
+#ifeq (libXext,libX11)
+# CONFIGURE_ARGS_XTRA=--without-xcb
+#endif
+
+define Build/Compile
+       $(call $(PKG_NAME)/Compile)
+       make -C $(PKG_BUILD_DIR)
+       mkdir -p $(PKG_INSTALL_DIR)
+       DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
+endef
+
+define Build/Configure
+       (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
+       if [ -x $(CONFIGURE_CMD) ]; then \
+               $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
+               $(CONFIGURE_VARS) \
+               $(CONFIGURE_CMD) \
+               $(CONFIGURE_ARGS_XTRA) \
+               $(CONFIGURE_ARGS) ; \
+       fi \
+       )
+endef
+
+define Package/xbitmaps/install/Default
+       $(INSTALL_DIR) $(1)/usr/include/X11/bitmaps
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/X11/bitmaps/* $(1)/usr/include/X11/bitmaps
+endef
+
+$(eval $(call BuildPackage,xbitmaps))
index 74b22dd..c736374 100644 (file)
@@ -1,3 +1,8 @@
+#setting green backgroun, if xsetroot exists
+if [ -x `which xsetroot` ]; then
+       xsetroot -solid green
+fi
+
 BKGD_IMAGE_PATH=/usr/share/X11/bkgd-images/
 if [ -x `which Esetroot` ]; then
        Esetroot -scale ${BKGD_IMAGE_PATH}/default.png