the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: wesnoth-devel
Version: 1.9.3
Revision: 1
Description: Fantasy turn-based strategy game
GCC: 4.0
Source-MD5: dee499b683b8370f3e419c7c7a5a3f9b
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,
libpng3,
freetype219,
libiconv-dev,
libgettext8-dev,
gettext-tools,
pango1-xft2-ft219-dev,
boost1.41.cmake,
fink (>= 0.24.12)
<<
Conflicts: wesnoth, wesnoth-campaign-server, wesnoth-editor, wesnoth-server
Replaces: wesnoth, wesnoth-campaign-server, wesnoth-editor, wesnoth-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,
libpng3-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: 86297e172816dded4b5454e12cff4377
# PatchComments:
# configure(.ac) is missing check for CPP before it is used
# honor disable-sdltest when checking for SDL_image+PNG support
PatchScript: <<
#!/bin/sh -ev
%{default_script}
# properly link against built libraries via direct reference
perl -pi -e 's/-L. -l(wesnoth-core)/lib\1.a/' src/Makefile.am
# properly link against built libraries via direct reference
file=src/Makefile.am
mv $file $file.orig
sed 's/-lana/libana.a/g' $file.orig > $file
# darwin10: msgmerge is screwy, disabling backup avoids permissions issues
file=po/Makefile.in.in
mv $file $file.orig
sed '/^MSGMERGE_UPDATE/s|$| --backup=off|' $file.orig > $file
# x86_64: Carbon API not supported on 64b, conditionally mask out
file=src/clipboard.cpp
mv $file $file.orig
sed '/^#ifdef.*__APPLE__/s|.*|#if defined(__APPLE__) \&\& \!__LP64__|' $file.orig > $file
<<
CompileScript: <<
#!/bin/sh -ev
./autogen.sh
./configure %c -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.
From 1.9.0+, uses internal lua, and does not need to depend on fink's,
accoding to upstream.
fangism@users.sourceforge.net is helping maintain.
<<
License: GPL
Maintainer: Jesse Alama
Homepage: http://www.wesnoth.org/
SplitOff: <<
Package: wesnoth-devel-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-devel-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.9.1/configure.ac.orig 2010-09-15 10:41:59.000000000 -0700
+++ wesnoth-1.9.1/configure.ac 2010-09-16 11:37:58.000000000 -0700
@@ -381,6 +381,7 @@
# Checks for programs. #
#######################################################################
+AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
@@ -770,7 +771,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
OLD_LIBS=$LIBS
@@ -804,6 +805,9 @@
CPPFLAGS=$OLD_CPPFLAGS
CFLAGS=$OLD_CFLAGS
LIBS=$OLD_LIBS
+else
+ AC_MSG_RESULT([test skipped])
+fi
#######################################################################