From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 28 04:10:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E694106567E for ; Mon, 28 Feb 2011 04:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 346F98FC17 for ; Mon, 28 Feb 2011 04:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1S4ACH8023123 for ; Mon, 28 Feb 2011 04:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1S4ACrn023122; Mon, 28 Feb 2011 04:10:12 GMT (envelope-from gnats) Resent-Date: Mon, 28 Feb 2011 04:10:12 GMT Resent-Message-Id: <201102280410.p1S4ACrn023122@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rusty Nejdl Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DE681065674 for ; Mon, 28 Feb 2011 04:00:52 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5968FC18 for ; Mon, 28 Feb 2011 04:00:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1S40qYu015113 for ; Mon, 28 Feb 2011 04:00:52 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1S40qSO015107; Mon, 28 Feb 2011 04:00:52 GMT (envelope-from gnats) Message-Id: <201102280400.p1S40qSO015107@freefall.freebsd.org> Date: Mon, 28 Feb 2011 04:00:52 GMT From: Rusty Nejdl To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/155111: Create new megaglest port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rusty Nejdl List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2011 04:10:12 -0000 >Number: 155111 >Category: ports >Synopsis: Create new megaglest port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Feb 28 04:10:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Rusty Nejdl >Release: FreeBSD 8.2-STABLE amd64 >Organization: none >Environment: System: FreeBSD tethys.ringofsaturn.com 8.2-STABLE FreeBSD 8.2-STABLE #1: Sun Feb 27 14:44:37 CST 2011 root@tethys.ringofsaturn.com:/usr/obj/usr/src/sys/SATURN amd64 >Description: Create new megaglest and megaglest-data port. >How-To-Repeat: see attached code from Sven Moller. >Fix: --- megaglest.shar begins here --- # 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# ~/.megaglest, and create symlinks to the data files. X Xif [ -d ~/.megaglest ] Xthen X echo "Using existing ~/.megaglest directory." Xelse X echo "Creating ~/.megaglest directory." X cd %%DATADIR%% || exit 1 X find * -type d -exec mkdir -p ~/.megaglest/{} \; X find * -type f -exec ln -s %%DATADIR%%/{} ~/.megaglest/{} \; 2>/dev/null X mkdir -p ~/.megaglest/screens X mkdir -p ~/.megaglest/shaders/standard X touch ~/.megaglest/megaglest.log X rm ~/.megaglest/glest.ini ~/.megaglest/megaglest ~/.megaglest/servers.ini X cp -f %%DATADIR%%/glest.ini ~/.megaglest/ X cp -f %%DATADIR%%/glestkeys.ini ~/.megaglest/ X cp -f %%DATADIR%%/servers.ini ~/.megaglest/ X chmod 640 ~/.megaglest/glest.ini ~/.megaglest/servers.ini Xfi X Xcd ~/.megaglest || 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 was installed X X1) You can see the megaglest configuration files into your ~/.megaglest directory X X2) If you choose install megaglest map editor, you can run it using : X X # glest_editor X X3) If you have problems to run megaglest, please 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} XDIST_SUBDIR= ${PORTNAME} XSUB_FILES= glest-wrapper pkg-message XSUB_DIRS= mk/linux X XMAINTAINER= smoeller@nichthelfer.de XCOMMENT= OpenSource 3d real-time customizable strategy game X XLIB_DEPENDS= xerces-c.27:${PORTSDIR}/textproc/xerces-c2 \ X vorbis.4:${PORTSDIR}/audio/libvorbis XBUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake XRUN_DEPENDS= ${DATADIR}/tutorials/basic_tutorial/basic_tutorial.xml:${PORTSDIR}/games/megaglest-data X XPLIST= ${PORTSDIR}/games/${DIST_SUBDIR}/pkg-plist X XUSE_BZIP2= yes XUSE_OPENAL= al alut XUSE_DOS2UNIX= yes XUSE_LUA= 5.1 XUSE_SDL= yes XUSE_GL= yes X XCMAKE_CMD= ${LOCALBASE}/bin/cmake X X# OPTIONS= EDITOR "Install MegaGlest Editor" off X X.include X Xpre-extract: X @${MKDIR} ${WRKDIR}/${DISTNAME} X Xpre-configure: X @cd ${WRKSRC} && ${CMAKE_CMD} . X Xdo-build: X @cd ${WRKSRC} && make X Xdo-install: X @cd ${WRKSRC} && strip ${WRKSRC}/${SUB_DIRS}/glest.bin X @${MKDIR} ${DATADIR} X @${MKDIR} ${DOCSDIR} X ${INSTALL_PROGRAM} ${WRKSRC}/${SUB_DIRS}/glest.bin ${DATADIR} X ${INSTALL_DATA} ${WRKSRC}/glest.ini ${DATADIR} X ${INSTALL_DATA} ${WRKSRC}/servers.ini ${DATADIR} X ${INSTALL_DATA} ${WRKSRC}/glestkeys.ini ${DATADIR} 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}/${SUB_DIRS}/glest_editor ${PREFIX}/bin/ X #@${ECHO_CMD} "bin/glest_editor" >> ${PLIST} X. endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 22a96243364cc23145ffe096a51871a8 echo x - megaglest/distinfo sed 's/^X//' >megaglest/distinfo << '8d22f86bfa255e10c286691ee713f418' XMD5 (megaglest/megaglest-source-3.4.0.tar.bz2) = 904846c60369f7898c7f83d506624d5a XSHA256 (megaglest/megaglest-source-3.4.0.tar.bz2) = da17c210fb6c3c366bf0e2b44e243740008c3a6ad62f27d631002e46f0210654 XSIZE (megaglest/megaglest-source-3.4.0.tar.bz2) = 899312 8d22f86bfa255e10c286691ee713f418 echo x - megaglest/pkg-descr sed 's/^X//' >megaglest/pkg-descr << 'c7802852462edac5cdbbcd872b1ce15f' XMegaGlest is a fork of Glest. It features: X- more factions X- stable Network code for crossplatfor online gaming X- strong AI XGlest is a project for making a free 3d real-time Xcustomizable strategy game. Current version is fully Xplayable, includes single player game against CPU Xcontrolled players, two factions with their Xcorresponding tech trees, units, buildings and some Xmaps. X XWWW: http://megaglest.org/ c7802852462edac5cdbbcd872b1ce15f echo x - megaglest/pkg-plist sed 's/^X//' >megaglest/pkg-plist << '085de6f891c513877aab8b9a0d6e2726' Xbin/megaglest X%%DATADIR%%/glest.bin X%%DATADIR%%/glest.ini X%%DATADIR%%/glestkeys.ini X%%DATADIR%%/servers.ini X%%PORTDOCS%%@dirrmtry %%DOCSDIR%% X@dirrmtry %%DATADIR%% 085de6f891c513877aab8b9a0d6e2726 exit --- megaglest.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: