Date:2010-02-16 20:33:25 (14 years 1 month ago)
Author:Mirko Vogt
Commit:fbce4aa1b9c4e24f99cc645fd37b278d02b2ab9b
Message:add desktop file and use icon file, some minor cleanups

Files: dgclock/Makefile (2 diffs)
dgclock/files/dgclock.desktop (1 diff)

Change Details

dgclock/Makefile
2020
2121include $(INCLUDE_DIR)/package.mk
2222
23TARGET_CFLAGS+=\
23TARGET_CFLAGS += \
2424    -I$(STAGING_DIR)/usr/lib/libintl/include/ \
25    -I$(STAGING_DIR)/usr/lib/libiconv/include/
25    -I$(STAGING_DIR)/usr/lib/libiconv/include/ \
26    -I$(STAGING_DIR)/usr/include/SDL
2627
27TARGET_LDFLAGS+=\
28TARGET_LDFLAGS += \
2829    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
2930    -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
3031    -L$(STAGING_DIR)/usr/lib/libiconv/lib/
...... 
4142  Clock and date in sdl
4243endef
4344
44TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
45
4645define Build/Compile
4746    $(call Build/Compile/Default, \
48    A320=1\
47    A320=1 \
4948    )
5049endef
5150
5251define Package/dgclock/install
5352    $(INSTALL_DIR) \
54        $(1)/usr/bin
53        $(1)/usr/bin \
54        $(1)/usr/share/icons \
55        $(1)/usr/share/applications
5556
5657    $(INSTALL_BIN) \
5758        $(PKG_BUILD_DIR)/bin/a320/dgclock \
5859        $(1)/usr/bin/
59
60
61    $(INSTALL_DATA) \
62        $(PKG_BUILD_DIR)/dgclock/dgclock.png \
63        $(1)/usr/share/icons/
64
65    $(INSTALL_DATA) \
66        ./files/dglock.desktop \
67        $(1)/usr/share/applications/
6068endef
6169
6270$(eval $(call BuildPackage,dgclock))
dgclock/files/dgclock.desktop
1[Desktop Entry]
2Name=dgclock
3Comment=sdl based date/time displayer
4Encoding=UTF-8
5Version=1.0
6Type=Application
7Exec=dgclock
8Icon=dgclock
9Terminal=false
10Categories=Application
11SingleInstance=false

Archive Download the corresponding diff file



interactive