1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

New port: Heroes of Might and Magic III (Linux version).

PR:		25457
Submitted by:	Holger Lamm <holger@eit.uni-kl.de>
This commit is contained in:
Dmitry Sivachenko 2001-03-07 11:35:58 +00:00
parent 0aaeab888e
commit 2047f69074
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39179
11 changed files with 376 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# New ports collection makefile for: HeroesOfMightAndMagic3
# Date created: 24 Feb 2001
# Whom: Holger Lamm <holger@eit.uni-kl.de>
#
# $FreeBSD$
#
PORTNAME= HeroesOfMightAndMagic
PORTVERSION= 3
CATEGORIES= games
MASTER_SITES=
DISTFILES=
MAINTAINER= holger@eit.uni-kl.de
RUN_DEPENDS= ${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
PLIST= ${WRKDIR}/PLIST
IS_INTERACTIVE= yes
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
NO_WRKSUBDIR= yes
NO_CDROM= Software is commercial
NO_PACKAGE= Software is commercial
GAMESUBDIR= games/Heroes3
GAMEDIR= ${PREFIX}/${GAMESUBDIR}
SCRIPTS_ENV+= INSTALL_DATA="${INSTALL_DATA}" PLIST=${PLIST} PKGDIR=${PKGDIR}
do-install:
@cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/do-install
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
bin/heroes3
games/Heroes3/Heroes_III_Tutorial.pdf
games/Heroes3/README
games/Heroes3/heroes3
games/Heroes3/icon.bmp
games/Heroes3/icon.xpm
games/Heroes3/data/hiscore.dat
games/Heroes3/data/h3bitmap.lod
games/Heroes3/data/h3sprite.lod
games/Heroes3/data/heroes3.snd
games/Heroes3/data/heroes3cd.snd

View File

@ -0,0 +1,49 @@
games/Heroes3/mp3/aitheme0.mp3
games/Heroes3/mp3/aitheme1.mp3
games/Heroes3/mp3/aitheme2.mp3
games/Heroes3/mp3/campainmusic01.mp3
games/Heroes3/mp3/campainmusic02.mp3
games/Heroes3/mp3/campainmusic03.mp3
games/Heroes3/mp3/campainmusic04.mp3
games/Heroes3/mp3/campainmusic05.mp3
games/Heroes3/mp3/campainmusic06.mp3
games/Heroes3/mp3/campainmusic07.mp3
games/Heroes3/mp3/campainmusic08.mp3
games/Heroes3/mp3/campainmusic09.mp3
games/Heroes3/mp3/combat01.mp3
games/Heroes3/mp3/combat02.mp3
games/Heroes3/mp3/combat03.mp3
games/Heroes3/mp3/combat04.mp3
games/Heroes3/mp3/cstletown.mp3
games/Heroes3/mp3/defend castle.mp3
games/Heroes3/mp3/dirt.mp3
games/Heroes3/mp3/dungeon.mp3
games/Heroes3/mp3/eviltheme.mp3
games/Heroes3/mp3/fortresstown.mp3
games/Heroes3/mp3/goodtheme.mp3
games/Heroes3/mp3/grass.mp3
games/Heroes3/mp3/infernotown.mp3
games/Heroes3/mp3/lava.mp3
games/Heroes3/mp3/looplepr.mp3
games/Heroes3/mp3/lose campain.mp3
games/Heroes3/mp3/losecastle.mp3
games/Heroes3/mp3/losecombat.mp3
games/Heroes3/mp3/mainmenu.mp3
games/Heroes3/mp3/necrotown.mp3
games/Heroes3/mp3/neutraltheme.mp3
games/Heroes3/mp3/rampart.mp3
games/Heroes3/mp3/retreat battle.mp3
games/Heroes3/mp3/rough.mp3
games/Heroes3/mp3/sand.mp3
games/Heroes3/mp3/secrettheme.mp3
games/Heroes3/mp3/snow.mp3
games/Heroes3/mp3/stronghold.mp3
games/Heroes3/mp3/surrender battle.mp3
games/Heroes3/mp3/swamp.mp3
games/Heroes3/mp3/towertown.mp3
games/Heroes3/mp3/ultimatelose.mp3
games/Heroes3/mp3/underground.mp3
games/Heroes3/mp3/water.mp3
games/Heroes3/mp3/win battle.mp3
games/Heroes3/mp3/win scenario.mp3
@dirrm games/Heroes3/mp3

View File

@ -0,0 +1,50 @@
games/Heroes3/maps/all for one.h3m
games/Heroes3/maps/ascension.h3m
games/Heroes3/maps/barbarian breakout.h3m
games/Heroes3/maps/barbarian breakouta.h3m
games/Heroes3/maps/buried treasure.h3m
games/Heroes3/maps/crimson and clover.h3m
games/Heroes3/maps/crimson and clovera.h3m
games/Heroes3/maps/dead and buried.h3m
games/Heroes3/maps/divided loyalties.h3m
games/Heroes3/maps/divided loyaltiesa.h3m
games/Heroes3/maps/dragon orb.h3m
games/Heroes3/maps/emerald isles.h3m
games/Heroes3/maps/emerald islesa.h3m
games/Heroes3/maps/free for all.h3m
games/Heroes3/maps/good to go.h3m
games/Heroes3/maps/island of fire.h3m
games/Heroes3/maps/islands and caves.h3m
games/Heroes3/maps/judgement day.h3m
games/Heroes3/maps/key to victory.h3m
games/Heroes3/maps/knee deep in the dead.h3m
games/Heroes3/maps/knight of darkness.h3m
games/Heroes3/maps/manifest destiny.h3m
games/Heroes3/maps/middletown.h3m
games/Heroes3/maps/myth and legend.h3m
games/Heroes3/maps/noahs ark.h3m
games/Heroes3/maps/overthrow thy neighbors.h3m
games/Heroes3/maps/peacemaker.h3m
games/Heroes3/maps/pirates.h3m
games/Heroes3/maps/race for ardintinny.h3m
games/Heroes3/maps/realm of chaos.h3m
games/Heroes3/maps/realm of chaosa.h3m
games/Heroes3/maps/rebellion.h3m
games/Heroes3/maps/rumble in the bogs.h3m
games/Heroes3/maps/rumble in the bogsa.h3m
games/Heroes3/maps/tutorial.tut
games/Heroes3/maps/search for the grail.h3m
games/Heroes3/maps/serpents treasure.h3m
games/Heroes3/maps/southern cross.h3m
games/Heroes3/maps/the five rings.h3m
games/Heroes3/maps/the mandate of heaven.h3m
games/Heroes3/maps/titans winter.h3m
games/Heroes3/maps/unholy quest.h3m
games/Heroes3/maps/vial of life.h3m
games/Heroes3/maps/warlords.h3m
games/Heroes3/maps/warlordsa.h3m
games/Heroes3/maps/warmongers.h3m
games/Heroes3/maps/when dragons clash.h3m
games/Heroes3/maps/wings of war.h3m
games/Heroes3/maps/xathras prize.h3m
@dirrm games/Heroes3/maps

View File

@ -0,0 +1,2 @@
@dirrm games/Heroes3/data
@dirrm games/Heroes3

View File

@ -0,0 +1,56 @@
games/Heroes3/data/video/cevil1.mjpg
games/Heroes3/data/video/cevil2.mjpg
games/Heroes3/data/video/cgood1.mjpg
games/Heroes3/data/video/cgood2.mjpg
games/Heroes3/data/video/cgood3.mjpg
games/Heroes3/data/video/cneutral.mjpg
games/Heroes3/data/video/credits.mjpg
games/Heroes3/data/video/credits.pcx
games/Heroes3/data/video/csecret.mjpg
games/Heroes3/data/video/defendall.mjpg
games/Heroes3/data/video/defendloop.mjpg
games/Heroes3/data/video/lbloop.mjpg
games/Heroes3/data/video/lbstart.mjpg
games/Heroes3/data/video/losecslp.mjpg
games/Heroes3/data/video/losecstl.mjpg
games/Heroes3/data/video/pgtrnlft.mjpg
games/Heroes3/data/video/pgtrnrgh.mjpg
games/Heroes3/data/video/progressbar.mjpg
games/Heroes3/data/video/rtloop.mjpg
games/Heroes3/data/video/rtstart.mjpg
games/Heroes3/data/video/surrender.mjpg
games/Heroes3/data/video/tavern.mjpg
games/Heroes3/data/video/win3.mjpg
games/Heroes3/data/video/3dologo.mpg
games/Heroes3/data/video/endgame.mpg
games/Heroes3/data/video/evil1a.mpg
games/Heroes3/data/video/evil1b.mpg
games/Heroes3/data/video/evil1c.mpg
games/Heroes3/data/video/evil2a.mpg
games/Heroes3/data/video/evil2ap1.mpg
games/Heroes3/data/video/evil2ap2.mpg
games/Heroes3/data/video/evil2b.mpg
games/Heroes3/data/video/evil2c.mpg
games/Heroes3/data/video/evil2d.mpg
games/Heroes3/data/video/good1a.mpg
games/Heroes3/data/video/good1b.mpg
games/Heroes3/data/video/good1c.mpg
games/Heroes3/data/video/good2a.mpg
games/Heroes3/data/video/good2b.mpg
games/Heroes3/data/video/good2c.mpg
games/Heroes3/data/video/good2d.mpg
games/Heroes3/data/video/good3a.mpg
games/Heroes3/data/video/good3b.mpg
games/Heroes3/data/video/good3c.mpg
games/Heroes3/data/video/h3intro.mpg
games/Heroes3/data/video/hsanim.mpg
games/Heroes3/data/video/hsloop.mpg
games/Heroes3/data/video/losegame.mpg
games/Heroes3/data/video/neutrala.mpg
games/Heroes3/data/video/neutralb.mpg
games/Heroes3/data/video/neutralc.mpg
games/Heroes3/data/video/nwclogo.mpg
games/Heroes3/data/video/secreta.mpg
games/Heroes3/data/video/secretb.mpg
games/Heroes3/data/video/secretc.mpg
@dirrm games/Heroes3/data/video

View File

@ -0,0 +1 @@
BSD Installation of the Linux game "Heroes of Might and Magic III"

View File

@ -0,0 +1,7 @@
"Heroes of Might and Magic III" is a Roleplay Linux game by Loki games
commercially available on CD. It seems to run only under x86.
You will need the CD, this port only helps you install and deinstall
the game and get it to run under FreeBSD.
WWW: http://www.lokigames.com/products/heroes3/

View File

@ -0,0 +1,56 @@
#!/bin/sh
# Gently borrowed code from x11/XFree86-4
yesno () {
answ=X
while [ $answ = X ]; do
echo -n "$2 [$1] "
read answ
if [ X$answ = X ]; then answ=$1; fi
case $answ in
y|yes|Y|YES) answ=YES;;
n|no|N|NO) answ=NO;;
*) echo invalid answer
answ=X
;;
esac
done
}
question() {
echo -n "$2 [$1] "
read answ
if [ X$answ = X ]; then answ=$1; fi
}
F=$WRKDIR/.config
rm -f $F
cat <<EOF
Welcome to the Heroes of Might And Magic 3 installer.
You may now choose to install parts of the distribution on disk.
If you choose not to install a part, I will make a link to the CDROM
so you will have them in case you have your CD mounted while you play.
You must have your CDROM mounted right now.
EOF
question /cdrom "Where is your CD mounted?"
if [ ! -f $answ/Heroes_III_Tutorial.pdf ] ; then
echo "Might and Magic III CD not found. Please mount the CD and retry."
exit 1
fi
echo CD=$answ >> $F
echo "Do you want to install the Basis game packet?"
yesno YES "Without this you can't play without CD. (112 MB) "
echo BASIC=$answ >> $F
echo "Do you want to install the Graphic packet?"
yesno YES "Without this you can't play without CD. (14 MB) "
echo GRAPHIC=$answ >> $F
yesno YES "Do you want to install the Scenarios (1 MB) "
echo SCENARIO=$answ >> $F
yesno NO "Do you want to install Music (64 MB) "
echo MUSIC=$answ >> $F
yesno NO "Do you want to install Videos (137 MB) "
echo VIDEOS=$answ >> $F
exit 0

