Date:2010-02-11 01:10:30 (11 years 14 days ago)
Author:Mirko Vogt
Commit:a268e55acda0af36c700bd685bc17b666851eb0d
Message:add Makefile for sdl-app <dgclock>

Files: dgclock/Makefile (1 diff)

Change Details

dgclock/Makefile
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dgclock
11PKG_VERSION:=091222
12PKG_RELEASE:=1
13
14PKG_SOURCE:=dgclock$(PKG_VERSION).zip
15PKG_SOURCE_URL:=http://clogging.web.fc2.com/dingoo/
16PKG_MD5SUM:=2a5143b7a3db464488c917387445e092
17PKG_BUILD_DIR:=$(BUILD_DIR)/dgclock-$(PKG_VERSION)
18
19UNPACK_CMD=unzip -d $(1) $(DL_DIR)/$(PKG_SOURCE)
20
21include $(INCLUDE_DIR)/package.mk
22
23TARGET_CFLAGS+=\
24    -I$(STAGING_DIR)/usr/lib/libintl/include/ \
25    -I$(STAGING_DIR)/usr/lib/libiconv/include/
26
27TARGET_LDFLAGS+=\
28    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
29    -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
30    -L$(STAGING_DIR)/usr/lib/libiconv/lib/
31
32define Package/dgclock
33  SECTION:=xorg-apps
34  CATEGORY:=Xorg
35  TITLE:=dgclock - sdl based date and time
36  URL:=http://clogging.web.fc2.com/dingoo/
37  DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libgl-mesa
38endef
39
40define Package/dgclock/description
41  Clock and date in sdl
42endef
43
44TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL
45
46define Build/Compile
47    $(call Build/Compile/Default, \
48    A320=1\
49    )
50endef
51
52define Package/dgclock/install
53    $(INSTALL_DIR) \
54        $(1)/usr/bin
55
56    $(INSTALL_BIN) \
57        $(PKG_BUILD_DIR)/bin/a320/dgclock \
58        $(1)/usr/bin/
59
60endef
61
62$(eval $(call BuildPackage,dgclock))

Archive Download the corresponding diff file



interactive