4a8574d1b67d18ee83f25e06be0ab633c10df0d1
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=x11perf
11 PKG_RELEASE:=2
12 PKG_VERSION:=1.5
13 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/X11R7.4/src/app
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_MD5SUM:=31283bfc3c78718ac1bd71e510d4e774
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))