1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-24 07:24:06 +02:00

[new package] Rubén Berenguel's ports

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-06-07 12:42:15 +08:00
parent f2346b63a2
commit cb4bdc4b0c
7 changed files with 2543 additions and 0 deletions

55
4th/Makefile Normal file
View File

@ -0,0 +1,55 @@
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
##Nombre del paquete
PKG_NAME:=4th
## version del programa que vamos incluir en el paquete
PKG_VERSION:=3.60.1-unix
## numero de version del paquete
PKG_RELEASE:=3
##Nombre del archivo con el codigo fuente usamos las variables que acabamos de definir http://www.xs4all.nl/~thebeez/4tH/4th-3.60.1-unix.tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
##Url donde se encuetra el el codigo fuente
PKG_SOURCE_URL:=http://www.xs4all.nl/~thebeez/4tH/
## programa con el que descomprimir el codigo fuente
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
#Definicion del paquet Titulo, seccion, categoria, la url del proyecto,
#esto se usa para generar el ipkg y para incluirlo en el menuconfig
define Package/4th
TITLE:=4th
SECTION:=Programming
CATEGORY:=prog
DEPENDS:=@BROKEN
URL:=http://www.xs4all.nl/~thebeez/4tH/
endef
#El directorio donde extraeremos los fuentes y realizaremos la compilacion
#BUILD_DIR es una variable de etorno de OpenWrt es donde descomprimen/compilan los paquetes
PKG_BUILD_DIR:=$(BUILD_DIR)/4th-$(PKG_VERSION)
#Descripcion larga del programa
define Package/4th/description
4th forth compiler
endef
#Si no hay que darles instrucciones especiales al ./configure esto se queda tal como esta.
define Build/Prepare
#PKG_BUILD_DIR=$(PKG_BUILD_DIR)/src
$(call Build/Prepare/Default)
$(CP) $(PKG_BUILD_DIR)/sources/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
$(call Build/Configure/Default)
endef
#Definimos donde se copiaran los binarios y las librerias cuando queramos instalarlo,
#emacs genera el binario en el directorio src
define Package/4th/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/4th $(1)/usr/sbin/
endef
#Instrucion final para construir el paquete.
$(eval $(call BuildPackage,4th))

48
gnugo/Makefile Normal file
View File

@ -0,0 +1,48 @@
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
## Package name
PKG_NAME:=gnugo
## Package version we need (to match our download source)
PKG_VERSION:=3.8
## Release version (don't really needed, just for completeness)
PKG_RELEASE:=3
## Name of the file we will download, with the previous package name definitions
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
## Url with the PKG_SOURCE file
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gnugo/
## Program to uncompress the sources
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
# Definition of the package, for adding to menuconfig and creating the ipkg.
define Package/gnugo
TITLE:=Go GNU from FSF
SECTION:=games
CATEGORY:=Games
DEPENDS:=@BROKEN
URL:=http://www.gnu.org/software/gnugo
endef
# 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
# it.
PKG_BUILD_DIR:=$(BUILD_DIR)/gnugo-$(PKG_VERSION)
# Long description of the package
define Package/gnugo/description
GNU Go is a free program that plays the game of Go. GNU Go has played thousands of games on the NNGS Go server. GNU Go is now also playing regularly on the Legend Go Server in Taiwan, on the WING server in Japan, and many volunteers run GNU Go clients on KGS. GNU Go has established itself as the leading non-commercial go program in the recent tournaments that it has taken part in.
endef
# If ./configure does not need any options, leave it as follows
define Package/gnugo/Build/Configure
$(call Build/Configure/Default)
endef
# Where will be copied the binaries and libraries after installation.
# Gnugo creates the binary executable in the interface directory.
define Package/gnugo/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/interface/gnugo $(1)/usr/sbin/
endef
# Final step for bulding the package
$(eval $(call BuildPackage,gnugo))

View File

