summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-09-14 14:20:29 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-09-14 14:20:29 +0000
commit001ca32107bb3a682ca5498126b40a73bb905d71 (patch)
tree95c63e6f5e9cc7679cbe40fc2e3b7c51ccb7c032 /games-strategy
parentanother fix for #191090 (diff)
downloadgentoo-2-001ca32107bb3a682ca5498126b40a73bb905d71.tar.gz
gentoo-2-001ca32107bb3a682ca5498126b40a73bb905d71.tar.bz2
gentoo-2-001ca32107bb3a682ca5498126b40a73bb905d71.zip
Version bump by Juan Aguado, bug #192244
(Portage version: 2.1.3.9)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/widelands/ChangeLog8
-rw-r--r--games-strategy/widelands/files/digest-widelands-0.0.113
-rw-r--r--games-strategy/widelands/files/widelands-0.0.11-build.patch60
-rw-r--r--games-strategy/widelands/widelands-0.0.11.ebuild73
4 files changed, 143 insertions, 1 deletions
diff --git a/games-strategy/widelands/ChangeLog b/games-strategy/widelands/ChangeLog
index 30e4b9f36823..3ad0a094eab4 100644
--- a/games-strategy/widelands/ChangeLog
+++ b/games-strategy/widelands/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/widelands
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.11 2007/03/21 20:56:02 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.12 2007/09/14 14:20:29 nyhm Exp $
+
+*widelands-0.0.11 (14 Sep 2007)
+
+ 14 Sep 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/widelands-0.0.11-build.patch, +widelands-0.0.11.ebuild:
+ Version bump by Juan Aguado, bug #192244
*widelands-0.0.10 (21 Mar 2007)
diff --git a/games-strategy/widelands/files/digest-widelands-0.0.11 b/games-strategy/widelands/files/digest-widelands-0.0.11
new file mode 100644
index 000000000000..5c82adf4588c
--- /dev/null
+++ b/games-strategy/widelands/files/digest-widelands-0.0.11
@@ -0,0 +1,3 @@
+MD5 ad41d917f7895b6212009ac584178b55 widelands-build-11-source.tar.bz2 35011678
+RMD160 0aa009e91ee661b7e7bf04f82c4a136bb1e651e0 widelands-build-11-source.tar.bz2 35011678
+SHA256 102a305703070eb20af23f3015c8e1dfc9f87d7f719d71e07fcdbf84e85de0d3 widelands-build-11-source.tar.bz2 35011678
diff --git a/games-strategy/widelands/files/widelands-0.0.11-build.patch b/games-strategy/widelands/files/widelands-0.0.11-build.patch
new file mode 100644
index 000000000000..64f4691b2bc7
--- /dev/null
+++ b/games-strategy/widelands/files/widelands-0.0.11-build.patch
@@ -0,0 +1,60 @@
+--- Makefile
++++ Makefile
+@@ -26,7 +26,7 @@
+
+ #most current glibc systems implicitly contain libintl.so
+ ifndef IMPLICIT_LIBINTL
+-IMPLICIT_LIBINTL:=NO
++IMPLICIT_LIBINTL:=YES
+ endif
+
+ # Is this a cross compile?
+@@ -64,7 +64,7 @@
+ # profile optimized, debugging symbols, profiling
+ #
+ ifndef BUILD
+-BUILD:=debug
++BUILD:=release
+ endif
+
+ endif
+@@ -108,11 +108,9 @@
+ BUILD:=$(strip $(BUILD))
+
+ ifeq ($(BUILD),release)
+-OPTIMIZE:=yes
+ # heavy optimization
+ #ADD_CFLAGS:=$(ADD_CFLAGS) -fomit-frame-pointer -finline-functions -ffast-math -funroll-loops -funroll-all-loops -fexpensive-optimizations
+ # !!!! -fomit-frame-pointer breaks execeptions !!!!
+-ADD_CFLAGS:=$(ADD_CFLAGS) -finline-functions -ffast-math -funroll-loops -funroll-all-loops -fexpensive-optimizations
+ else
+ ifeq ($(BUILD),profile)
+ OPTIMIZE:=yes
+@@ -151,9 +149,8 @@
+ # Object files and directories, final compilation flags
+
+ OBJECT_DIR:=src/$(TARGET)-$(BUILD)
+-CFLAGS:=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS)
+-CXXFLAGS:=$(CFLAGS)
+-LDFLAGS:=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net -lSDL_gfx
++CXXFLAGS+=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS)
++LDFLAGS+=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net -lSDL_gfx
+
+ ##############################################################################
+ # Building
+@@ -208,13 +205,13 @@
+
+ $(OBJECT_DIR)/widelands: $(OBJ)
+ @echo "===> LD $@"
+- $(Q)$(CXX) $(OBJ) -o $@ $(LDFLAGS) $(CFLAGS)
++ $(CXX) $(OBJ) -o $@ $(LDFLAGS) $(CXXFLAGS)
+
+ -include $(DEP)
+
+ $(OBJECT_DIR)/%.o: src/%.cc src/build_id.h src/config.h
+ @echo "===> CXX $<"
+- $(Q)$(CXX) -pipe $(CXXFLAGS) -MMD -MP -MF $@.d -c -o $@ $<
++ $(CXX) $(CXXFLAGS) -MMD -MP -MF $@.d -c -o $@ $<
+ $(Q)sed -e 's@^\(.*\)\.o:@\1.d \1.o:@' $@.d > $(OBJECT_DIR)/$*.d
+ $(Q)rm $@.d
+
diff --git a/games-strategy/widelands/widelands-0.0.11.ebuild b/games-strategy/widelands/widelands-0.0.11.ebuild
new file mode 100644
index 000000000000..128ae683973b
--- /dev/null
+++ b/games-strategy/widelands/widelands-0.0.11.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.11.ebuild,v 1.1 2007/09/14 14:20:29 nyhm Exp $
+
+inherit eutils flag-o-matic toolchain-funcs versionator games
+
+MY_PV=$(get_version_component_range 3)
+DESCRIPTION="A game similar to Settlers 2"
+HOMEPAGE="http://www.widelands.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-build-${MY_PV}-source.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ media-libs/sdl-gfx
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -f $(find -name SConscript)
+
+ epatch "${FILESDIR}"/${P}-build.patch
+
+ sed -i 's:__ppc__:__PPC__:' src/s2map.cc \
+ || die "sed s2map.cc failed"
+ sed -i "s:/usr/share/games:${GAMES_DATADIR}:" src/wlapplication.cc \
+ || die "sed wlapplication.cc failed"
+ sed -i "s:/l/WiLa/Setup:${GAMES_DATADIR}/${PN}:" src/config.h.default \
+ || die "sed config.h.default failed"
+}
+
+src_compile() {
+ filter-flags -fomit-frame-pointer
+ emake CXX=$(tc-getCXX) || die "emake failed"
+
+ if use nls ; then
+ utils/buildlocale.py || die "buildlocale.py failed"
+ fi
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r campaigns fonts maps music pics sound tribes txts worlds \
+ || die "doins failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}/locale
+ local d
+ for d in locale/* ; do
+ if [[ -d ${d} ]] ; then
+ doins -r ${d} || die "doins ${d} failed"
+ fi
+ done
+
+ newicon pics/wl-ico-48.png ${PN}.png
+ make_desktop_entry ${PN} Widelands
+
+ dodoc ChangeLog CREDITS
+ prepgamesdirs
+}