# Created by: Sven Moeller # $FreeBSD$ PORTNAME= megaglest PORTVERSION= 3.9.0.4 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_3.9.0/ DISTNAME= ${PORTNAME}-source-${PORTVERSION} MAINTAINER= rnejdl@ringofsaturn.com COMMENT= Open source 3D real-time strategy game LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \ libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng15.so:${PORTSDIR}/graphics/png \ libxerces-c.so:${PORTSDIR}/textproc/xerces-c2 \ libftgl.so:${PORTSDIR}/graphics/ftgl \ libvorbis.so:${PORTSDIR}/audio/libvorbis BUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:${PORTSDIR}/irc/libircclient \ ${LOCALBASE}/include/miniupnpc/miniupnpc.h:${PORTSDIR}/net/miniupnpc RUN_DEPENDS= ${DATADIR}/tutorials/2_basic_tutorial/2_basic_tutorial.xml:${PORTSDIR}/games/megaglest-data SUB_FILES= pkg-message USE_XZ= yes USES= cmake dos2unix openal:al,alut pkgconfig USE_GL= glew gl glu USE_LUA= 5.1 USE_SDL= yes USE_WX= 2.8+ CFLAGS+= -I${LOCALBASE}/include/libpng15 WRKSRC= ${WRKDIR}/${PORTNAME}-3.9.0 OPTIONS_DEFINE= EDITOR OPTIONS_SUB= yes EDITOR_DESC= Install MegaGlest Editor .include do-install: ${STRIP_CMD} ${WRKSRC}/source/glest_game/megaglest @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/source/glest_game/megaglest ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .for f in glest.ini glestkeys.ini servers.ini ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} .endfor .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} . for f in AUTHORS.source_code.txt CHANGELOG.txt README.txt COPYRIGHT.source_code.txt ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} . endfor .endif .if ${PORT_OPTIONS:MEDITOR} ${INSTALL_PROGRAM} ${WRKSRC}/source/glest_map_editor/megaglest_editor ${STAGEDIR}${PREFIX}/bin/megaglest_editor .endif .include .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile on ia64, powerpc, or sparc64: unrecognized compiler flags .endif .include