From: mb Date: Thu, 30 Sep 2010 22:05:11 +0000 (+0000) Subject: pwrtray: Improve screen and device locking X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=c8a1e2c17fc428d3c374419f19a0d932912a4436;p=packages.git pwrtray: Improve screen and device locking git-svn-id: svn://svn.openwrt.org/openwrt/packages@23164 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/Xorg/app/pwrtray/Makefile b/Xorg/app/pwrtray/Makefile index 4f8a8c607..e4eaa3c8b 100644 --- a/Xorg/app/pwrtray/Makefile +++ b/Xorg/app/pwrtray/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pwrtray -PKG_REV:=5f61c465b6f14909cda0d18bf9ccf5bb34d86e5b +PKG_REV:=00222f1a487efcae711128c44aca499f4327743f PKG_VERSION:=$(PKG_REV) PKG_RELEASE:=1 @@ -27,12 +27,13 @@ define Package/pwrtray CATEGORY:=Xorg SUBMENU:=app TITLE:=pwrtray + MAINTAINER:=Michael Buesch URL:=http://bu3sch.de/gitweb?p=pwrtray.git;a=summary - DEPENDS:=+qt4 +qt4-gui + DEPENDS:=+qt4 +qt4-gui +FEATURE_drawing-backend_libX11:libX11 endef define Package/pwrtray/description - Tiny power control tray application. + Tiny system power control daemon with a small system-tray frontend. endef EXTRA_CFLAGS:= \ @@ -46,7 +47,8 @@ EXTRA_LDFLAGS:= \ MAKE_VARS+= \ MOC="$(STAGING_DIR_HOST)/bin/moc" \ - STRIP="$(STRIP)" + STRIP="$(STRIP)" \ + $(if $(CONFIG_PACKAGE_libX11),FEATURE_XLOCK=y,FEATURE_XLOCK=n) #MAKE_FLAGS+= \ # V=1 @@ -55,6 +57,7 @@ define Package/pwrtray/install $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/bin $(1)/usr/share $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray-backend $(1)/usr/bin/ + $(if $(CONFIG_PACKAGE_libX11),$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray-xlock $(1)/usr/bin/) $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/share/pwrtray $(1)/usr/share/ [ -e $(1)/etc/pwrtray-backendrc ] || \