OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # Copyright (C) 2010 OpenWrt.org |
2 | # |
3 | # This is free software, licensed under the GNU General Public License v2. |
4 | # |
5 | |
6 | include $(TOPDIR)/rules.mk |
7 | PKG_NAME:=pmars |
8 | PKG_VERSION:=0.9.2 |
9 | PKG_RELEASE:=3 |
10 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
11 | PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/corewar/pMARS/0.9.2/pmars-0.9.2.tar.gz?use_mirror=mesh |
12 | PKG_CAT:=zcat |
13 | |
14 | include $(INCLUDE_DIR)/package.mk |
15 | define Package/pmars |
16 | TITLE:=Pmars |
17 | SECTION:=games |
18 | CATEGORY:=Games |
19 | DEPENDS:=+libncurses |
20 | URL:=http://corewar.co.uk/pmars/ |
21 | endef |
22 | PKG_BUILD_DIR:=$(BUILD_DIR)/pmars-$(PKG_VERSION) |
23 | define Package/pmars/description |
24 | PMARS |
25 | endef |
26 | |
27 | TARGET_LDFLAGS+= \ |
28 | -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
29 | |
30 | MAKE_FLAGS += -C src |
31 | |
32 | define Package/pmars/install |
33 | $(INSTALL_DIR) $(1)/usr/bin |
34 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmars $(1)/usr/bin/ |
35 | endef |
36 | |
37 | $(eval $(call BuildPackage,pmars)) |
38 |