From fbce4aa1b9c4e24f99cc645fd37b278d02b2ab9b Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Tue, 16 Feb 2010 20:33:25 +0100 Subject: [PATCH] add desktop file and use icon file, some minor cleanups --- dgclock/Makefile | 24 ++++++++++++++++-------- dgclock/files/dgclock.desktop | 11 +++++++++++ 2 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 dgclock/files/dgclock.desktop diff --git a/dgclock/Makefile b/dgclock/Makefile index 9266073..a2ff037 100644 --- a/dgclock/Makefile +++ b/dgclock/Makefile @@ -20,11 +20,12 @@ UNPACK_CMD=unzip -d $(1) $(DL_DIR)/$(PKG_SOURCE) include $(INCLUDE_DIR)/package.mk -TARGET_CFLAGS+=\ +TARGET_CFLAGS += \ -I$(STAGING_DIR)/usr/lib/libintl/include/ \ - -I$(STAGING_DIR)/usr/lib/libiconv/include/ + -I$(STAGING_DIR)/usr/lib/libiconv/include/ \ + -I$(STAGING_DIR)/usr/include/SDL -TARGET_LDFLAGS+=\ +TARGET_LDFLAGS += \ -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ -L$(STAGING_DIR)/usr/lib/libintl/lib/ \ -L$(STAGING_DIR)/usr/lib/libiconv/lib/ @@ -41,22 +42,29 @@ define Package/dgclock/description Clock and date in sdl endef -TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL - define Build/Compile $(call Build/Compile/Default, \ - A320=1\ + A320=1 \ ) endef define Package/dgclock/install $(INSTALL_DIR) \ - $(1)/usr/bin + $(1)/usr/bin \ + $(1)/usr/share/icons \ + $(1)/usr/share/applications $(INSTALL_BIN) \ $(PKG_BUILD_DIR)/bin/a320/dgclock \ $(1)/usr/bin/ - + + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/dgclock/dgclock.png \ + $(1)/usr/share/icons/ + + $(INSTALL_DATA) \ + ./files/dglock.desktop \ + $(1)/usr/share/applications/ endef $(eval $(call BuildPackage,dgclock)) diff --git a/dgclock/files/dgclock.desktop b/dgclock/files/dgclock.desktop new file mode 100644 index 0000000..0f89137 --- /dev/null +++ b/dgclock/files/dgclock.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=dgclock +Comment=sdl based date/time displayer +Encoding=UTF-8 +Version=1.0 +Type=Application +Exec=dgclock +Icon=dgclock +Terminal=false +Categories=Application +SingleInstance=false