3024f52ace
- Take maintainership - Use SF macro - Improve plist generation PR: 128743 Submitted by: myself Approved by: Bartosz Fabianowski <freebsd at chillt dot de> (maintainer)
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# Ports collection makefile for: widelands
|
|
# Date created: 8 April 2007
|
|
# Whom: Bartosz Fabianowski <freebsd@chillt.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= widelands
|
|
DISTVERSION= build13rc
|
|
CATEGORIES= games
|
|
MASTER_SITES= SFE
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION:C/^b/B/}-src
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Realtime strategy game inspired by Settlers II
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
boost_thread.4:${PORTSDIR}/devel/boost
|
|
|
|
USE_BZIP2= yes
|
|
USE_PYTHON_BUILD= 2.4+
|
|
USE_GETTEXT= yes
|
|
USE_SDL= sdl mixer image net ttf gfx
|
|
USE_GCC= 4.2+
|
|
|
|
PLIST_FILES= bin/widelands
|
|
|
|
WRKSRC= ${WRKDIR}/widelands
|
|
|
|
SCONS_ARGS= CXXFLAGS="${CXXFLAGS}" LINKFLAGS="${LDFLAGS}" \
|
|
CPPPATH=${LOCALBASE}/include LIBPATH=${LOCALBASE}/lib \
|
|
CC="${CC}" CXX="${CXX}" \
|
|
install_prefix=${PREFIX} bindir=bin datadir=share/widelands \
|
|
localedir=share/widelands/locale build=release
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC}/utils && ${TAR} xf scons-local-1.0.1.tar.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/prefer_localdata/ s|True|False|' \
|
|
${WRKSRC}/worlds/SConscript
|
|
@${REINPLACE_CMD} -e '/ifndef/ s|__APPLE__|__FreeBSD__|' \
|
|
${WRKSRC}/src/backtrace.cc
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
|
|
${WRKSRC}/utils/buildlocale.py
|
|
@${REINPLACE_CMD} -e 's|revstring=.*|return "${DISTVERSION}-FreeBSD"|' \
|
|
${WRKSRC}/build/scons-tools/detect_revision.py
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} utils/scons.py ${SCONS_ARGS} install
|
|
|
|
post-install:
|
|
@${FIND} ${DATADIR} -type f | \
|
|
${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
|
|
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
|
${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|