View File

@ -0,0 +1,109 @@
#!/bin/sh
F=$WRKDIR/.config
. $F
GAMESUBDIR=games/Heroes3
GAMEDIR=${LOCALBASE}/${GAMESUBDIR}
if [ ! -f ${CD}/Heroes_III_Tutorial.pdf ] ; then
echo Might and Magic III CD not found in ${CD}. Please mount the CD
echo And retry. If you want to specify another CDROM mount point,
echo rerun the configure script.
exit 1
fi
# Base installation
echo Base installation
mkdir -p ${GAMEDIR}/data
${INSTALL_DATA} ${CD}/README ${CD}/Heroes_III_Tutorial.pdf ${GAMEDIR}
${INSTALL_DATA} ${CD}/icon.bmp ${CD}/icon.xpm ${GAMEDIR}
# INSTALL_PROGRAM (its parameter -s) currupts the file. Using cp.
cp ${CD}/bin/x86/heroes3 ${GAMEDIR}
brandelf -t Linux ${GAMEDIR}/heroes3
ln -sf ${GAMEDIR}/heroes3 ${LOCALBASE}/bin/heroes3
touch ${GAMEDIR}/data/hiscore.dat
chmod 666 ${GAMEDIR}/data/hiscore.dat
cat ${PKGDIR}/files/pkg-plist.base > ${PLIST}
# Basis packet
if [ $BASIC = YES ]; then
echo Installing Basic packet
mkdir -p ${GAMEDIR}/data
${INSTALL_DATA} ${CD}/data/*.lod ${CD}/data/*.snd ${GAMEDIR}/data
else
for file in h3bitmap.lod h3sprite.lod heroes3.snd heroes3cd.snd; do
ln -sf ${CD}/data/${file} ${GAMEDIR}/data/${file}
done
fi
# Scenario files
if [ $SCENARIO = YES ]; then
echo Installing Scenarios
mkdir -p ${GAMEDIR}/maps
${INSTALL_DATA} ${CD}/maps/* ${GAMEDIR}/maps
cat ${PKGDIR}/files/pkg-plist.scenario >> ${PLIST}
else
ln -sf ${CD}/maps ${GAMEDIR}/maps
echo ${GAMESUBDIR}/maps >> ${PLIST}
fi
# Neither sound nor Music, make the whole data tree a link
if [ $GRAPHIC = NO -a $MUSIC = NO ]; then
ln -sf ${CD}/data/video ${GAMEDIR}/data/video
echo ${GAMESUBDIR}/data/video >> ${PLIST}
else
cat ${PKGDIR}/files/pkg-plist.video >> ${PLIST}
fi
# Graphics (recommended)
if [ $GRAPHIC = YES ]; then
echo Installing Graphics
mkdir -p ${GAMEDIR}/data/video
${INSTALL_DATA} ${CD}/data/video/credits.pcx ${GAMEDIR}/data/video
${INSTALL_DATA} ${CD}/data/video/*.mjpg ${GAMEDIR}/data/video
elif [ $VIDEOS = YES ]; then
# Videos are installed, so create links
cd $CD/data/video
for file in *.mjpg credits.pcx; do
ln -sf $CD/data/video/${file} ${GAMEDIR}/data/video/${file}
done
cd -
fi
# Videos
if [ $VIDEOS = YES ]; then
echo Installing Videos
mkdir -p ${GAMEDIR}/data/video
${INSTALL_DATA} ${CD}/data/video/*.mpg ${GAMEDIR}/data/video
cat ${PKGDIR}/files/pkg-plist.video >> ${PLIST}
elif [ $GRAPHIC = YES ]; then
# Music is installed, so create links
cd $CD/data/video
for file in *.mpg; do
ln -sf $CD/data/video/${file} ${GAMEDIR}/data/video/${file}
done
cd -
fi
# Music
if [ $MUSIC = YES ]; then
echo Installing Music
mkdir -p ${GAMEDIR}/mp3
${INSTALL_DATA} ${CD}/mp3/* ${GAMEDIR}/mp3
cat ${PKGDIR}/files/pkg-plist.music >> ${PLIST}
else
ln -sf ${CD}/mp3 ${GAMEDIR}/mp3
echo ${GAMESUBDIR}/mp3 >> ${PLIST}
fi
echo @dirrm ${GAMESUBDIR}/data >> ${PLIST}
echo @dirrm ${GAMESUBDIR} >> ${PLIST}
# Goodbye message
if [ $BASIC = YES -a $GRAPHIC = YES ]; then
echo
echo Congratulation. Remember, with your installation you can also play without CD!
fi
exit 0

View File

@ -3,6 +3,7 @@
SUBDIR += 3dc
SUBDIR += 3dpong
SUBDIR += HeroesOfMightAndMagic
SUBDIR += KnightCap
SUBDIR += acm
SUBDIR += actx