the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xscorch
Version: 0.2.0
Revision: 6
Maintainer: Alexander Strange
BuildDepends: atk1 (>= 1.20.0-1), cairo (>= 1.6-1), expat1, fink (>= 0.24.12), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1), glib2-dev (>= 2.14.0-1), glitz, gtk+2-dev (>= 2.12.0-1), libgettext3-dev, libiconv-dev, libjpeg, libpng3, libtiff, pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1), pkgconfig (>= 0.21-1), x11-dev, xft2-dev, xmkmf
Depends: atk1-shlibs (>= 1.20.0-1), glib2-shlibs (>= 2.14.0-1), gtk+2-shlibs (>= 2.12.0-1), libgettext3-shlibs, libiconv, pango1-xft2-ft219-shlibs (>= 1.18.4-4), x11-shlibs
Source: http://www.xscorch.org/releases/%n-%v.tar.gz
Source-MD5: 42862dbde1d0ebf87be30f7e04462a66
Source2: http://www.xscorch.org/releases/xscorch-0.2.0-stack-smash.patch.gz
Source2-MD5: 43cf6229e0f034c235805ec8a54e6718
Source3: http://www.xscorch.org/releases/xscorch-0.2.0-64bit.patch.gz
Source3-MD5: 00c6b5e67683ac8562488547659a72f3
PatchFile: %n.patch
PatchFile-MD5: 58a09a25bfc56ed8008a022d5185922c
PatchScript: <<
%{default_script}
gzcat ../xscorch-0.2.0-stack-smash.patch.gz | patch -p0
gzcat ../xscorch-0.2.0-64bit.patch.gz | patch -p0
<<
NoSetCPPFLAGS: true
SetCPPFLAGS: -I%p/lib/pango-ft219/include/pango-1.0 -I%p/lib/pango-ft219/include -I%p/lib/freetype219/include/freetype2 -I%p/lib/freetype219/include -I%p/lib/fontconfig2/include -I%p/include -I%p/include/sys -D__ALLOW_DEPRECATED_GTK__
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib/pango-ft219/lib -L%p/lib/freetype219/lib -L%p/lib/fontconfig2/lib
SetLIBS: -L%p/lib
SetCFLAGS: -Os
SetCXXFLAGS: -Os
ConfigureParams: --mandir=%p/share/man --enable-opt --disable-sound --with-gnome --without-readline --with-gtk-12=no --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
CompileScript: <<
#!/bin/bash -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
./configure %c
make
<<
InstallScript: <<
#!/bin/bash -ev
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
make -j1 install DESTDIR=%d
<<
DocFiles: doc/AI doc/NOTES doc/NETWORK doc/xscorch.txt AUTHORS COPYING INSTALL NEWS README TODO
Description: Scorched Earth clone for X11
DescDetail:<<
This is the *nix clone of Scorched Earth, a classic tank game.
(It may break if you change the font)
<<
DescPackaging: <<
The optional libraries (GNOME, MikMod, readline) are disabled because they aren't actually used for anything.
dmacks switched from gtk1 to gtk2:
gtk-12=no switches to gtk-20, not disables gtk entirely.
Uses deprecated gtk functions.
Placed local -I before global.
Need __ALLOW_DEPRECATED_GTK__ to avoid setting GTK_DISABLE_DEPRECATED,
which disables GtkTooltips, an old gtk2 API that xscorch uses that is
no longer available by default.
<<
Homepage: http://www.xscorch.org
License: GPL
diff -Nurd -x'*~' xscorch-0.2.0.orig/sgtk/Makefile.in xscorch-0.2.0/sgtk/Makefile.in
--- xscorch-0.2.0.orig/sgtk/Makefile.in 2004-03-25 00:24:11.000000000 -0500
+++ xscorch-0.2.0/sgtk/Makefile.in 2007-05-14 22:42:59.000000000 -0400
@@ -146,7 +146,7 @@
libscorch_gtk_a_SOURCES = sai-gtk.c sautodef-gtk.c scolor-gtk.c scolor-gtk.h sdialog-gtk.h seconomy-gtk.c send-gtk.c sexplosion-gtk.c sexplosion-gtk.h sfile-gtk.c sfont-gtk.c sgraphics-gtk.c sgtk.h simage-gtk.c simage-gtk.h sinventory-gtk.c sland-gtk.c slottery-gtk.c smainmenu-gtk.c smenu-gtk.c smenu-gtk.h snet-gtk.c snet-gtk.h soptions-gtk.c spaint-gtk.c sphysics-gtk.c splayer-gtk.c ssetup-gtk.h ssound-gtk.c sspill-gtk.c sstatus-gtk.c sstatus-gtk.h ssystem-gtk.c ssystem-gtk.h stank-gtk.c stank-gtk.h sweapons-gtk.c swindow-gtk.c swindow-gtk.h
-INCLUDES = $(GTK_CFLAGS) -Iswidgets -I../libj
+INCLUDES = -Iswidgets -I../libj $(GTK_CFLAGS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =
diff -Nurd -x'*~' xscorch-0.2.0.orig/sgtk/sdialog-gtk.h xscorch-0.2.0/sgtk/sdialog-gtk.h
--- xscorch-0.2.0.orig/sgtk/sdialog-gtk.h 2004-02-26 10:27:56.000000000 -0500
+++ xscorch-0.2.0/sgtk/sdialog-gtk.h 2007-05-14 22:27:45.000000000 -0400
@@ -31,6 +31,8 @@
#include
#include
#include
+#undef GTK_DISABLE_DEPRECATED
+#include
/* Tooltips and dialogue helpers */
diff -Nurd -x'*~' xscorch-0.2.0.orig/sgtk/swidgets/Makefile.in xscorch-0.2.0/sgtk/swidgets/Makefile.in
--- xscorch-0.2.0.orig/sgtk/swidgets/Makefile.in 2004-03-25 00:24:12.000000000 -0500
+++ xscorch-0.2.0/sgtk/swidgets/Makefile.in 2007-05-14 22:42:46.000000000 -0400
@@ -142,7 +142,7 @@
libscorch_widget_gtk_a_SOURCES = sactiveconsole.c sactiveconsole.h sactoggle.c sactoggle.h sconsole.c sconsole.h sdialog.c sdialog.h sdisplay.c sdisplay.h sdrawbuf.c sdrawbuf.h slabel.c slabel.h slinkcheck.c slinkcheck.h slinkcombo.c slinkcombo.h slinkentry.c slinkentry.h slinkspin.c slinkspin.h
-INCLUDES = $(GTK_CFLAGS) -I../ -I../../sutil -I../../libj
+INCLUDES = -I../ -I../../sutil -I../../libj $(GTK_CFLAGS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
diff -Nurd -x'*~' xscorch-0.2.0.orig/sgtk/swidgets/sdialog.h xscorch-0.2.0/sgtk/swidgets/sdialog.h
--- xscorch-0.2.0.orig/sgtk/swidgets/sdialog.h 2004-02-26 10:27:58.000000000 -0500
+++ xscorch-0.2.0/sgtk/swidgets/sdialog.h 2007-05-14 22:38:13.000000000 -0400
@@ -26,6 +26,7 @@
#include
+#undef GTK_DISABLE_DEPRECATED
#include
#include
diff -Nurd -x'*~' xscorch-0.2.0.orig/sgtk/swidgets/slinkcombo.h xscorch-0.2.0/sgtk/swidgets/slinkcombo.h
--- xscorch-0.2.0.orig/sgtk/swidgets/slinkcombo.h 2004-02-26 10:27:58.000000000 -0500
+++ xscorch-0.2.0/sgtk/swidgets/slinkcombo.h 2007-05-14 22:26:51.000000000 -0400
@@ -27,6 +27,7 @@
#include
#include
+#undef GTK_DISABLE_DEPRECATED
#include