2013-03-02 15:26:20 +01:00
|
|
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
2005-10-17 12:55:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2007-04-09 19:40:40 +02:00
|
|
|
PORTNAME= boswars
|
2011-11-12 18:17:55 +01:00
|
|
|
PORTVERSION= 2.6.1
|
2015-08-31 19:20:51 +02:00
|
|
|
PORTREVISION= 8
|
2005-10-17 12:55:32 +02:00
|
|
|
CATEGORIES= games
|
2011-08-02 15:49:10 +02:00
|
|
|
MASTER_SITES= http://www.boswars.org/dist/releases/
|
2007-04-09 19:40:40 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
2005-10-17 12:55:32 +02:00
|
|
|
|
2011-11-12 18:17:55 +01:00
|
|
|
MAINTAINER= martin@arp242.net
|
2013-03-02 15:26:20 +01:00
|
|
|
COMMENT= Futuristic real-time strategy game
|
2005-10-17 12:55:32 +02:00
|
|
|
|
2011-11-12 18:17:55 +01:00
|
|
|
LICENSE= GPLv2
|
2015-08-31 19:20:51 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
2011-11-12 18:17:55 +01:00
|
|
|
|
2014-12-25 20:04:25 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
2014-05-27 15:41:11 +02:00
|
|
|
libtheora.so:${PORTSDIR}/multimedia/libtheora \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2005-10-17 12:55:32 +02:00
|
|
|
|
2015-08-31 19:20:51 +02:00
|
|
|
USES= lua:51 scons shebangfix
|
|
|
|
SHEBANG_FILES= languages/updatepo.sh
|
2007-04-09 19:40:40 +02:00
|
|
|
USE_SDL= sdl
|
2011-11-12 18:17:55 +01:00
|
|
|
USE_GL= yes
|
2014-05-27 15:41:11 +02:00
|
|
|
MAKE_ARGS+= opengl=1
|
2007-04-09 19:40:40 +02:00
|
|
|
CPPPATH= ${LOCALBASE}/include ${LUA_INCDIR}
|
|
|
|
LIBPATH= ${LOCALBASE}/lib ${LUA_LIBDIR}
|
|
|
|
CFLAGS+= -DSTRATAGUS_LIB_PATH='"\"${DATADIR}\""'
|
2005-10-17 12:55:32 +02:00
|
|
|
|
2013-03-02 15:26:20 +01:00
|
|
|
DESKTOP_ENTRIES= "Bos Wars" "${COMMENT}" "" \
|
|
|
|
"boswars" "Game;StrategyGame;" false
|
|
|
|
|
2013-06-10 16:58:30 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2014-02-21 14:36:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2008-04-21 20:31:48 +02:00
|
|
|
post-patch:
|
2011-11-12 18:17:55 +01:00
|
|
|
@${REINPLACE_CMD} -e '\
|
|
|
|
s|/usr/local|${LOCALBASE}|g; \
|
|
|
|
s|lua51|lua-${LUA_VER}|g;' \
|
|
|
|
${WRKSRC}/SConstruct
|
2008-04-21 20:31:48 +02:00
|
|
|
|
2005-10-17 12:55:32 +02:00
|
|
|
do-install:
|
2014-05-27 15:41:11 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2011-11-12 18:17:55 +01:00
|
|
|
.for f in campaigns graphics intro languages maps patches scripts sounds units
|
2014-05-27 15:41:11 +02:00
|
|
|
${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
|
2007-04-09 19:40:40 +02:00
|
|
|
.endfor
|
2014-05-27 15:41:11 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
${COPYTREE_SHARE} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
2005-10-17 12:55:32 +02:00
|
|
|
|
2011-11-12 18:17:55 +01:00
|
|
|
.include <bsd.port.mk>
|