diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-07-04 05:29:25 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-07-04 05:29:25 +0000 |
commit | 865533f066eebed3f6db0bc3c59d4389250a6a25 (patch) | |
tree | a77a5d1ac7a75bca39219bf91c9d7741d23ca727 /games/wargus | |
parent | 39ca66f798c1a31f7c7b8f952b4d2c980c6c7983 (diff) | |
download | ports-865533f066eebed3f6db0bc3c59d4389250a6a25.tar.gz ports-865533f066eebed3f6db0bc3c59d4389250a6a25.zip |
Notes
Diffstat (limited to 'games/wargus')
-rw-r--r-- | games/wargus/Makefile | 65 | ||||
-rw-r--r-- | games/wargus/distinfo | 2 | ||||
-rw-r--r-- | games/wargus/files/pkg-message.in | 24 | ||||
-rw-r--r-- | games/wargus/files/wargus.in | 66 | ||||
-rw-r--r-- | games/wargus/pkg-descr | 16 | ||||
-rw-r--r-- | games/wargus/pkg-plist | 153 |
6 files changed, 326 insertions, 0 deletions
diff --git a/games/wargus/Makefile b/games/wargus/Makefile new file mode 100644 index 000000000000..24870de74d3c --- /dev/null +++ b/games/wargus/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: wargus +# Date created: 1 Jul 2004 +# Whom: Travis Poppe <tlp@liquidx.org> +# +# $FreeBSD$ +# + +PORTNAME= wargus +PORTVERSION= 2.1 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= tlp@liquidx.org +COMMENT= Warcraft2 Mod that allows you to play Warcraft2 with Stratagus + +BUILD_DEPENDS= ${LOCALBASE}/lib/libpng.a:${PORTSDIR}/graphics/png +RUN_DEPENDS= ${LOCALBASE}/bin/stratagus:${PORTSDIR}/games/stratagus + +USE_GMAKE= yes +USE_REINPLACE= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +do-install: + ${MKDIR} ${PREFIX}/share/wargus + ${MKDIR} ${PREFIX}/share/wargus/campaigns + ${MKDIR} ${PREFIX}/share/wargus/campaigns/human + ${MKDIR} ${PREFIX}/share/wargus/campaigns/human-exp + ${MKDIR} ${PREFIX}/share/wargus/campaigns/orc + ${MKDIR} ${PREFIX}/share/wargus/campaigns/orc-exp + ${MKDIR} ${PREFIX}/share/wargus/contrib + ${MKDIR} ${PREFIX}/share/wargus/maps + ${MKDIR} ${PREFIX}/share/wargus/maps/multi + ${MKDIR} ${PREFIX}/share/wargus/scripts + ${MKDIR} ${PREFIX}/share/wargus/scripts/ai + ${MKDIR} ${PREFIX}/share/wargus/scripts/human + ${MKDIR} ${PREFIX}/share/wargus/scripts/orc + ${MKDIR} ${PREFIX}/share/wargus/scripts/tilesets + ${INSTALL_DATA} ${WRKSRC}/campaigns/human/* ${PREFIX}/share/wargus/campaigns/human + ${INSTALL_DATA} ${WRKSRC}/campaigns/human-exp/* ${PREFIX}/share/wargus/campaigns/human-exp + ${INSTALL_DATA} ${WRKSRC}/campaigns/orc/* ${PREFIX}/share/wargus/campaigns/orc + ${INSTALL_DATA} ${WRKSRC}/campaigns/orc-exp/* ${PREFIX}/share/wargus/campaigns/orc-exp + ${INSTALL_DATA} ${WRKSRC}/contrib/* ${PREFIX}/share/wargus/contrib + ${INSTALL_DATA} ${WRKSRC}/maps/multi/* ${PREFIX}/share/wargus/maps/multi + ${INSTALL_DATA} ${WRKSRC}/scripts/*.lua ${PREFIX}/share/wargus/scripts + ${INSTALL_DATA} ${WRKSRC}/scripts/ai/* ${PREFIX}/share/wargus/scripts/ai + ${INSTALL_DATA} ${WRKSRC}/scripts/human/* ${PREFIX}/share/wargus/scripts/human + ${INSTALL_DATA} ${WRKSRC}/scripts/orc/* ${PREFIX}/share/wargus/scripts/orc + ${INSTALL_DATA} ${WRKSRC}/scripts/tilesets/* ${PREFIX}/share/wargus/scripts/tilesets + ${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${PREFIX}/share/wargus/build.sh + ${INSTALL_PROGRAM} ${WRKSRC}/wartool ${PREFIX}/share/wargus/wartool + ${INSTALL_SCRIPT} ${WRKDIR}/wargus ${PREFIX}/bin/wargus + +post-build: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile + @(cp ${FILESDIR}/wargus.in ${WRKDIR}/wargus) + @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKDIR}/wargus + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/games/wargus/distinfo b/games/wargus/distinfo new file mode 100644 index 000000000000..1376a7a36aeb --- /dev/null +++ b/games/wargus/distinfo @@ -0,0 +1,2 @@ +MD5 (wargus-2.1-src.tar.gz) = 571363cc79c5c532c48f31ad5c06398d +SIZE (wargus-2.1-src.tar.gz) = 542211 diff --git a/games/wargus/files/pkg-message.in b/games/wargus/files/pkg-message.in new file mode 100644 index 000000000000..ad1e4ddd8cee --- /dev/null +++ b/games/wargus/files/pkg-message.in @@ -0,0 +1,24 @@ +------------------------------------------------------------------------------- +The Wargus tool has been installed to %%PREFIX%%/share/wargus/ + +You can now use this tool to extract Warcraft2 data for use with the +Stratagus engine from the following CDs: + +* US Expansion (both MAC/DOS) +* US Original (both MAC/DOS) +* UK/Australian Original +* UK/Australian Expansion +* German Original +* German Expansion +* Spanish Original + +If you have one of the above CDs mounted on /cdrom, su to root and change to +the %%PREFIX%%/share/wargus/ directory and try executing: + +./build.sh -p /cdrom + +After your Warcraft2 data has been successfully extracted, run 'wargus' as the +user you intend to play the game with. + +For more information, please visit: http://wargus.sourceforge.net +------------------------------------------------------------------------------- diff --git a/games/wargus/files/wargus.in b/games/wargus/files/wargus.in new file mode 100644 index 000000000000..d76fbebc0603 --- /dev/null +++ b/games/wargus/files/wargus.in @@ -0,0 +1,66 @@ +#!/bin/sh +# wargus - wargus/stratagus wrapper script +# +# Note: If you have noticed any problems with this script or my port, please +# let me know as soon as possible! +# +# 2004 Travis Poppe <tlp@LiquidX.org> + +USERDIR=$HOME/.wargus +DATADIR=%%PREFIX%%/share/wargus/data.wc2 + +if [ ! -x $DATADIR ]; then + echo "Warcraft2 data not found in $DATADIR/" + echo "" + echo "Did you run build.sh yet?" + echo "" + echo "Giving you instructions in 5 seconds..." + sleep 5 + echo "" + echo "The Wargus tool has been installed to %%PREFIX%%/share/wargus/" + echo "" + echo "You can now use this tool to extract Warcraft2 data for use with the" + echo "Stratagus engine from the following CDs:" + echo "" + echo "* US Expansion (both MAC/DOS)" + echo "* US Original (both MAC/DOS)" + echo "* UK/Australian Original" + echo "* UK/Australian Expansion" + echo "* German Original" + echo "* German Expansion" + echo "* Spanish Original" + echo "" + echo "If you have one of the above CDs mounted on /cdrom, su to root and change to" + echo "the %%PREFIX%%/share/wargus/ directory and try executing:" + echo "" + echo "./build.sh -p /cdrom" + echo "" + echo "After your Warcraft2 data has been successfully extracted, run 'wargus' as the" + echo "user you intend to play the game with." + echo "" + echo "For more information, please visit: http://wargus.sourceforge.net" +fi + +if [ -x $USERDIR ]; then + echo "Warcraft2 data appears to be installed/linked to $USERDIR/" + echo "" + echo "Attempting to run Stratagus with Warcraft2 data" + echo "" + cd $USERDIR + stratagus -d $USERDIR/data $* + exit +fi + +if [ -x $DATADIR ]; then + mkdir $USERDIR + mkdir $USERDIR/data + ln -s %%PREFIX%%/share/wargus/data.wc2/* $USERDIR/data + + echo "Installed/linked Warcraft2 data to $USERDIR/" + echo "" + echo "Attempting to run Stratagus with Warcraft2 data" + echo "" + cd $USERDIR + stratagus -d $USERDIR/data $* + exit +fi diff --git a/games/wargus/pkg-descr b/games/wargus/pkg-descr new file mode 100644 index 000000000000..fd982af5de2b --- /dev/null +++ b/games/wargus/pkg-descr @@ -0,0 +1,16 @@ +Wargus is a Warcraft2 Mod that allows you to play Warcraft2 with the +Stratagus engine, as opposed to playing it with the original Warcraft2 +one. + +So unless you have a legal copy of Warcraft2 (original DOS Version required, +won't work with the battle.net edition) Wargus will be pretty useless to you, +since it doesn't come with any graphics or sounds itself. + +Since Wargus uses a different engine, not all things will work 100% the same +as they did in the original Warcraft2. If you want the original unchanged +Warcraft2 experience, you will still have to play the original. + +WWW: http://wargus.sourceforge.net + +- Travis Poppe +tlp@liquidx.org diff --git a/games/wargus/pkg-plist b/games/wargus/pkg-plist new file mode 100644 index 000000000000..b6a299f75ae0 --- /dev/null +++ b/games/wargus/pkg-plist @@ -0,0 +1,153 @@ +bin/wargus +share/wargus/build.sh +share/wargus/campaigns/human-exp/levelx01h.cm +share/wargus/campaigns/human-exp/levelx02h.cm +share/wargus/campaigns/human-exp/levelx03h.cm +share/wargus/campaigns/human-exp/levelx04h.cm +share/wargus/campaigns/human-exp/levelx05h.cm +share/wargus/campaigns/human-exp/levelx06h.cm +share/wargus/campaigns/human-exp/levelx07h.cm +share/wargus/campaigns/human-exp/levelx08h.cm +share/wargus/campaigns/human-exp/levelx09h.cm +share/wargus/campaigns/human-exp/levelx10h.cm +share/wargus/campaigns/human-exp/levelx11h.cm +share/wargus/campaigns/human-exp/levelx12h.cm +share/wargus/campaigns/human/level01h.cm +share/wargus/campaigns/human/level02h.cm +share/wargus/campaigns/human/level03h.cm +share/wargus/campaigns/human/level04h.cm +share/wargus/campaigns/human/level05h.cm +share/wargus/campaigns/human/level06h.cm +share/wargus/campaigns/human/level07h.cm +share/wargus/campaigns/human/level08h.cm +share/wargus/campaigns/human/level09h.cm +share/wargus/campaigns/human/level10h.cm +share/wargus/campaigns/human/level11h.cm +share/wargus/campaigns/human/level12h.cm +share/wargus/campaigns/human/level13h.cm +share/wargus/campaigns/human/level14h.cm +share/wargus/campaigns/orc-exp/levelx01o.cm +share/wargus/campaigns/orc-exp/levelx02o.cm +share/wargus/campaigns/orc-exp/levelx03o.cm +share/wargus/campaigns/orc-exp/levelx04o.cm +share/wargus/campaigns/orc-exp/levelx05o.cm +share/wargus/campaigns/orc-exp/levelx06o.cm +share/wargus/campaigns/orc-exp/levelx07o.cm +share/wargus/campaigns/orc-exp/levelx08o.cm +share/wargus/campaigns/orc-exp/levelx09o.cm +share/wargus/campaigns/orc-exp/levelx10o.cm +share/wargus/campaigns/orc-exp/levelx11o.cm +share/wargus/campaigns/orc-exp/levelx12o.cm +share/wargus/campaigns/orc/level01o.cm +share/wargus/campaigns/orc/level02o.cm +share/wargus/campaigns/orc/level03o.cm +share/wargus/campaigns/orc/level04o.cm +share/wargus/campaigns/orc/level05o.cm +share/wargus/campaigns/orc/level06o.cm +share/wargus/campaigns/orc/level07o.cm +share/wargus/campaigns/orc/level08o.cm +share/wargus/campaigns/orc/level09o.cm +share/wargus/campaigns/orc/level10o.cm +share/wargus/campaigns/orc/level11o.cm +share/wargus/campaigns/orc/level12o.cm +share/wargus/campaigns/orc/level13o.cm +share/wargus/campaigns/orc/level14o.cm +share/wargus/contrib/cross.png +share/wargus/contrib/food.png +share/wargus/contrib/health.png +share/wargus/contrib/health2.png +share/wargus/contrib/mana.png +share/wargus/contrib/mana2.png +share/wargus/contrib/ore,stone,coal.png +share/wargus/contrib/red_cross.png +share/wargus/contrib/score.png +share/wargus/contrib/stratagus.png +share/wargus/contrib/toccata.mod.gz +share/wargus/maps/multi/(3)little-ambush.pud.gz +share/wargus/maps/multi/(3)little-ambush.txt +share/wargus/maps/multi/(4)4-corners.pud.gz +share/wargus/maps/multi/(4)4-corners.txt +share/wargus/maps/multi/(4)4-isl.pud.gz +share/wargus/maps/multi/(4)4-isl.txt +share/wargus/maps/multi/(4)chop-the-trees.pud.gz +share/wargus/maps/multi/(4)chop-the-trees.txt +share/wargus/maps/multi/(4)civ-decadente-v17.pud.gz +share/wargus/maps/multi/(4)criss_cross.pud.gz +share/wargus/maps/multi/(4)criss_cross2.pud.gz +share/wargus/maps/multi/(4)criss_cross2.txt +share/wargus/maps/multi/(4)scandinavia.pud.gz +share/wargus/maps/multi/(4)scandinavia.txt +share/wargus/maps/multi/(5)diablospiral.pud.gz +share/wargus/maps/multi/(5)diablospiral.txt +share/wargus/maps/multi/(8)altar-in-the-middle.pud.gz +share/wargus/maps/multi/(8)altar-in-the-middle.txt +share/wargus/maps/multi/(8)diabloarena.pud.gz +share/wargus/maps/multi/(8)diabloarena.txt +share/wargus/maps/multi/(8)diablodarkwood.pud.gz +share/wargus/maps/multi/(8)diablodarkwood.txt +share/wargus/maps/multi/(8)diablomaze.pud.gz +share/wargus/maps/multi/(8)diablomaze.txt +share/wargus/maps/multi/(8)fc-deathmatch-plain.pud.gz +share/wargus/maps/multi/(8)fc-deathmatch-x.pud.gz +share/wargus/scripts/ai.lua +share/wargus/scripts/ai/air_attack.lua +share/wargus/scripts/ai/campaign.lua +share/wargus/scripts/ai/land_attack.lua +share/wargus/scripts/ai/passive.lua +share/wargus/scripts/ai/sea_attack.lua +share/wargus/scripts/anim.lua +share/wargus/scripts/buttons.lua +share/wargus/scripts/campaigns.lua +share/wargus/scripts/cheats.lua +share/wargus/scripts/constructions.lua +share/wargus/scripts/credits.lua +share/wargus/scripts/editor.lua +share/wargus/scripts/fonts.lua +share/wargus/scripts/helpers.lua +share/wargus/scripts/human/buttons.lua +share/wargus/scripts/human/campaign1.lua +share/wargus/scripts/human/campaign2.lua +share/wargus/scripts/human/constructions.lua +share/wargus/scripts/human/ui.lua +share/wargus/scripts/human/units.lua +share/wargus/scripts/human/upgrade.lua +share/wargus/scripts/icons.lua +share/wargus/scripts/keystrokes.lua +share/wargus/scripts/menus.lua +share/wargus/scripts/missiles.lua +share/wargus/scripts/orc/buttons.lua +share/wargus/scripts/orc/campaign1.lua +share/wargus/scripts/orc/campaign2.lua +share/wargus/scripts/orc/constructions.lua +share/wargus/scripts/orc/ui.lua +share/wargus/scripts/orc/units.lua +share/wargus/scripts/orc/upgrade.lua +share/wargus/scripts/ranks.lua +share/wargus/scripts/sound.lua +share/wargus/scripts/spells.lua +share/wargus/scripts/stratagus.lua +share/wargus/scripts/tilesets.lua +share/wargus/scripts/tilesets/summer.lua +share/wargus/scripts/tilesets/swamp.lua +share/wargus/scripts/tilesets/wasteland.lua +share/wargus/scripts/tilesets/winter.lua +share/wargus/scripts/tips.lua +share/wargus/scripts/ui.lua +share/wargus/scripts/units.lua +share/wargus/scripts/upgrade.lua +share/wargus/scripts/wc2.lua +share/wargus/wartool +@dirrm share/wargus/scripts/tilesets +@dirrm share/wargus/scripts/orc +@dirrm share/wargus/scripts/human +@dirrm share/wargus/scripts/ai +@dirrm share/wargus/scripts +@dirrm share/wargus/maps/multi +@dirrm share/wargus/maps +@dirrm share/wargus/contrib +@dirrm share/wargus/campaigns/orc-exp +@dirrm share/wargus/campaigns/orc +@dirrm share/wargus/campaigns/human-exp +@dirrm share/wargus/campaigns/human +@dirrm share/wargus/campaigns +@dirrm share/wargus |