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
:=42323a7fea02494aa3ae4e74ffc01f0f4fa35ff4
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 PKG_CONFIG_DEPENDS
:= \
24 CONFIG_PACKAGE_pwrtray-backend \
25 CONFIG_PACKAGE_pwrtray
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/pwrtray-common
30 MAINTAINER
:=Michael Buesch
<mb@bu3sch.de
>
31 URL
:=http
://bu3sch.de
/gitweb?p
=pwrtray.git
;a
=summary
34 define Package
/pwrtray-backend
35 $(call Package
/pwrtray-common
)
38 TITLE
:=System power control daemon
39 DEPENDS
:=+FEATURE_drawing-backend_libX11
:libX11
42 define Package
/pwrtray-backend
/description
43 Tiny system power control daemon.
46 define Package
/pwrtray
47 $(call Package
/pwrtray-common
)
51 TITLE
:=Frontend to pwrtray-backend daemon
52 DEPENDS
:=+pwrtray-backend
+qt4
+qt4-gui
55 define Package
/pwrtray
/description
56 Small system-tray frontend to the power control daemon.
60 -I
$(PKG_BUILD_DIR
)/tray
/moc \
61 -I
$(STAGING_DIR
)/usr
/include/QtCore \
62 -I
$(STAGING_DIR
)/usr
/include/QtGui
65 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
69 MOC
="$(STAGING_DIR_HOST)/bin/moc" \
71 $(if
$(CONFIG_PACKAGE_libX11
),FEATURE_XLOCK
=y
,FEATURE_XLOCK
=n
) \
72 $(if
$(CONFIG_PACKAGE_pwrtray
),FEATURE_TRAY
=y
,FEATURE_TRAY
=n
)
77 define Package
/pwrtray-backend
/install
78 $(INSTALL_DIR
) $(1)/etc
/init.d
$(1)/usr
/bin
$(1)/usr
/share
79 $(INSTALL_BIN
) .
/files
/etc
/init.d
/* $(1)/etc
/init.d
/
80 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pwrtray-backend
$(1)/usr
/bin
/
81 $(if
$(CONFIG_PACKAGE_libX11
),$(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pwrtray-xlock
$(1)/usr
/bin
/)
82 $(if
$(CONFIG_PACKAGE_pwrtray
),$(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pwrtray
$(1)/usr
/bin
/)
83 $(if
$(CONFIG_PACKAGE_pwrtray
),$(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/pwrtray
$(1)/usr
/share
/)
84 [ -e
$(1)/etc
/pwrtray-backendrc
] || \
85 $(INSTALL_DATA
) .
/files
/etc
/pwrtray-backendrc
$(1)/etc
/
88 $(eval
$(call BuildPackage
,pwrtray-backend
))
89 $(eval
$(call BuildPackage
,pwrtray
))