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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=dgclock |
| 11 | PKG_VERSION:=091222 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=dgclock$(PKG_VERSION).zip |
| 15 | PKG_SOURCE_URL:=http://clogging.web.fc2.com/dingoo/ |
| 16 | PKG_MD5SUM:=2a5143b7a3db464488c917387445e092 |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/dgclock-$(PKG_VERSION) |
| 18 | |
| 19 | UNPACK_CMD=unzip -d $(1) $(DL_DIR)/$(PKG_SOURCE) |
| 20 | |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | |
| 23 | TARGET_CFLAGS+=\ |
| 24 | -I$(STAGING_DIR)/usr/lib/libintl/include/ \ |
| 25 | -I$(STAGING_DIR)/usr/lib/libiconv/include/ |
| 26 | |
| 27 | TARGET_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 | |
| 32 | define 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 |
| 38 | endef |
| 39 | |
| 40 | define Package/dgclock/description |
| 41 | Clock and date in sdl |
| 42 | endef |
| 43 | |
| 44 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/SDL |
| 45 | |
| 46 | define Build/Compile |
| 47 | $(call Build/Compile/Default, \ |
| 48 | A320=1\ |
| 49 | ) |
| 50 | endef |
| 51 | |
| 52 | define 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 | |
| 60 | endef |
| 61 | |
| 62 | $(eval $(call BuildPackage,dgclock)) |