After my first successful port (gnugo), I decided to try something else, and while idling at the train I thought that pMARS, the portable Memory Array Redcode Simulator was probably a good bet. If you don't know what I am talking about, you can check here. I had just started writing some test warriors, to see if I understood the code, but had too little time to test it working.
Follow the steps in my previous tutorial, the changes needed fit in there.
The corresponding openwrt Makefile for pMARS should be
# Copyright (C) 2008 OpenWrt.org
# This is free software, licensed under the GNU General Public License v2.
## Package name
## Package version we need (to match our download source)
## Release version (don't really needed, just for completeness)
## Name of the file we will download, with the previous package name definitions
## Url with the PKG_SOURCE file
## Program to uncompress the sources
# Definition of the package, for adding to menuconfig and creating the ipkg.
# Directory where the sources will be uncompiled and built BUILD_DIR
# is an env variable from the OpenWrt toolchain, you don't need to set
# Long description of the package
# If ./configure does not need any options, leave it as follows
$(CP) $(PKG_BUILD_DIR)/src/* $(PKG_BUILD_DIR)/
# Where will be copied the binaries and libraries after installation.
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pmars $(1)/usr/sbin/
# Final step for bulding the package
$(eval $(call BuildPackage,pmars))
CC = mipsel-openwrt-linux-uclibc-gccand the compiler and linker flags for
CFLAGS = -O -DEXT94 -DPERMUTATEAnd remove (or comment) this line:
LFLAGS = -x
Nanonote ports: Yacas, 4th (forth compiler and interpreter)
My first port to the Ben NanoNote: gnugo
Unpacking my Ben NanoNote
Gcal: the ultra-powerful command line GNU calendar