@ -0,0 +1,451 @@
Only in gnugo-3.8: config.h
Only in gnugo-3.8: config.log
Only in gnugo-3.8: config.status
Only in gnugo-3.8/doc: Makefile
Only in gnugo-3.8/engine: aftermath.o
Only in gnugo-3.8/engine: boardlib.o
Only in gnugo-3.8/engine: board.o
Only in gnugo-3.8/engine: breakin.o
Only in gnugo-3.8/engine: cache.o
Only in gnugo-3.8/engine: clock.o
Only in gnugo-3.8/engine: combination.o
Only in gnugo-3.8/engine: .deps
Only in gnugo-3.8/engine: dragon.o
Only in gnugo-3.8/engine: endgame.o
Only in gnugo-3.8/engine: filllib.o
Only in gnugo-3.8/engine: fuseki.o
Only in gnugo-3.8/engine: genmove.o
Only in gnugo-3.8/engine: globals.o
Only in gnugo-3.8/engine: handicap.o
Only in gnugo-3.8/engine: hash.o
Only in gnugo-3.8/engine: influence.o
Only in gnugo-3.8/engine: interface.o
Only in gnugo-3.8/engine: libboard.a
Only in gnugo-3.8/engine: libengine.a
Only in gnugo-3.8/engine: Makefile
Only in gnugo-3.8/engine: matchpat.o
Only in gnugo-3.8/engine: montecarlo.o
Only in gnugo-3.8/engine: movelist.o
Only in gnugo-3.8/engine: move_reasons.o
Only in gnugo-3.8/engine: optics.o
Only in gnugo-3.8/engine: oracle.o
Only in gnugo-3.8/engine: owl.o
Only in gnugo-3.8/engine: persistent.o
Only in gnugo-3.8/engine: printutils.o
Only in gnugo-3.8/engine: readconnect.o
Only in gnugo-3.8/engine: reading.o
Only in gnugo-3.8/engine: semeai.o
Only in gnugo-3.8/engine: sgfdecide.o
Only in gnugo-3.8/engine: sgffile.o
Only in gnugo-3.8/engine: shapes.o
Only in gnugo-3.8/engine: showbord.o
Only in gnugo-3.8/engine: surround.o
Only in gnugo-3.8/engine: unconditional.o
Only in gnugo-3.8/engine: utils.o
Only in gnugo-3.8/engine: value_moves.o
Only in gnugo-3.8/engine: worm.o
Only in gnugo-3.8/interface: .deps
Only in gnugo-3.8/interface: gmp.o
Only in gnugo-3.8/interface: gnugo
Only in gnugo-3.8/interface: gtp.o
Only in gnugo-3.8/interface: main.o
Only in gnugo-3.8/interface: Makefile
Only in gnugo-3.8/interface: play_ascii.o
Only in gnugo-3.8/interface: play_gmp.o
Only in gnugo-3.8/interface: play_gtp.o
Only in gnugo-3.8/interface: play_solo.o
Only in gnugo-3.8/interface: play_test.o
Only in gnugo-3.8: Makefile
Only in gnugo-3.8/patterns: aa_attackpat.c
Only in gnugo-3.8/patterns: aa_attackpat.o
Only in gnugo-3.8/patterns: apatterns.c
Only in gnugo-3.8/patterns: apatterns.o
Only in gnugo-3.8/patterns: barriers.c
Only in gnugo-3.8/patterns: barriers.o
Only in gnugo-3.8/patterns: conn.c
Only in gnugo-3.8/patterns: connections.o
Only in gnugo-3.8/patterns: conn.o
Only in gnugo-3.8/patterns: .deps
Only in gnugo-3.8/patterns: dfa.o
Only in gnugo-3.8/patterns: dpatterns.c
Only in gnugo-3.8/patterns: dpatterns.o
Only in gnugo-3.8/patterns: endgame.c
Only in gnugo-3.8/patterns: endgame.o
Only in gnugo-3.8/patterns: eyes.c
Only in gnugo-3.8/patterns: eyes.o
Only in gnugo-3.8/patterns: fuseki13.c
Only in gnugo-3.8/patterns: fuseki13.o
Only in gnugo-3.8/patterns: fuseki19.c
Only in gnugo-3.8/patterns: fuseki19.o
Only in gnugo-3.8/patterns: fuseki9.c
Only in gnugo-3.8/patterns: fuseki9.o
Only in gnugo-3.8/patterns: fusekipat.c
Only in gnugo-3.8/patterns: fusekipat.o
Only in gnugo-3.8/patterns: globals.o
Only in gnugo-3.8/patterns: handipat.c
Only in gnugo-3.8/patterns: handipat.o
Only in gnugo-3.8/patterns: helpers.o
Only in gnugo-3.8/patterns: influence.c
Only in gnugo-3.8/patterns: influence.o
Only in gnugo-3.8/patterns: joseki
Only in gnugo-3.8/patterns: josekidb.c
Only in gnugo-3.8/patterns: josekidb.o
Only in gnugo-3.8/patterns: joseki.o
Only in gnugo-3.8/patterns: libpatterns.a
Only in gnugo-3.8/patterns: Makefile
diff -crB gnugo-3.8/patterns/Makefile.am gnugo-3.8mod/patterns/Makefile.am
*** gnugo-3.8/patterns/Makefile.am 2009-02-17 22:41:31.000000000 +0100
--- gnugo-3.8mod/patterns/Makefile.am 2010-04-02 18:23:23.000000000 +0200
***************
*** 139,192 ****
./joseki JT $(srcdir)/takamoku.sgf >takamoku.db
patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT)
! ./mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \
-o patterns.c
josekidb.c : $(DBBUILT) mkpat$(EXEEXT)
! ./mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c
apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT)
! ./mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c
dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT)
! ./mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c
conn.c : $(srcdir)/conn.db mkpat$(EXEEXT)
! ./mkpat -c conn -i $(srcdir)/conn.db -o conn.c
endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT)
! ./mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c
eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT)
./mkeyes < $(srcdir)/eyes.db >eyes.c
influence.c : $(srcdir)/influence.db mkpat$(EXEEXT)
! ./mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c
barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT)
! ./mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c
aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \
-i $(srcdir)/aa_attackpats.db -o aa_attackpat.c
owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \
-i $(srcdir)/owl_attackpats.db -o owl_attackpat.c
oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT)
! ./mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c
owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \
-i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c
owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \
-i $(srcdir)/owl_defendpats.db -o owl_defendpat.c
fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT)
! ./mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c
fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT)
./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c
--- 139,192 ----
./joseki JT $(srcdir)/takamoku.sgf >takamoku.db
patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \
-o patterns.c
josekidb.c : $(DBBUILT) mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c
apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c
dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c
conn.c : $(srcdir)/conn.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c conn -i $(srcdir)/conn.db -o conn.c
endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c
eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT)
./mkeyes < $(srcdir)/eyes.db >eyes.c
influence.c : $(srcdir)/influence.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c
barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c
aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \
-i $(srcdir)/aa_attackpats.db -o aa_attackpat.c
owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \
-i $(srcdir)/owl_attackpats.db -o owl_attackpat.c
oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c
owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \
-i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c
owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \
-i $(srcdir)/owl_defendpats.db -o owl_defendpat.c
fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c
fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT)
./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c
***************
*** 198,204 ****
./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c
handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT)
! ./mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c
mcpat.c : $(MC_DB) mkmcpat$(EXEEXT)
./mkmcpat $(MC_DB) > mcpat.c
--- 198,204 ----
./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c
handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c
mcpat.c : $(MC_DB) mkmcpat$(EXEEXT)
./mkmcpat $(MC_DB) > mcpat.c
diff -crB gnugo-3.8/patterns/Makefile.in gnugo-3.8mod/patterns/Makefile.in
*** gnugo-3.8/patterns/Makefile.in 2009-02-18 01:50:06.000000000 +0100
--- gnugo-3.8mod/patterns/Makefile.in 2010-04-02 20:30:00.000000000 +0200
***************
*** 614,703 ****
cd $(distdir) && rm $(GGBUILTSOURCES)
gogo.db : $(srcdir)/gogo.sgf joseki$(EXEEXT)
! ./joseki JG $(srcdir)/gogo.sgf >gogo.db
hoshi_keima.db : $(srcdir)/hoshi_keima.sgf joseki$(EXEEXT)
! ./joseki JHK $(srcdir)/hoshi_keima.sgf >hoshi_keima.db
hoshi_other.db : $(srcdir)/hoshi_other.sgf joseki$(EXEEXT)
! ./joseki JHO $(srcdir)/hoshi_other.sgf >hoshi_other.db
komoku.db : $(srcdir)/komoku.sgf joseki$(EXEEXT)
! ./joseki JK $(srcdir)/komoku.sgf >komoku.db
sansan.db : $(srcdir)/sansan.sgf joseki$(EXEEXT)
! ./joseki JS $(srcdir)/sansan.sgf >sansan.db
mokuhazushi.db : $(srcdir)/mokuhazushi.sgf joseki$(EXEEXT)
! ./joseki JM $(srcdir)/mokuhazushi.sgf >mokuhazushi.db
takamoku.db : $(srcdir)/takamoku.sgf joseki$(EXEEXT)
! ./joseki JT $(srcdir)/takamoku.sgf >takamoku.db
patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT)
! ./mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \
-o patterns.c
josekidb.c : $(DBBUILT) mkpat$(EXEEXT)
! ./mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c
apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT)
! ./mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c
dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT)
! ./mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c
conn.c : $(srcdir)/conn.db mkpat$(EXEEXT)
! ./mkpat -c conn -i $(srcdir)/conn.db -o conn.c
endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT)
! ./mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c
eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT)
! ./mkeyes < $(srcdir)/eyes.db >eyes.c
influence.c : $(srcdir)/influence.db mkpat$(EXEEXT)
! ./mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c
barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT)
! ./mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c
aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \
-i $(srcdir)/aa_attackpats.db -o aa_attackpat.c
owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \
-i $(srcdir)/owl_attackpats.db -o owl_attackpat.c
oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT)
! ./mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c
owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \
-i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c
owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT)
! ./mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \
-i $(srcdir)/owl_defendpats.db -o owl_defendpat.c
fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT)
! ./mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c
fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT)
! ./uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c
fuseki13.c : $(srcdir)/fuseki13.dbz uncompress_fuseki$(EXEEXT)
! ./uncompress_fuseki 13 $(srcdir)/fuseki13.dbz c >fuseki13.c
fuseki19.c : $(srcdir)/fuseki19.dbz uncompress_fuseki$(EXEEXT)
! ./uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c
handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT)
! ./mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c
mcpat.c : $(MC_DB) mkmcpat$(EXEEXT)
! ./mkmcpat $(MC_DB) > mcpat.c
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
--- 614,703 ----
cd $(distdir) && rm $(GGBUILTSOURCES)
gogo.db : $(srcdir)/gogo.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JG $(srcdir)/gogo.sgf >gogo.db
hoshi_keima.db : $(srcdir)/hoshi_keima.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JHK $(srcdir)/hoshi_keima.sgf >hoshi_keima.db
hoshi_other.db : $(srcdir)/hoshi_other.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JHO $(srcdir)/hoshi_other.sgf >hoshi_other.db
komoku.db : $(srcdir)/komoku.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JK $(srcdir)/komoku.sgf >komoku.db
sansan.db : $(srcdir)/sansan.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JS $(srcdir)/sansan.sgf >sansan.db
mokuhazushi.db : $(srcdir)/mokuhazushi.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JM $(srcdir)/mokuhazushi.sgf >mokuhazushi.db
takamoku.db : $(srcdir)/takamoku.sgf joseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/joseki JT $(srcdir)/takamoku.sgf >takamoku.db
patterns.c : $(srcdir)/patterns.db $(srcdir)/patterns2.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b pat -i $(srcdir)/patterns.db -i$(srcdir)/patterns2.db \
-o patterns.c
josekidb.c : $(DBBUILT) mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -C joseki $(DBBUILT_INPUT) -o josekidb.c
apatterns.c : $(srcdir)/attack.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -X attpat -i $(srcdir)/attack.db -o apatterns.c
dpatterns.c : $(srcdir)/defense.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat defpat -i $(srcdir)/defense.db -o dpatterns.c
conn.c : $(srcdir)/conn.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c conn -i $(srcdir)/conn.db -o conn.c
endgame.c : $(srcdir)/endgame.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b endpat -i $(srcdir)/endgame.db -o endgame.c
eyes.c: $(srcdir)/eyes.db mkeyes$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkeyes < $(srcdir)/eyes.db >eyes.c
influence.c : $(srcdir)/influence.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c influencepat -i $(srcdir)/influence.db -o influence.c
barriers.c : $(srcdir)/barriers.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -c -b barrierspat -i $(srcdir)/barriers.db -o barriers.c
aa_attackpat.c : $(srcdir)/aa_attackpats.db $(srcdir)/aa_attackpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/aa_attackpats.dtr aa_attackpat \
-i $(srcdir)/aa_attackpats.db -o aa_attackpat.c
owl_attackpat.c : $(srcdir)/owl_attackpats.db $(srcdir)/owl_attackpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_attackpats.dtr owl_attackpat \
-i $(srcdir)/owl_attackpats.db -o owl_attackpat.c
oraclepat.c : $(srcdir)/oracle.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b oracle -i $(srcdir)/oracle.db -o oraclepat.c
owl_vital_apat.c : $(srcdir)/owl_vital_apats.db $(srcdir)/owl_vital_apats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_vital_apats.dtr owl_vital_apat \
-i $(srcdir)/owl_vital_apats.db -o owl_vital_apat.c
owl_defendpat.c : $(srcdir)/owl_defendpats.db $(srcdir)/owl_defendpats.dtr mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat $(DFAFLAGS) -b -t $(srcdir)/owl_defendpats.dtr owl_defendpat \
-i $(srcdir)/owl_defendpats.db -o owl_defendpat.c
fusekipat.c : $(srcdir)/fuseki.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b fusekipat -i $(srcdir)/fuseki.db -o fusekipat.c
fuseki9.c : $(srcdir)/fuseki9.dbz uncompress_fuseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 9 $(srcdir)/fuseki9.dbz c >fuseki9.c
fuseki13.c : $(srcdir)/fuseki13.dbz uncompress_fuseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 13 $(srcdir)/fuseki13.dbz c >fuseki13.c
fuseki19.c : $(srcdir)/fuseki19.dbz uncompress_fuseki$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/uncompress_fuseki 19 $(srcdir)/fuseki19.dbz c >fuseki19.c
handipat.c : $(srcdir)/handicap.db mkpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkpat -b handipat -i $(srcdir)/handicap.db -o handipat.c
mcpat.c : $(MC_DB) mkmcpat$(EXEEXT)
! /home/ruben/openwrt-xburst/testcode/gnugo-3.8/patterns/mkmcpat $(MC_DB) > mcpat.c
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
Only in gnugo-3.8/patterns: mcpat.c
Only in gnugo-3.8/patterns: mcpat.o
Only in gnugo-3.8/patterns: mkeyes
Only in gnugo-3.8/patterns: mkeyes.o
Only in gnugo-3.8/patterns: mkmcpat
Only in gnugo-3.8/patterns: mkmcpat.o
Only in gnugo-3.8/patterns: mkpat
Only in gnugo-3.8/patterns: mkpat.o
Only in gnugo-3.8/patterns: oraclepat.c
Only in gnugo-3.8/patterns: oraclepat.o
Only in gnugo-3.8/patterns: owl_attackpat.c
Only in gnugo-3.8/patterns: owl_attackpat.o
Only in gnugo-3.8/patterns: owl_defendpat.c
Only in gnugo-3.8/patterns: owl_defendpat.o
Only in gnugo-3.8/patterns: owl_vital_apat.c
Only in gnugo-3.8/patterns: owl_vital_apat.o
Only in gnugo-3.8/patterns: patterns.c
Only in gnugo-3.8/patterns: patterns.o
Only in gnugo-3.8/patterns: transform.o
Only in gnugo-3.8/patterns: uncompress_fuseki
Only in gnugo-3.8/patterns: uncompress_fuseki.o
Only in gnugo-3.8/regression: Makefile
Only in gnugo-3.8/sgf: .deps
Only in gnugo-3.8/sgf: libsgf.a
Only in gnugo-3.8/sgf: Makefile
Only in gnugo-3.8/sgf: sgfgen
Only in gnugo-3.8/sgf: sgfgen.o
Only in gnugo-3.8/sgf: sgfnode.o
Only in gnugo-3.8/sgf: sgftree.o
Only in gnugo-3.8/sgf: sgf_utils.o
Only in gnugo-3.8: stamp-h1
Only in gnugo-3.8/utils: .deps
Only in gnugo-3.8/utils: getopt1.o
Only in gnugo-3.8/utils: getopt.o
Only in gnugo-3.8/utils: gg_utils.o
Only in gnugo-3.8/utils: libutils.a
Only in gnugo-3.8/utils: Makefile
Only in gnugo-3.8/utils: random.o
Only in gnugo-3.8/utils: winsocket.o

