1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/games/freeorion/Makefile
Gerald Pfeifer 784414bea1 Replace USE_GCC=4.3 by USE_GCC=4.3+.
Approved by:	oliver (maintainer)
2009-05-09 17:31:27 +00:00

65 lines
1.9 KiB
Makefile

# New ports collection makefile for: freeorion
# Date created: 2007-04-29
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= freeorion
PORTVERSION= 0.3.12.3007
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= oliver
MAINTAINER= oliver@FreeBSD.org
COMMENT= Open-source, platform independent galactic conquest game
LIB_DEPENDS= GiGi.0:${PORTSDIR}/x11-toolkits/gigi \
alut.1:${PORTSDIR}/audio/freealut \
graph:${PORTSDIR}/graphics/graphviz \
log4cpp.4:${PORTSDIR}/devel/log4cpp \
vorbisfile.5:${PORTSDIR}/audio/libvorbis
RUN_DEPENDS= ${LOCALBASE}/lib/libbulletmath.a:${PORTSDIR}/devel/bullet
BUILD_DEPENDS= ${LOCALBASE}/lib/libbulletmath.a:${PORTSDIR}/devel/bullet
USE_GCC= 4.3+
USE_BZIP2= yes
USE_PYTHON= yes
USE_SCONS= yes
SCONS_ARGS= with_builtin_sdlnet=0
SCONS_BUILDENV= PYTHON_LIB=${PYTHON_VERSION}
USE_SDL= sdl net
WRKSRC= ${WRKDIR}/${PORTNAME}/FreeOrion
.if defined(WITH_DEBUG)
SCONS_ARGS+= debug=1
.else
SCONS_ARGS+= release=yes
.endif
post-patch:
@${REINPLACE_CMD} -e 's|ND_coord_i|ND_coord|g' \
${WRKSRC}/UI/TechTreeWnd.cpp
@${REINPLACE_CMD} -e 's|"ogre_plugins.cfg"|"${DATADIR}/ogre_plugins.cfg"|g' \
${WRKSRC}/client/human/chmain.cpp
@${REINPLACE_CMD} -e 's|"OISInput.cfg"|"${DATADIR}/OISInput.cfg"|g' \
${WRKSRC}/client/human/HumanClientApp.cpp
@${REINPLACE_CMD} -e 's|Plugin=Plugin_CgProgramManager|#&|g; \
s|\(PluginFolder=\)\.|\1${LOCALBASE}/lib/OGRE|g' \
${WRKSRC}/ogre_plugins.cfg
post-install:
${INSTALL_DATA} ${WRKSRC}/ogre_plugins.cfg ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/OISInput.cfg ${DATADIR}
maint-gen-distfile:
@if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
${ECHO_CMD} "ERROR: the distfile already exists."; \
${FALSE}; \
fi
svn export https://${PORTNAME}.svn.sourceforge.net/svnroot/${PORTNAME}/trunk ${PORTNAME}
tar cjf ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}
${RM} -rf ${PORTNAME}
.include <bsd.port.mk>