ports/111523: [NEW PORT] games/widelands: Real-time strategy inspired by Settlers II
Bartosz Fabianowski
freebsd at chillt.de
Fri Apr 13 01:10:03 UTC 2007
>Number: 111523
>Category: ports
>Synopsis: [NEW PORT] games/widelands: Real-time strategy inspired by Settlers II
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 13 01:10:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Bartosz Fabianowski
>Release: 6-STABLE
>Organization:
>Environment:
FreeBSD takahe.local 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Mar 28 20:15:11 IST 2007 root at takahe.local:/usr/obj/usr/src/sys/TAKAHE i386
>Description:
New Port: Widelands, a real-time strategy game inspired by BlueByte's Settlers II.
>How-To-Repeat:
N/A
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# widelands
# widelands/Makefile
# widelands/distinfo
# widelands/pkg-descr
#
echo c - widelands
mkdir -p widelands > /dev/null 2>&1
echo x - widelands/Makefile
sed 's/^X//' >widelands/Makefile << 'END-of-widelands/Makefile'
X# Ports collection makefile for: widelands
X# Date created: 8 April 2007
X# Whom: Bartosz Fabianowski <freebsd at chillt.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME= widelands
XDISTVERSION= build10
XCATEGORIES= games
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR= ${PORTNAME}
XDISTNAME= ${PORTNAME}-${DISTVERSION}-source
X
XMAINTAINER= freebsd at chillt.de
XCOMMENT= Realtime strategy game inspired by Settlers II
X
XLIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
X
XWRKSRC= ${WRKDIR}/widelands
XPLIST= ${WRKDIR}/pkg-plist
XUSE_BZIP2= yes
XUSE_PYTHON_BUILD= 2.4+
XUSE_GETTEXT= yes
XUSE_SDL= mixer image net ttf
X
XSCONS_ARGS= CXXFLAGS="${CXXFLAGS}" LINKFLAGS="${LDFLAGS}" \
X CPPPATH=${LOCALBASE}/include LIBPATH=${LOCALBASE}/lib \
X CC="${CC}" CXX="${CXX}" \
X install_prefix=${PREFIX} bindir=bin datadir=share/widelands
X
Xpost-patch:
X @${REINPLACE_CMD} -e 's|options=opts|options=opts, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems())|' \
X ${WRKSRC}/SConstruct
X @${REINPLACE_CMD} -e 's|, True||' ${WRKSRC}/worlds/SConscript
X @${RM} -f ${WRKSRC}/worlds/SConscript.bak
X
Xdo-build:
X @cd ${WRKSRC} && \
X (cd utils && ${TAR} xf scons-local-0.96.1.tar.gz) && \
X ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS}
X
Xpre-install:
X @${RM} -f ${PLIST}
X @${ECHO_CMD} bin/widelands > ${PLIST}
X @for f in COPYING CREDITS ChangeLog README developers editor_readme ; do \
X ${ECHO_CMD} %%DATADIR%%/doc/$$f >> ${PLIST} ; \
X done
X @cd ${WRKSRC} && for d in campaigns maps ; do \
X ${LS} -1d $$d/*.wmf | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} ; \
X done
X @cd ${WRKSRC} && for d in fonts game_server music pics sound tribes worlds ; do \
X ${FIND} $$d -type f \! -name SConscript | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} ; \
X done
X @for d in doc campaigns maps ; do \
X ${ECHO_CMD} "@dirrm %%DATADIR%%/$$d" >> ${PLIST} ; \
X done
X @cd ${WRKSRC} && for d in fonts game_server music pics sound tribes worlds ; do \
X ${FIND} $$d -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} ; \
X done
X @${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
X
Xdo-install:
X @cd ${WRKSRC} && ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS} install
X
X.include <bsd.port.mk>
END-of-widelands/Makefile
echo x - widelands/distinfo
sed 's/^X//' >widelands/distinfo << 'END-of-widelands/distinfo'
XMD5 (widelands-build10-source.tar.bz2) = 9e452baf7b8f22a27b4e371e2150e017
XSHA256 (widelands-build10-source.tar.bz2) = f67508066db1739839945f8c814a71a0e4a43904ff4a7f4e7cd3c269bcda18af
XSIZE (widelands-build10-source.tar.bz2) = 28526726
END-of-widelands/distinfo
echo x - widelands/pkg-descr
sed 's/^X//' >widelands/pkg-descr << 'END-of-widelands/pkg-descr'
XWidelands is an open source real-time strategy game inspired by Bluebyte's
XSettlers II (TM). You are the chieftain of a small tribe. To grow your kingdom,
Xyou must secure resources, construct new buildings, train soldiers and wage
Xwar against your opponents.
X
XThe game is playable and great fun already, but it is also still under heavy
Xdevelopment, so do not be surprised if it crashes on you.
X
XWWW: http://www.widelands.org/
END-of-widelands/pkg-descr
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list