acf9fdda90d612051995f780ac113a4fb7047ade
[openwrt/svn-archive/archive.git] / Xorg / xorg / app / x11perf / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=x11perf
12 PKG_RELEASE:=1
13 PKG_VERSION:=1.5
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/app
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 PKG_INSTALL:=1
21
22 define Package/x11perf
23 SECTION:=xorg-app
24 CATEGORY:=Xorg
25 SUBMENU:=app
26 DEPENDS:=+libX11 +libXmuu +libXrender +libXft +libXext
27 TITLE:=x11perf
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 CONFIGURE_ARGS+=LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
32
33 define Package/x11perf/install
34 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/X11/x11perfcomp
35 $(INSTALL_BIN) \
36 $(PKG_INSTALL_DIR)/usr/bin/* \
37 $(1)/usr/bin
38 $(INSTALL_BIN) \
39 $(PKG_INSTALL_DIR)/usr/lib/X11/x11perfcomp/* \
40 $(1)/usr/lib/X11/x11perfcomp/
41 endef
42
43 $(eval $(call BuildPackage,x11perf))