2008-02-10 20:19:24 +01:00
|
|
|
# New ports collection makefile for: spring
|
|
|
|
# Date created: 10 Jan 2008
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= spring
|
2008-10-22 00:28:22 +02:00
|
|
|
PORTVERSION= 0.77b5
|
2008-10-11 15:01:21 +02:00
|
|
|
CATEGORIES= games
|
2008-02-10 20:19:24 +01:00
|
|
|
MASTER_SITES= http://spring.clan-sy.com/dl/ \
|
2009-01-05 17:14:51 +01:00
|
|
|
http://mirror.amdmi3.ru/
|
2008-02-10 20:19:24 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2008-10-11 15:01:21 +02:00
|
|
|
COMMENT= A project aiming to create a new and versatile RTS Engine
|
2008-02-10 20:19:24 +01:00
|
|
|
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
openal.0:${PORTSDIR}/audio/openal \
|
|
|
|
GLEW.1:${PORTSDIR}/graphics/glew \
|
|
|
|
boost_thread.4:${PORTSDIR}/devel/boost \
|
|
|
|
IL.1:${PORTSDIR}/graphics/devil \
|
|
|
|
ogg.5:${PORTSDIR}/audio/libogg \
|
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
|
|
|
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_SDL= sdl
|
2008-10-11 15:01:21 +02:00
|
|
|
USE_GL= gl glu
|
|
|
|
USE_XORG= x11 xcursor
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
# built with < 4.0 will not sync in multiplayer...
|
|
|
|
# ...but it won't build with gcc42 from ports
|
|
|
|
#USE_GCC= 4.2+
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2008-10-11 15:01:21 +02:00
|
|
|
USE_CMAKE= yes
|
|
|
|
CMAKE_ARGS= -DDATADIR:STRING="share/${PORTNAME}" \
|
|
|
|
-DMARCH_FLAG:STRING=
|
2008-02-10 20:19:24 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2008-10-11 15:01:21 +02:00
|
|
|
PORTDOCS= *
|
2008-02-10 20:19:24 +01:00
|
|
|
|
2008-04-25 21:12:10 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-10 20:19:24 +01:00
|
|
|
post-patch:
|
2008-10-11 15:01:21 +02:00
|
|
|
@${REINPLACE_CMD} -E -e '/FIND_PACKAGE.*(Python|JNI)/ d' \
|
|
|
|
${WRKSRC}/tools/unitsync/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e 's|x1F3F|x0F3F|g' \
|
|
|
|
${WRKSRC}/rts/System/FPUCheck.h
|
2008-02-10 20:19:24 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-10-11 15:01:21 +02:00
|
|
|
cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${DOCSDIR}
|
2008-02-10 20:19:24 +01:00
|
|
|
.endif
|
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
|
2008-04-25 21:12:10 +02:00
|
|
|
.include <bsd.port.post.mk>
|