Add "pwrtray" application package
[openwrt/svn-archive/archive.git] / Xorg / app / pwrtray / Makefile
1 #
2 # Copyright (C) 2010 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:=pwrtray
11 PKG_REV:=30e0767cd45fe63f06055488407388dc8446b763
12 PKG_VERSION:=$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://git.bu3sch.de/pwrtray.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE_VERSION:=$(PKG_REV)
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/pwrtray
26 SECTION:=xorg-app
27 CATEGORY:=Xorg
28 SUBMENU:=app
29 TITLE:=pwrtray
30 URL:=http://bu3sch.de/gitweb?p=pwrtray.git;a=summary
31 DEPENDS:=+qt4
32 endef
33
34 define Package/pwrtray/description
35 Tiny power control tray application.
36 endef
37
38 EXTRA_CFLAGS:= \
39 -I$(PKG_BUILD_DIR)/moc
40
41 EXTRA_LDFLAGS:= \
42 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
43 -Wl,-rpath=/usr/lib/
44
45 MAKE_VARS+= \
46 MOC="$(STAGING_DIR_HOST)/bin/moc" \
47 STRIP="$(STRIP)"
48
49 #MAKE_FLAGS+= \
50 # V=1
51
52 define Package/pwrtray/install
53 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray $(1)/usr/bin/
55 $(CP) $(PKG_INSTALL_DIR)/usr/share/pwrtray $(1)/usr/share/
56 endef
57
58 $(eval $(call BuildPackage,pwrtray))