6a5b24e0b4d5b3f72c40a06c82bc2ac3ed8a7aea
[openwrt/svn-archive/archive.git] / Xorg / app / xsetroot / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_BASE_NAME:=xsetroot
12 PKG_NAME:=xsetroot
13 PKG_RELEASE:=2
14 PKG_VERSION:=1.0.2
15 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.3/src/app
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/xsetroot
22 SECTION:=xorg-app
23 CATEGORY:=Xorg
24 SUBMENU:=app
25 DEPENDS:=+xbitmaps @DISPLAY_SUPPORT
26 TITLE:=xsetroot
27 URL:=http://xorg.freedesktop.org/
28 endef
29
30 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
31
32 define Build/Compile
33 DESTDIR=$(PKG_INSTALL_DIR) make -C $(PKG_BUILD_DIR) install
34 endef
35
36 define Package/xsetroot/install
37 $(INSTALL_DIR) $(1)
38 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
39 rm -rf $(1)/usr/man/
40 endef
41
42 define Build/InstallDev
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 $(eval $(call BuildPackage,xsetroot))