the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: yahtzee
Version: 1.00
Revision: 3
Maintainer: None
Source: http://www.ibiblio.org/pub/Linux/games/strategy/%n-src.tar.Z
Source-MD5: d860be149156e0c9a118e58ddf069a80
SourceDirectory: %n
BuildDepends: fink (>= 0.24.12-1), libncurses5
Depends: libncurses5-shlibs
PatchFile: %n.patch
PatchFile-MD5: f6002d2e3ffd25ae4e84f0ea8f5040f2
PatchScript: <<
perl -pi.bak -e 's|abort|yabort|g' main.c
sed 's|@prefix@|%p|g' <%{PatchFile} | patch -p1
<<
CompileScript: make
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/yahtzee
install -c yahtzee %i/bin
chmod a+w %i/share/yahtzee
<<
DocFiles: README
Description: Curses-based version of the dice game
DescPackaging: <<
Originally packaged by Matt Stephenson.
<<
License: Public Domain
diff -Nurd -x'*~' yahtzee.orig/Makefile yahtzee/Makefile
--- yahtzee.orig/Makefile 1992-01-25 03:45:26.000000000 -0500
+++ yahtzee/Makefile 2007-10-15 00:38:26.000000000 -0400
@@ -7,7 +7,7 @@
BIN = yahtzee
$(BIN): $(OBJ)
- cc -o $@ $(OBJ) -lcurses
+ cc -o $@ $(OBJ) $(LDFLAGS) -lcurses
clean:
rm -f $(OBJ) $(BIN)
diff -Nurd -x'*~' yahtzee.orig/config.h yahtzee/config.h
--- yahtzee.orig/config.h 1992-01-25 03:41:05.000000000 -0500
+++ yahtzee/config.h 2007-10-15 00:37:49.000000000 -0400
@@ -1,7 +1,7 @@
#ifndef _config_H_
#define _config_H_
-#define SCOREDIR "/usr/local/lib"
+#define SCOREDIR "@prefix@/share/yahtzee"
#define SCOREFNAME "yahtzee.sco" /* must allow .L extension */
#define NUM_TOP_PLAYERS 10