the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xorcurses
Version: 0.1.2
Revision: 1
Description: Game based on Xor
DescDetail: <<
XorCurses is a game coded by jwm-art.net based entirely on Xor by
Astral Software. The original game was released around 1987 for the 8
bit home computers popular at the time. XorCurses attempts to
faithfully recreate that game for Linux, but slightly ironically, uses
ASCII characters instead of pixel based graphics (which even the 8bit
computers could manage).
<<
License: GPL3
Homepage: http://jwm-art.net/dark.php?p=XorCurses
Maintainer: Daniel Johnson
Source: http://jwm-art.net/art/archive/XorCurses-%v.tar.bz2
Source-MD5: b5056fcc8a5e2028a20f1fab5ba8c714
Source2: http://www.gnu.org/licenses/gpl-3.0.txt
Source2-MD5: d32239bcb673463ab874e80d47fae504
Source2Rename: xorcurses-gpl3.txt
PatchFile: %n.patch
PatchFile-MD5: 3e6d01b7e19ad21ee8ce40a2fb25c4a7
PatchScript: sed 's|@PREFIX@|%p|g ' <%{PatchFile} | patch -p1
Depends: libncursesw5-shlibs
BuildDepends: libncursesw5, fink (>= 0.24.12)
CompileScript: <<
make PREFIX=%p/
cp ../xorcurses-gpl3.txt LICENSE
<<
InstallScript: make install PREFIX=%i/
DocFiles: CHANGES NEWS README TODO LICENSE
diff -ru XorCurses-0.1.0.orig/Makefile XorCurses-0.1.0/Makefile
--- XorCurses-0.1.0.orig/Makefile 2009-10-02 08:21:06.000000000 -0400
+++ XorCurses-0.1.0/Makefile 2009-10-02 10:02:39.000000000 -0400
@@ -10,7 +10,7 @@
#------------------standard options------------------
# probably fine for most people:
-CFLAGS:= -O2 -std=gnu99 -Wall -pedantic -DDATADIR=\"$(SHAREDIR)\"
+CFLAGS:= -O2 -std=gnu99 -Wall -pedantic -DDATADIR=\"$(SHAREDIR)\" -I@PREFIX@/include/ncursesw -I@PREFIX@/include
# -DDATA_DIR is an easy way of giving the src files
# the default install location. options code relies
@@ -39,7 +39,7 @@
PROG:=xorcurses
CC:=gcc
-LIBS :=-lcurses
+LIBS :=-L@PREFIX@/lib -lncursesw
SRC :=$(wildcard *.c)
OBJS :=$(patsubst %.c, %.o, $(SRC))
HEADERS:=$(wildcard *.h)
@@ -56,10 +56,11 @@
rm -f $(PROG) $(OBJS)
install: $(PROG)
+ install -d $(BINDIR)
install $(PROG) $(BINDIR)
install -d $(MAPDIR)
- install -t $(MAPDIR) maps/[1-9]*
- install -t $(SHAREDIR) help*.txt
+ install maps/[1-9]* $(MAPDIR)
+ install help*.txt $(SHAREDIR)
uninstall:
rm -f $(BINDIR)$(PROG)