# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # megaglest # megaglest/files # megaglest/files/glest-wrapper.in # megaglest/files/patch-CMakeLists.txt # megaglest/files/pkg-message.in # megaglest/Makefile # megaglest/distinfo # megaglest/pkg-descr # megaglest/pkg-plist # echo c - megaglest mkdir -p megaglest > /dev/null 2>&1 echo c - megaglest/files mkdir -p megaglest/files > /dev/null 2>&1 echo x - megaglest/files/glest-wrapper.in sed 's/^X//' >megaglest/files/glest-wrapper.in << '5ea987f0fef152801e9f9dc56b8eddd3' X#!/bin/sh X X# The executable needs to be run from its data directory, and needs to store X# configuration in it. We therefore mirror the data directory hierarchy in X# ~/.megaglest3.4.0, and create symlinks to the data files. X Xif [ -d ~/.megaglest3.4.0 ] Xthen X echo "Using existing ~/.megaglest3.4.0 directory." Xelse X echo "Creating ~/.megaglest3.4.0 directory." X cd %%DATADIR%% || exit 1 X find * -type d -exec mkdir -p ~/.megaglest3.4.0/{} \; X find * -type f -exec ln -s %%DATADIR%%/{} ~/.megaglest3.4.0/{} \; 2>/dev/null X mkdir -p ~/.megaglest3.4.0/screens X mkdir -p ~/.megaglest3.4.0/shaders/standard X touch ~/.megaglest3.4.0/megaglest.log X rm ~/.megaglest3.4.0/glest.ini ~/.megaglest3.4.0/megaglest ~/.megaglest3.4.0/servers.ini X cp -f %%DATADIR%%/glest.ini ~/.megaglest3.4.0/ X cp -f %%DATADIR%%/glestkeys.ini ~/.megaglest3.4.0/ X cp -f %%DATADIR%%/servers.ini ~/.megaglest3.4.0/ X chmod 640 ~/.megaglest3.4.0/glest.ini ~/.megaglest3.4.0/servers.ini Xfi X Xcd ~/.megaglest3.4.0 || exit 1 Xecho "Please be patient while loading MegaGlest..." Xexec %%DATADIR%%/glest.bin "$@" 5ea987f0fef152801e9f9dc56b8eddd3 echo x - megaglest/files/patch-CMakeLists.txt sed 's/^X//' >megaglest/files/patch-CMakeLists.txt << '0cf48dcc35be4ea5b764a9c7d6d3f81c' X*** CMakeLists.txt 2011-02-10 17:41:19.000000000 +0100 X--- CMakeLists.txt_FreeBSD 2011-02-10 17:41:56.000000000 +0100 X*************** IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) X*** 59,76 **** X- OPTION(WANT_SVN_STAMP "use svn stamp" ON) X- IF(WANT_SVN_STAMP) X- # The stuff below gets SVN Global Revision # but ONLY when calling cmake! X- # the FindSubversion.cmake module is part of the standard distribution X- include(FindSubversion) X- # extract working copy information for SOURCE_DIR into MY_XXX variables X- Subversion_WC_INFO(${PROJECT_SOURCE_DIR} MG) X- #add_definitions(-DSVNVERSION="${MG_WC_REVISION}") X- ENDIF() X- X- SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"${MG_WC_REVISION}\\\"'") X- X- IF(UNIX AND NOT APPLE) X- # We do some funky character escaping to get the right stuff written out to X- # the final Makefile so we get the SVN Global Revsion # X- SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"`svnversion -n ${PROJECT_SOURCE_DIR}`\\\"'") X- ENDIF() X- X--- 58 ---- 0cf48dcc35be4ea5b764a9c7d6d3f81c echo x - megaglest/files/pkg-message.in sed 's/^X//' >megaglest/files/pkg-message.in << '4bd19d518555d813587371be8ff8d703' X############################################################################### X XThe megaglest game has been installed: X X1) You will find the megaglest configuration files in ~/.megaglest X X2) If you instlled the megaglest map editor you could lounch it like this: X X # glest_editor X X3) If you have problems running megaglest, you should remove your ~/.megaglest X directory and try again X X4) Enjoy it ;) X X############################################################################### 4bd19d518555d813587371be8ff8d703 echo x - megaglest/Makefile sed 's/^X//' >megaglest/Makefile << '22a96243364cc23145ffe096a51871a8' X# New ports collection makefile for: megaglest X# Date created: 2011-02-10 X# Whom: Sven Moeller X# X# $FreeBSD$ X# X XPORTNAME= megaglest XPORTVERSION= 3.4.0 XCATEGORIES= games XMASTER_SITES= SF/${PORTNAME}/current_release/ XDISTNAME= ${PORTNAME}-source-${PORTVERSION} X XMAINTAINER= smoeller@nichthelfer.de XCOMMENT= Open source 3D real-time strategy game X XLIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ X jpeg.11:${PORTSDIR}/graphics/jpeg \ X png.6:${PORTSDIR}/graphics/png \ X xerces-c.27:${PORTSDIR}/textproc/xerces-c2 \ X vorbis.4:${PORTSDIR}/audio/libvorbis XRUN_DEPENDS= ${DATADIR}/tutorials/basic_tutorial/basic_tutorial.xml:${PORTSDIR}/games/megaglest-data X XSUB_FILES= glest-wrapper pkg-message X XUSE_BZIP2= yes XUSE_CMAKE= yes XUSE_DOS2UNIX= yes XUSE_GL= yes XUSE_LUA= 5.1 XUSE_OPENAL= al alut XUSE_SDL= yes XUSE_WX= 2.8+ X XOPTIONS= EDITOR "Install MegaGlest Editor" off X X.include X X.if defined(WITH_EDITOR) XPLIST_SUB+= EDITOR="" X.else XPLIST_SUB+= EDITOR="@comment " X.endif X Xdo-install: X ${STRIP_CMD} ${WRKSRC}/mk/linux/glest.bin X @${MKDIR} ${DATADIR} X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.endif X ${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/glest.bin ${DATADIR} X.for f in glest.ini glestkeys.ini servers.ini X ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR} X.endfor X ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${PREFIX}/bin/${PORTNAME} X.if !defined(NOPORTDOCS) X ${INSTALL_DATA} ${WRKSRC}/code_license.txt ${DOCSDIR} X.endif X.if defined(WITH_EDITOR) X ${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/glest_editor ${PREFIX}/bin/ X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 22a96243364cc23145ffe096a51871a8 echo x - megaglest/distinfo sed 's/^X//' >megaglest/distinfo << '8d22f86bfa255e10c286691ee713f418' XSHA256 (megaglest-source-3.4.0.tar.bz2) = da17c210fb6c3c366bf0e2b44e243740008c3a6ad62f27d631002e46f0210654 XSIZE (megaglest-source-3.4.0.tar.bz2) = 899312 8d22f86bfa255e10c286691ee713f418 echo x - megaglest/pkg-descr sed 's/^X//' >megaglest/pkg-descr << 'c7802852462edac5cdbbcd872b1ce15f' XMegaGlest is an open source 3D-real-time strategy game, where you control Xthe armies of one of seven different factions: Tech, Magic, Egyptians, XIndians, Norsemen, Persian or Romans (Beta). The game is setup in one of X14 naturally looking settings, which -like the unit models- are crafted Xwith great appreciation for detail. MegaGlest is heavily based on the Xwidely known Glest, which it forked from in early 2010. X XWWW: http://megaglest.org/ c7802852462edac5cdbbcd872b1ce15f echo x - megaglest/pkg-plist sed 's/^X//' >megaglest/pkg-plist << '085de6f891c513877aab8b9a0d6e2726' X%%EDITOR%%bin/glest_editor Xbin/megaglest X%%DATADIR%%/glest.bin X%%DATADIR%%/glest.ini X%%DATADIR%%/glestkeys.ini X%%DATADIR%%/servers.ini X%%PORTDOCS%%%%DOCSDIR%%/code_license.txt X%%PORTDOCS%%@dirrmtry %%DOCSDIR%% X@dirrmtry %%DATADIR%% 085de6f891c513877aab8b9a0d6e2726 exit