1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-16 18:54:04 +02:00

add desktop file and use icon file, some minor cleanups

This commit is contained in:
Mirko Vogt 2010-02-16 20:33:25 +01:00
parent 3cc708a055
commit fbce4aa1b9
2 changed files with 27 additions and 8 deletions

View File

@ -22,7 +22,8 @@ include $(INCLUDE_DIR)/package.mk
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 += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
@ -41,8 +42,6 @@ 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 \
@ -51,12 +50,21 @@ 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))

View File

@ -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