2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_REV
:=36b80fb91a863555a5608972df19574644e67c4d
12 PKG_VERSION
:=$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=git
://git.bu3sch.de
/pwrtray.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/pwrtray
30 URL
:=http
://bu3sch.de
/gitweb?p
=pwrtray.git
;a
=summary
31 DEPENDS
:=+qt4
+qt4-gui
34 define Package
/pwrtray
/description
35 Tiny power control tray application.
39 -I
$(PKG_BUILD_DIR
)/tray
/moc \
40 -I
$(STAGING_DIR
)/usr
/include/QtCore \
41 -I
$(STAGING_DIR
)/usr
/include/QtGui
44 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
48 MOC
="$(STAGING_DIR_HOST)/bin/moc" \
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 [ -e
$(1)/etc
/pwrtray-backendrc
] || \
61 $(INSTALL_DATA
) .
/files
/etc
/pwrtray-backendrc
$(1)/etc
/
64 $(eval
$(call BuildPackage
,pwrtray
))