import widelands
Widelands is an economic and military simulation game. The map is shown in parallel perspective with 3-dimensional terrain. Buildings and units are animated. The player controls a tribe. Land is claimed and held by military presence and then used to build an economy to support military expansion and confrontation. The project is a work in progress where much remains to be done; computer players and multiplayer are in very early stages of development. Some features that have already been implemented are exploration, fog of war, sound effects, background music, adjustable simulation speed, a few tutorial campaigns, translations to several languages, and a map editor. feedback & ok jasper@
This commit is contained in:
parent
d1c25494d6
commit
283a67980c
62
games/widelands/Makefile
Normal file
62
games/widelands/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/01 21:37:28 simon Exp $
|
||||
|
||||
COMMENT= economic and military simulation game
|
||||
|
||||
DISTNAME= widelands-build-11-source
|
||||
PKGNAME= widelands-0.11
|
||||
CATEGORIES= games
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
HOMEPAGE= http://widelands.org/
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=widelands/}
|
||||
|
||||
MAINTAINER= Simon Bertrang <simon@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
WANTLIB= X11 Xext SDL c m png pthread stdc++ usbhid z
|
||||
|
||||
LIB_DEPENDS= SDL_gfx::devel/sdl-gfx \
|
||||
SDL_image::devel/sdl-image \
|
||||
SDL_mixer::devel/sdl-mixer \
|
||||
SDL_net::devel/sdl-net \
|
||||
SDL_ttf::devel/sdl-ttf
|
||||
|
||||
BUILD_DEPENDS= ::devel/scons
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
WRKDIST= ${WRKDIR}/widelands
|
||||
|
||||
USE_X11= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-configure:
|
||||
perl -pi -e 's,^#!/usr/bin/python,#!${LOCALBASE}/bin/python2.4,' \
|
||||
${WRKSRC}/utils/buildlocale.py
|
||||
|
||||
do-build:
|
||||
@${SETENV} ${MAKE_ENV} scons -C ${WRKSRC} \
|
||||
install_prefix=${PREFIX} \
|
||||
bindir=${PREFIX}/bin \
|
||||
datadir=${PREFIX}/share/widelands \
|
||||
localedir=${PREFIX}/share/widelands \
|
||||
extra_compile_flags="-I${LOCALBASE}/include/libpng ${CXXFLAGS}" \
|
||||
extra_include_path=${LOCALBASE}/include \
|
||||
extra_lib_path="${LOCALBASE}/lib"
|
||||
|
||||
do-install:
|
||||
@${SETENV} ${FAKE_ENV} scons -C ${WRKSRC} install \
|
||||
install_prefix=${PREFIX} \
|
||||
bindir=${PREFIX}/bin \
|
||||
datadir=${PREFIX}/share/widelands \
|
||||
localedir=${PREFIX}/share/widelands \
|
||||
extra_compile_flags="-I${LOCALBASE}/include/libpng ${CXXFLAGS}" \
|
||||
extra_include_path=${LOCALBASE}/include \
|
||||
extra_lib_path="${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
5
games/widelands/distinfo
Normal file
5
games/widelands/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (widelands-build-11-source.tar.bz2) = rUHZF/eJW2ISAJrFhBeLVQ==
|
||||
RMD160 (widelands-build-11-source.tar.bz2) = CqAJ6R7mYbfnvwT4LEoTa7HmUeA=
|
||||
SHA1 (widelands-build-11-source.tar.bz2) = u2xzD8lWxkUfUld2STef6kXvOfU=
|
||||
SHA256 (widelands-build-11-source.tar.bz2) = ECowVwMHDrIK8j8wFcjh38n4fX9xnXHgf82/hOhd4NM=
|
||||
SIZE (widelands-build-11-source.tar.bz2) = 35011678
|
@ -0,0 +1,51 @@
|
||||
$OpenBSD: patch-build_scons-tools_scons_configure_py,v 1.1.1.1 2007/10/01 21:37:28 simon Exp $
|
||||
--- build/scons-tools/scons_configure.py.orig Sat Sep 8 00:53:34 2007
|
||||
+++ build/scons-tools/scons_configure.py Sun Sep 23 21:19:12 2007
|
||||
@@ -172,6 +172,8 @@ def do_configure(config_h_file, conf, env):
|
||||
print "Your compiler does not support __attribute__((format(printf, 2, 3))) which is neccessary for widelands. Please get a decent compiler."
|
||||
env.Exit(1)
|
||||
|
||||
+ env.Append(LIBS=['iconv'])
|
||||
+
|
||||
setlocalefound=0
|
||||
if (conf.CheckFunc('setlocale') or conf.CheckLibWithHeader('', 'locale.h', 'C', 'setlocale("LC_ALL", "C");', autoadd=0)):
|
||||
setlocalefound=1
|
||||
@@ -271,23 +273,23 @@ def do_configure(config_h_file, conf, env):
|
||||
conf.CheckCompilerFlag('-Wcast-qual', env)
|
||||
conf.CheckCompilerFlag('-Wconversion', env)
|
||||
conf.CheckCompilerFlag('-Wdisabled-optimization', env)
|
||||
- conf.CheckCompilerFlag('-Wextra', env)
|
||||
+ #conf.CheckCompilerFlag('-Wextra', env)
|
||||
#conf.CheckCompilerFlag('-Wfloat-equal', env)
|
||||
#conf.CheckCompilerFlag('-Wformat=2', env)
|
||||
conf.CheckCompilerFlag('-Winline', env)
|
||||
- conf.CheckCompilerFlag('-Winvalid-pch', env)
|
||||
+ #conf.CheckCompilerFlag('-Winvalid-pch', env)
|
||||
conf.CheckCompilerFlag('-Wmissing-format-attribute', env)
|
||||
- conf.CheckCompilerFlag('-Wmissing-include-dirs', env)
|
||||
+ #conf.CheckCompilerFlag('-Wmissing-include-dirs', env)
|
||||
conf.CheckCompilerFlag('-Wmissing-noreturn', env)
|
||||
conf.CheckCompilerFlag('-Wno-comment', env)
|
||||
- conf.CheckCompilerFlag('-Wnormalized=nfc', env)
|
||||
+ #conf.CheckCompilerFlag('-Wnormalized=nfc', env)
|
||||
#conf.CheckCompilerFlag('-Wold-style-cast', env)
|
||||
#conf.CheckCompilerFlag('-Wpadded', env)
|
||||
conf.CheckCompilerFlag('-Wpointer-arith', env)
|
||||
- conf.CheckCompilerFlag('-Wunsafe-loop-optimizations', env)
|
||||
+ #conf.CheckCompilerFlag('-Wunsafe-loop-optimizations', env)
|
||||
conf.CheckCompilerFlag('-Wshadow', env)
|
||||
conf.CheckCompilerFlag('-Wstack-protector', env)
|
||||
- conf.CheckCompilerFlag('-Wstrict-aliasing=2', env)
|
||||
+ #conf.CheckCompilerFlag('-Wstrict-aliasing=2', env)
|
||||
#conf.CheckCompilerFlag('-Wunreachable-code', env)
|
||||
conf.CheckCompilerFlag('-Wwrite-strings', env)
|
||||
|
||||
@@ -302,7 +304,7 @@ def do_configure(config_h_file, conf, env):
|
||||
conf.CheckCompilerFlag('-finline-functions', env)
|
||||
conf.CheckCompilerFlag('-ffast-math', env)
|
||||
conf.CheckCompilerFlag('-funroll-loops', env)
|
||||
- conf.CheckCompilerFlag('-O3', env)
|
||||
+ #conf.CheckCompilerFlag('-O3', env)
|
||||
else:
|
||||
conf.CheckCompilerFlag('-O0', env)
|
||||
|
11
games/widelands/patches/patch-src_network_system_h
Normal file
11
games/widelands/patches/patch-src_network_system_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_network_system_h,v 1.1.1.1 2007/10/01 21:37:28 simon Exp $
|
||||
--- src/network_system.h.orig Sun Sep 23 19:42:49 2007
|
||||
+++ src/network_system.h Sun Sep 23 19:43:00 2007
|
||||
@@ -25,6 +25,7 @@
|
||||
// These includes work on Linux and should be fine on any other Unix-alike.
|
||||
// If not, this is the right place to conditionally include what is needed.
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/in.h>
|
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_ui_ui_basic_ui_progresswindow_cc,v 1.1.1.1 2007/10/01 21:37:28 simon Exp $
|
||||
--- src/ui/ui_basic/ui_progresswindow.cc.orig Sun Sep 23 19:52:37 2007
|
||||
+++ src/ui/ui_basic/ui_progresswindow.cc Sun Sep 23 19:52:45 2007
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "font_handler.h"
|
||||
#include "i18n.h"
|
||||
+#include <stdarg.h>
|
||||
|
||||
#define PROGRESS_FONT_COLOR_FG RGBColor(128, 128, 255)
|
||||
#define PROGRESS_FONT_COLOR_BG RGBColor(64, 64, 0)
|
10
games/widelands/pkg/DESCR
Normal file
10
games/widelands/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
Widelands is an economic and military simulation game. The map is shown
|
||||
in parallel perspective with 3-dimensional terrain. Buildings and units
|
||||
are animated. The player controls a tribe. Land is claimed and held by
|
||||
military presence and then used to build an economy to support military
|
||||
expansion and confrontation. The project is a work in progress where
|
||||
much remains to be done; computer players and multiplayer are in very
|
||||
early stages of development. Some features that have already been
|
||||
implemented are exploration, fog of war, sound effects, background
|
||||
music, adjustable simulation speed, a few tutorial campaigns,
|
||||
translations to several languages, and a map editor.
|
12986
games/widelands/pkg/PLIST
Normal file
12986
games/widelands/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user