41
pmars/Makefile Normal file
View File

@ -0,0 +1,41 @@
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pmars
PKG_VERSION:=0.9.2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/corewar/pMARS/0.9.2/pmars-0.9.2.tar.gz?use_mirror=mesh
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
define Package/pmars
TITLE:=Pmars
SECTION:=games
CATEGORY:=Games
DEPENDS:=@BROKEN
URL:=
endef
PKG_BUILD_DIR:=$(BUILD_DIR)/pmars-$(PKG_VERSION)
define Package/pmars/description
PMARS
endef
TARGET_LDFLAGS+= \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
MAKE_FLAGS += -C src
define Package/pmars/Build/Compile
$(call Build/Compile/Default)
endef
define Package/pmars/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmars $(1)/usr/bin/
endef
$(eval $(call BuildPackage,pmars))

View File

@ -0,0 +1,35 @@
diff --git a/src/Makefile b/src/Makefile
index 99c00bb..17a51ed 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,5 @@
# generic UNIX makefile
-CC = gcc # req. for linux
+#CC = gcc # req. for linux
#CC = cc # if you don't have gcc
# Configuration options:
#
@@ -16,11 +16,11 @@ CC = gcc # req. for linux
# (6) -DXWINGRAPHX 1 X-Windows graphics (UNIX)
# (7) -DPERMUTATE enables -P switch
-CFLAGS = -O -DEXT94 -DXWINGRAPHX -DPERMUTATE
+CFLAGS := $(CFLAGS) -O -DEXT94 -DPERMUTATE -DCURSESGRAPHX
LFLAGS = -x
-# LIB = -lcurses -ltermlib # enable this one for curses display
+LIB = -lncurses -ltermlib # enable this one for curses display
# LIB = -lvgagl -lvga # enable this one for Linux/SVGA
-LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
+# LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11
.SUFFIXES: .o .c .c~ .man .doc .6
MAINFILE = pmars
@@ -38,7 +38,7 @@ flags:
$(MAINFILE): $(OBJ1) $(OBJ2) $(OBJ3)
@echo Linking $(MAINFILE)
@$(CC) -o $(MAINFILE) $(OBJ1) $(OBJ2) $(OBJ3) $(LIB)
- @strip $(MAINFILE)
+ @$(STRIP) $(MAINFILE)
@echo done
token.o asm.o disasm.o: asm.h

