Root/pmars/Makefile

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

Archive Download this file



interactive