OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # See /LICENSE for more information. |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/rules.mk |
| 7 | |
| 8 | PKG_NAME:=tic-tac-toe |
| 9 | PKG_VERSION:=1.0 |
| 10 | PKG_REV:=1ef5285d7fb188cd2049936f85de98cabc911144 |
| 11 | PKG_RELEASE:=1 |
| 12 | |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=git://github.com/garretraziel/gomoku.git |
| 15 | PKG_SOURCE_PROTO:=git |
| 16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 17 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/tic-tac-toe |
| 22 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 23 | SECTION:=games |
| 24 | CATEGORY:=Games |
| 25 | TITLE:=Easy Tic-Tac-Toe game |
| 26 | DEPENDS:=+libsdl +libsdl-gfx |
| 27 | URL:=http://github.com/garretraziel/gomoku |
| 28 | endef |
| 29 | |
| 30 | define Package/tic-tac-toe/description |
| 31 | Easy Tic-Tac-Toe game, using SDL and own AI. |
| 32 | endef |
| 33 | |
| 34 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/ \ |
| 35 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ |
| 36 | -L$(STAGING_DIR)/usr/lib |
| 37 | |
| 38 | define Package/tic-tac-toe/install |
| 39 | $(INSTALL_DIR) $(1)/usr/bin |
| 40 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/gobango $(1)/usr/bin |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call BuildPackage,tic-tac-toe)) |
| 44 | |
| 45 | # The following comments configure the Emacs editor. Just ignore them. |
| 46 | # Local Variables: |
| 47 | # compile-command: "make -C ~/openwrt-xburst.full_system package/tic-tac-toe/{clean,compile} -j2 V=99" |
| 48 | # End: |
| 49 |
