pwrtray: Update.
[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:=e1cf5f9d31152a383612b2298f694894584127ab
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 +qt4-gui
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)/tray/moc \
40 -I$(STAGING_DIR)/usr/include/QtCore \
41 -I$(STAGING_DIR)/usr/include/QtGui
42
43 EXTRA_LDFLAGS:= \
44 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
45 -Wl,-rpath=/usr/lib/
46
47 MAKE_VARS+= \
48 MOC="$(STAGING_DIR_HOST)/bin/moc" \
49 STRIP="$(STRIP)"
50
51 #MAKE_FLAGS+= \
52 # V=1
53
54 define Package/pwrtray/install
55 $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/bin $(1)/usr/share
56 $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d/
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray-backend $(1)/usr/bin/
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray $(1)/usr/bin/
59 $(CP) $(PKG_INSTALL_DIR)/usr/share/pwrtray $(1)/usr/share/
60 endef
61
62 $(eval $(call BuildPackage,pwrtray))