diff options
author | Beat Gaetzi <beat@FreeBSD.org> | 2011-04-07 05:17:21 +0000 |
---|---|---|
committer | Beat Gaetzi <beat@FreeBSD.org> | 2011-04-07 05:17:21 +0000 |
commit | e0351a9ef90cc2371b2f83bfaef56c635c462691 (patch) | |
tree | 8388f0a31f65bf79b5b920e278e10f6517baa168 /games | |
parent | 6f46e9afc4db030bb80af2c37eb757747e62294f (diff) | |
download | ports-e0351a9ef90cc2371b2f83bfaef56c635c462691.tar.gz ports-e0351a9ef90cc2371b2f83bfaef56c635c462691.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/megaglest/Makefile | 66 | ||||
-rw-r--r-- | games/megaglest/distinfo | 2 | ||||
-rw-r--r-- | games/megaglest/files/glest-wrapper.in | 27 | ||||
-rw-r--r-- | games/megaglest/files/patch-CMakeLists.txt | 23 | ||||
-rw-r--r-- | games/megaglest/files/pkg-message.in | 16 | ||||
-rw-r--r-- | games/megaglest/pkg-descr | 8 | ||||
-rw-r--r-- | games/megaglest/pkg-plist | 9 |
8 files changed, 152 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index d445f43c66ba..14e274c95215 100644 --- a/games/Makefile +++ b/games/Makefile @@ -530,6 +530,7 @@ SUBDIR += marsnomercy SUBDIR += masterserver SUBDIR += maxr + SUBDIR += megaglest SUBDIR += megaglest-data SUBDIR += memonix SUBDIR += meqcc diff --git a/games/megaglest/Makefile b/games/megaglest/Makefile new file mode 100644 index 000000000000..55d17d251355 --- /dev/null +++ b/games/megaglest/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: megaglest +# Date created: 2011-02-10 +# Whom: Sven Moeller <smoeller@nichthelfer.de> +# +# $FreeBSD$ +# + +PORTNAME= megaglest +PORTVERSION= 3.4.0 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME}/current_release/ +DISTNAME= ${PORTNAME}-source-${PORTVERSION} + +MAINTAINER= smoeller@nichthelfer.de +COMMENT= Open source 3D real-time strategy game + +LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ + jpeg.11:${PORTSDIR}/graphics/jpeg \ + png.6:${PORTSDIR}/graphics/png \ + xerces-c.27:${PORTSDIR}/textproc/xerces-c2 \ + vorbis.4:${PORTSDIR}/audio/libvorbis +RUN_DEPENDS= ${DATADIR}/tutorials/basic_tutorial/basic_tutorial.xml:${PORTSDIR}/games/megaglest-data + +SUB_FILES= glest-wrapper pkg-message + +USE_BZIP2= yes +USE_CMAKE= yes +USE_DOS2UNIX= yes +USE_GL= yes +USE_LUA= 5.1 +USE_OPENAL= al alut +USE_SDL= yes +USE_WX= 2.8+ + +OPTIONS= EDITOR "Install MegaGlest Editor" off + +.include <bsd.port.options.mk> + +.if defined(WITH_EDITOR) +PLIST_SUB+= EDITOR="" +.else +PLIST_SUB+= EDITOR="@comment " +.endif + +do-install: + ${STRIP_CMD} ${WRKSRC}/mk/linux/glest.bin + @${MKDIR} ${DATADIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.endif + ${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/glest.bin ${DATADIR} +.for f in glest.ini glestkeys.ini servers.ini + ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR} +.endfor + ${INSTALL_SCRIPT} ${WRKDIR}/glest-wrapper ${PREFIX}/bin/${PORTNAME} +.if !defined(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/code_license.txt ${DOCSDIR} +.endif +.if defined(WITH_EDITOR) + ${INSTALL_PROGRAM} ${WRKSRC}/mk/linux/glest_editor ${PREFIX}/bin/ +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/games/megaglest/distinfo b/games/megaglest/distinfo new file mode 100644 index 000000000000..921542cc3ad0 --- /dev/null +++ b/games/megaglest/distinfo @@ -0,0 +1,2 @@ +SHA256 (megaglest-source-3.4.0.tar.bz2) = da17c210fb6c3c366bf0e2b44e243740008c3a6ad62f27d631002e46f0210654 +SIZE (megaglest-source-3.4.0.tar.bz2) = 899312 diff --git a/games/megaglest/files/glest-wrapper.in b/games/megaglest/files/glest-wrapper.in new file mode 100644 index 000000000000..3b589277a91b --- /dev/null +++ b/games/megaglest/files/glest-wrapper.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# The executable needs to be run from its data directory, and needs to store +# configuration in it. We therefore mirror the data directory hierarchy in +# ~/.megaglest3.4.0, and create symlinks to the data files. + +if [ -d ~/.megaglest3.4.0 ] +then + echo "Using existing ~/.megaglest3.4.0 directory." +else + echo "Creating ~/.megaglest3.4.0 directory." + cd %%DATADIR%% || exit 1 + find * -type d -exec mkdir -p ~/.megaglest3.4.0/{} \; + find * -type f -exec ln -s %%DATADIR%%/{} ~/.megaglest3.4.0/{} \; 2>/dev/null + mkdir -p ~/.megaglest3.4.0/screens + mkdir -p ~/.megaglest3.4.0/shaders/standard + touch ~/.megaglest3.4.0/megaglest.log + rm ~/.megaglest3.4.0/glest.ini ~/.megaglest3.4.0/megaglest ~/.megaglest3.4.0/servers.ini + cp -f %%DATADIR%%/glest.ini ~/.megaglest3.4.0/ + cp -f %%DATADIR%%/glestkeys.ini ~/.megaglest3.4.0/ + cp -f %%DATADIR%%/servers.ini ~/.megaglest3.4.0/ + chmod 640 ~/.megaglest3.4.0/glest.ini ~/.megaglest3.4.0/servers.ini +fi + +cd ~/.megaglest3.4.0 || exit 1 +echo "Please be patient while loading MegaGlest..." +exec %%DATADIR%%/glest.bin "$@" diff --git a/games/megaglest/files/patch-CMakeLists.txt b/games/megaglest/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..1eff5478cda5 --- /dev/null +++ b/games/megaglest/files/patch-CMakeLists.txt @@ -0,0 +1,23 @@ +*** CMakeLists.txt 2011-02-10 17:41:19.000000000 +0100 +--- CMakeLists.txt_FreeBSD 2011-02-10 17:41:56.000000000 +0100 +*************** IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) +*** 59,76 **** +- OPTION(WANT_SVN_STAMP "use svn stamp" ON) +- IF(WANT_SVN_STAMP) +- # The stuff below gets SVN Global Revision # but ONLY when calling cmake! +- # the FindSubversion.cmake module is part of the standard distribution +- include(FindSubversion) +- # extract working copy information for SOURCE_DIR into MY_XXX variables +- Subversion_WC_INFO(${PROJECT_SOURCE_DIR} MG) +- #add_definitions(-DSVNVERSION="${MG_WC_REVISION}") +- ENDIF() +- +- SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"${MG_WC_REVISION}\\\"'") +- +- IF(UNIX AND NOT APPLE) +- # We do some funky character escaping to get the right stuff written out to +- # the final Makefile so we get the SVN Global Revsion # +- SET(SVN_VERSION_CMD "-DSVNVERSION='\\\"`svnversion -n ${PROJECT_SOURCE_DIR}`\\\"'") +- ENDIF() +- +--- 58 ---- diff --git a/games/megaglest/files/pkg-message.in b/games/megaglest/files/pkg-message.in new file mode 100644 index 000000000000..7593a0bef4b4 --- /dev/null +++ b/games/megaglest/files/pkg-message.in @@ -0,0 +1,16 @@ +############################################################################### + +The megaglest game has been installed: + +1) You will find the megaglest configuration files in ~/.megaglest + +2) If you instlled the megaglest map editor you could lounch it like this: + + # glest_editor + +3) If you have problems running megaglest, you should remove your ~/.megaglest + directory and try again + +4) Enjoy it ;) + +############################################################################### diff --git a/games/megaglest/pkg-descr b/games/megaglest/pkg-descr new file mode 100644 index 000000000000..e403d4ba1e14 --- /dev/null +++ b/games/megaglest/pkg-descr @@ -0,0 +1,8 @@ +MegaGlest is an open source 3D-real-time strategy game, where you control +the armies of one of seven different factions: Tech, Magic, Egyptians, +Indians, Norsemen, Persian or Romans (Beta). The game is setup in one of +14 naturally looking settings, which -like the unit models- are crafted +with great appreciation for detail. MegaGlest is heavily based on the +widely known Glest, which it forked from in early 2010. + +WWW: http://megaglest.org/ diff --git a/games/megaglest/pkg-plist b/games/megaglest/pkg-plist new file mode 100644 index 000000000000..6bad84648646 --- /dev/null +++ b/games/megaglest/pkg-plist @@ -0,0 +1,9 @@ +%%EDITOR%%bin/glest_editor +bin/megaglest +%%DATADIR%%/glest.bin +%%DATADIR%%/glest.ini +%%DATADIR%%/glestkeys.ini +%%DATADIR%%/servers.ini +%%PORTDOCS%%%%DOCSDIR%%/code_license.txt +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrmtry %%DATADIR%% |