2013-05-31 16:40:56 +02:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
2005-12-29 07:26:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= glest
|
2009-04-27 02:17:10 +02:00
|
|
|
PORTVERSION= 3.2.2
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 9
|
2005-12-29 07:26:25 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20source/${PORTVERSION}
|
2009-02-15 01:16:15 +01:00
|
|
|
DISTNAME= ${PORTNAME}_source_${PORTVERSION}
|
2006-05-12 12:11:40 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2014-07-23 18:44:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Free 3D real-time customizable strategy game
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2014-02-24 15:32:27 +01:00
|
|
|
LIB_DEPENDS= libxerces-c.so:${PORTSDIR}/textproc/xerces-c3 \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis
|
2005-12-29 07:26:25 +01:00
|
|
|
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
|
2009-02-15 01:16:15 +01:00
|
|
|
RUN_DEPENDS= ${DATADIR}/servers.ini:${PORTSDIR}/games/glest-data
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2014-06-06 17:26:41 +02:00
|
|
|
USES= dos2unix openal:al,alut pkgconfig zip lua:51
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= automake:env autoconf:env
|
2005-12-29 07:26:25 +01:00
|
|
|
USE_SDL= yes
|
|
|
|
USE_GL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2009-02-15 01:16:15 +01:00
|
|
|
CONFIGURE_SCRIPT= mk/linux/configure
|
2014-06-11 16:49:59 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2007-09-06 03:29:03 +02:00
|
|
|
SUB_FILES= glest-wrapper pkg-message
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2007-09-06 03:29:03 +02:00
|
|
|
JAM_CMD= ${LOCALBASE}/bin/jam -qa
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2014-08-11 15:34:39 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EDITOR
|
|
|
|
OPTIONS_SUB= yes
|
2013-05-31 16:40:56 +02:00
|
|
|
EDITOR_DESC= Build map editor
|
2008-03-28 01:06:32 +01:00
|
|
|
|
2009-02-15 01:16:15 +01:00
|
|
|
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-01-02 22:51:10 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
2008-03-28 01:06:32 +01:00
|
|
|
USE_WX= 2.6+
|
|
|
|
WX_CONF_ARGS= relative
|
|
|
|
WANT_UNICODE= yes
|
|
|
|
HAVE_EDITOR= true
|
|
|
|
.endif
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2009-02-15 01:16:15 +01:00
|
|
|
pre-extract:
|
|
|
|
@${MKDIR} ${WRKDIR}/${DISTNAME}
|
|
|
|
|
2005-12-29 07:26:25 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \
|
2009-02-15 01:16:15 +01:00
|
|
|
${WRKSRC}/mk/linux/autogen.sh
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' -e \
|
|
|
|
's|PTHREAD_LIBS="-l[$$]flag"|PTHREAD_LIBS="${PTHREAD_LIBS}"|g' -e \
|
|
|
|
's|pthreads library -l[$$]flag|pthreads library ${PTHREAD_LIBS}|g' -e \
|
|
|
|
's|include/lua5.1|include/lua51|g' -e 's|-llua5.1|-llua-5.1|g' \
|
|
|
|
${WRKSRC}/mk/linux/configure.ac ${WRKSRC}/mk/linux/mk/autoconf/*
|
2005-12-29 07:26:25 +01:00
|
|
|
@${FIND} -E ${WRKDIR} -type f -name '*.bak' -o -name '*.orig' | ${XARGS} ${RM}
|
|
|
|
|
|
|
|
pre-configure:
|
2009-02-15 01:16:15 +01:00
|
|
|
@cd ${WRKSRC}/mk/linux && ${SH} autogen.sh && \
|
|
|
|
${REINPLACE_CMD} -e 's|-llua5.1|-llua-5.1|g' -e 's|.lng||g' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT} ${WRKSRC}/mk/linux/glest.ini
|
2005-12-29 07:26:25 +01:00
|
|
|
|
|
|
|
do-build:
|
2007-09-06 03:29:03 +02:00
|
|
|
@cd ${WRKSRC} && ${JAM_CMD}
|
2005-12-29 07:26:25 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-08-11 15:34:39 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt ${STAGEDIR}${DOCSDIR}/code_license.txt
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/glest ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mk/linux/glest.ini ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
2005-12-29 07:26:25 +01:00
|
|
|
|
2014-08-11 15:34:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/glest_editor ${STAGEDIR}${PREFIX}/bin/
|
2008-03-28 01:06:32 +01:00
|
|
|
.endif
|
|
|
|
|
2014-08-11 15:34:39 +02:00
|
|
|
.include <bsd.port.mk>
|