the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: wesnoth
Version: 1.8.6
Revision: 1
Description: Fantasy turn-based strategy game
GCC: 4.0
Source-MD5: f1c3179869b01b61e253e74aeb241034
Source: mirror:sourceforge:wesnoth/wesnoth-%v.tar.bz2
BuildDepends: <<
autoconf (>= 2.60),
automake1.11,
sdl,
sdl-mixer,
sdl-image,
sdl-ttf (>= 2.0.6-1017),
sdl-net,
sdl-sound,
cairo,
fribidi-dev,
fribidi,
glib2-dev,
glitz,
libpng14,
lua51-dev (>= 5.1),
lua51 (>= 5.1),
freetype219,
libiconv-dev,
libgettext8-dev,
gettext-tools,
pango1-xft2-ft219-dev,
boost1.41.cmake,
fink (>= 0.24.12)
<<
Conflicts: wesnoth-devel, wesnoth-devel-campaign-server, wesnoth-devel-editor, wesnoth-devel-server, wesnoth-editor (<= 1.8.4)
Replaces: wesnoth-devel, wesnoth-devel-campaign-server, wesnoth-devel-editor, wesnoth-devel-server
Depends: <<
sdl-mixer-shlibs,
sdl-shlibs,
sdl-image-shlibs,
sdl-ttf-shlibs (>= 2.0.6-1017),
sdl-net-shlibs,
sdl-sound-shlibs,
cairo-shlibs,
fribidi-shlibs,
glib2-shlibs,
libpng14-shlibs,
lua51-shlibs,
freetype219-shlibs,
libiconv,
libgettext8-shlibs,
pango1-xft2-ft219-shlibs,
boost1.41.cmake-shlibs
<<
DocFiles: <<
ABOUT-NLS
COPYING
copyright
changelog
players_changelog
<<
ConfigureParams: <<
--with-libintl-prefix=%p \
--enable-editor \
--enable-tools \
--enable-server \
--enable-campaign-server \
--disable-dependency-tracking \
--without-x \
--disable-sdltest \
--with-server-gid=admin \
--with-server-uid=root \
--disable-python-install \
--with-boost=%p \
--disable-strict-compilation \
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
<<
PatchFile: %n.patch
PatchFile-MD5: 69d07a787a28ab3d0865abc433528b04
PatchScript: <<
#!/bin/sh -ev
%{default_script}
perl -pi -e 's/-L. -l(wesnoth-core)/lib\1.a/' src/Makefile.am
# darwin10: msgmerge is screwy, disabling backup avoids permissions issues
file=po/Makefile.in.in
sed -i.orig -e '/^MSGMERGE_UPDATE/s|$| --backup=off|' $file
# x86_64: Carbon API not supported on 64b, conditionally mask out
file=src/clipboard.cpp
sed -i.orig -e '/^#ifdef.*__APPLE__/s|.*|#if defined(__APPLE__) \&\& \!__LP64__|' $file
# libpng14 doesn't provide typecast NULL pointers anymore -- trivial patch
file=src/tools/exploder_utils.cpp
sed -i.orig -e '/png_voidp_NULL/s|reinterpret_cast|static_cast|' \
-e 's|png_voidp_NULL|NULL|' \
-e 's|png_error_ptr_NULL|png_error_ptr(NULL)|g' $file
<<
CompileScript: <<
#!/bin/sh -ev
# configure and Makefile.in aren't distributed with this release, hmmm...
# oddly, configure is folded into the last line of autogen.sh
./autogen.sh %c
make -k
<<
InstallScript: <<
make install DESTDIR=%d
mkdir %i/etc
touch %i/etc/wesnothd.conf
<<
DescDetail: <<
Battle for Wesnoth is a fantasy turn-based strategy game.
Battle for control of villages, using variety of units
which have advantages and disadvantages in different types
of terrains and against different types of attacks. Units
gain experience and advance levels, and are carried over
from one scenario to the next.
Features:
* Build a Hero, and lead your army.
* Different races, with distinctive abilities, weapons and spells.
* GNU/Linux, Windows, MacOSX, BeOS, Solaris, FreeBSD and
OpenBSD compatible.
The purpose of this package is to track the latest development version of
wesnoth. The package `wesnoth' tracks the stable branch.
See %p/share/doc/wesnoth/changelog to find out what's new; the
player's changelog (%p/share/doc/wesnoth/players_changelog) shows
what's new from a player's perspective.
<<
DescPackaging: <<
dmacks added --disable-sdltest and patched support for it in all
SDL_* tests so that can build on GUI-less machine.
dmacks hacked around under-use of libtool in Makefile in order to
assure that local convenince libs are used in preference to
installed ones of the same name.
fangism@users.sourceforge.net is helping maintain.
bumped libpng3 to libpng14 (1.8.5-2)
<<
License: GPL
Maintainer: Jesse Alama
Homepage: http://www.wesnoth.org/
SplitOff: <<
Package: wesnoth-server
Description: Battle for Wesnoth multiplayer network daemon
Depends: %N, daemonic
Files: <<
bin/wesnothd:sbin/wesnothd
etc/wesnothd.conf
share/man/de/man6/wesnothd.6
share/man/man6/wesnothd.6
<<
ConfFiles: %p/etc/wesnothd.conf
DaemonicName: wesnothd
DaemonicFile: <<
Battle for Wesnoth Multiplayer Server
Starting Battle for Wesnoth Multiplayer Server
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
daemonic remove wesnothd
fi
<<
PostInstScript: <<
daemonic install wesnothd
<<
DescUsage: <<
To create a startupitem that starts the wesnoth daemon after restart,
just run, as root, the command 'daemonic enable wesnothd'. To remove
the wesnothd startupitem just run, again as root, the command
'daemonic disable wesnothd'.
<<
<<
SplitOff2: <<
Package: wesnoth-campaign-server
Conflicts: wesnoth-campaign-server (>= 1.2.3)
Replaces: wesnoth-campaign-server (>= 1.2.3)
Description: Battle for Wesnoth campaign server
Files: bin/campaignd:sbin/campaignd
<<
--- wesnoth-1.8.5-orig/configure.ac 2010-09-24 10:37:41.000000000 -0700
+++ wesnoth-1.8.5/configure.ac 2010-10-22 15:08:14.000000000 -0700
@@ -755,6 +755,7 @@
AC_LANG([C])
AC_MSG_CHECKING([for PNG support in SDL_image])
+if test "x$enable_sdltest" = "xyes" ; then
OLD_CPPFLAGS=$CPPFLAGS
OLD_CFLAGS=$CFLAGS
@@ -789,11 +790,14 @@
[AC_MSG_ERROR([*** Either your test image has vanished, or SDL_image has no PNG support!])],
[AC_MSG_RESULT([not tested in cross-compiling])])
CPPFLAGS=$OLD_CPPFLAGS
CFLAGS=$OLD_CFLAGS
LIBS=$OLD_LIBS
+else
+ AC_MSG_RESULT([test disabled])
+fi
#######################################################################
# Check for OGG support in SDL_mixer #
#######################################################################