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:
parent
3cc708a055
commit
fbce4aa1b9
@ -20,11 +20,12 @@ UNPACK_CMD=unzip -d $(1) $(DL_DIR)/$(PKG_SOURCE)
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
TARGET_CFLAGS+=\
|
TARGET_CFLAGS += \
|
||||||
-I$(STAGING_DIR)/usr/lib/libintl/include/ \
|
-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 \
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
|
||||||
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
||||||
-L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
||||||
@ -41,22 +42,29 @@ define Package/dgclock/description
|
|||||||
Clock and date in sdl
|
Clock and date in sdl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default, \
|
$(call Build/Compile/Default, \
|
||||||
A320=1\
|
A320=1 \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/dgclock/install
|
define Package/dgclock/install
|
||||||
$(INSTALL_DIR) \
|
$(INSTALL_DIR) \
|
||||||
$(1)/usr/bin
|
$(1)/usr/bin \
|
||||||
|
$(1)/usr/share/icons \
|
||||||
|
$(1)/usr/share/applications
|
||||||
|
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
$(PKG_BUILD_DIR)/bin/a320/dgclock \
|
$(PKG_BUILD_DIR)/bin/a320/dgclock \
|
||||||
$(1)/usr/bin/
|
$(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
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,dgclock))
|
$(eval $(call BuildPackage,dgclock))
|
||||||
|
11
dgclock/files/dgclock.desktop
Normal file
11
dgclock/files/dgclock.desktop
Normal 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
|
Loading…
Reference in New Issue
Block a user