96
yacas/Makefile Normal file
View File

@ -0,0 +1,96 @@
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
## Package name
PKG_NAME:=yacas
## Package version we need (to match our download source)
PKG_VERSION:=1.2.2
## Release version (don't really needed, just for completeness)
PKG_RELEASE:=3
## Name of the file we will download, with the previous package name definitions
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
## Url with the PKG_SOURCE file
PKG_SOURCE_URL:=http://yacas.sourceforge.net/backups/
## Program to uncompress the sources
PKG_CAT:=zcat
include $(INCLUDE_DIR)/package.mk
# Definition of the package, for adding to menuconfig and creating the ipkg.
define Package/yacas
TITLE:=yacas
SECTION:=Maths
CATEGORY:=Maths
DEPENDS:=@BROKEN
URL:=http://yacas.sourceforge.net
endef
# 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
# it.
PKG_BUILD_DIR:=$(BUILD_DIR)/yacas-$(PKG_VERSION)
# Long description of the package
define Package/yacas/description
YACAS is an easy to use, general purpose Computer Algebra System, a program for symbolic manipulation of mathematical expressions. It uses its own programming language designed for symbolic as well as arbitrary-precision numerical computations. The system has a library of scripts that implement many of the symbolic algebra operations; new algorithms can be easily added to the library. YACAS comes with extensive documentation (hundreds of pages) covering the scripting language, the functionality that is already implemented in the system, and the algorithms we used.
endef
define Build/Prepare
# The following is a dirty hack. To compile yacas you need to get
# mkfastprimes to run in your host computer. To do so, in Prepare I
# download the tar.gz in pkg_build_dir/temporaryyacas to configure and
# make it to get this mkfastprimes compiled. configure has a problem:
# it generates the Makefile in the current working directory... and cd
# doesn't seem to change it. Thus, it would overwrite the Makefile in
# ports/misc/yacas, a thing which we don't like. To solve it, copy
# Makefile to Makefile2, configure-make and copy it back. The only
# drawback of this approach is that ports/misc/yacas/ gets a little
# full of miscellaneous, unneeded files, generated by configure. Once
# we have mkfastprimes, we copy it to tmp, and then the applied patch
# uses that file. It looks like pwd, export and several other
# constructs don't work under openwrt's build-make environment, that
# is why I just use $(CP) which looks like works correctly.
wget $(PKG_SOURCE_URL)$(PKG_NAME)-$(PKG_VERSION).tar.gz
mkdir /tmp/temporaryyacas
mv $(PKG_NAME)-$(PKG_VERSION).tar.gz /tmp/temporaryyacas/
cp Makefile Makefile2
tar -C /tmp/temporaryyacas/ -xvf /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION).tar.gz
patch /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/configure.in patches1/manmake.pat
patch /tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/Makefile.in patches1/manmake2.pat
/tmp/temporaryyacas/$(PKG_NAME)-$(PKG_VERSION)/configure
make
$(CP) src/mkfastprimes /tmp/mkfastprimes
cp Makefile2 Makefile
rm /tmp/temporaryyacas/ -rf
$(call Build/Prepare/Default)
endef
# Configure, in principle does not need any parameter
define Package/yacas/Build/Configure
$(call Build/Configure/Default)
endef
# To end, copy the yacas binary to sbin, and all yacas scripts to
# sin/yacas-scripts. When you have installed the ipkg you have to add
# sin/yacas-scripts/ to the path, if you don't yacas won't do
# anything. You can also cd to sbin/yacas-scripts and run yacas from
# there. I'll have to check if configure or make has a configuration
# parameter to set the scripts folder.
define Package/yacas/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/yacas $(1)/usr/sbin/
mkdir $(1)/usr/sbin/yacas-scripts/
cp -r $(PKG_BUILD_DIR)/scripts/* $(1)/usr/sbin/yacas-scripts/
endef
# Final step for bulding the package
$(eval $(call BuildPackage,yacas))

File diff suppressed because it is too large Load Diff