Date: Wed, 28 Feb 2001 17:08:07 +0100 (CET) From: holger@eit.uni-kl.de To: FreeBSD-gnats-submit@freebsd.org Subject: ports/25457: New port: games/linux-mightandmagic Message-ID: <200102281608.f1SG87Z55367@sauerbruch.evk-koeln.de>
next in thread | raw e-mail | index | archive | help
>Number: 25457 >Category: ports >Synopsis: New port: games/linux-mightandmagic >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 28 08:10:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Holger Lamm >Release: FreeBSD 4.2-RELEASE i386 >Organization: >Environment: FreeBSD 4.2-RELEASE i386 >Description: "Heroes of Might and Magic III" is a commercial Linux Roleplay game by Lokisoft. This port is an installer that helps you install (and uninstall) it the BSD way, and get it to run under BSD at all. You need to buy the CD; to avoid automated building I set NO_CDROM and NO_PACKAGE, it IS_INTERACTIVE and has no DISTFILES. File list: See below >How-To-Repeat: >Fix: # 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: # # linux-mightandmagic # linux-mightandmagic/Makefile # linux-mightandmagic/pkg-descr # linux-mightandmagic/pkg-comment # linux-mightandmagic/scripts # linux-mightandmagic/scripts/configure # linux-mightandmagic/scripts/do-install # linux-mightandmagic/files # linux-mightandmagic/files/pkg-plist.base # linux-mightandmagic/files/pkg-plist.music # linux-mightandmagic/files/pkg-plist.scenario # linux-mightandmagic/files/pkg-plist.tail # linux-mightandmagic/files/pkg-plist.video # echo c - linux-mightandmagic mkdir -p linux-mightandmagic > /dev/null 2>&1 echo x - linux-mightandmagic/Makefile sed 's/^X//' >linux-mightandmagic/Makefile << 'END-of-linux-mightandmagic/Makefile' X# New ports collection makefile for: MightAndMagic3 X# Date created: 24 Feb 2001 X# Whom: Holger Lamm <holger@eit.uni-kl.de> X# X# $FreeBSD$ X# X XPORTNAME= mightandmagic3 XPORTVERSION= 1.0 XCATEGORIES= games XMASTER_SITES= XPKGNAMEPREFIX= linux- XDISTFILES= X XMAINTAINER= holger@eit.uni-kl.de X XRUN_DEPENDS= ${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \ X ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk X XPLIST= ${WRKDIR}/PLIST XIS_INTERACTIVE= yes XONLY_FOR_ARCHS= i386 XNO_BUILD= yes XNO_WRKSUBDIR= yes XNO_CDROM= Software is commercial XNO_PACKAGE= Software is commercial X XGAMESUBDIR= games/Heroes3 XGAMEDIR= ${LOCALBASE}/${GAMESUBDIR} XSCRIPTS_ENV+= INSTALL_DATA="${INSTALL_DATA}" PLIST=${PLIST} PKGDIR=${PKGDIR} X Xdo-install: X @cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/do-install X.include <bsd.port.mk> END-of-linux-mightandmagic/Makefile echo x - linux-mightandmagic/pkg-descr sed 's/^X//' >linux-mightandmagic/pkg-descr << 'END-of-linux-mightandmagic/pkg-descr' X"Heroes of Might and Magic III" is a Roleplay Linux game by Loki games Xcommercially available on CD. It seems to run only under x86. X XYou will need the CD, this port only helps you install and deinstall Xthe game and get it to run under BSD. END-of-linux-mightandmagic/pkg-descr echo x - linux-mightandmagic/pkg-comment sed 's/^X//' >linux-mightandmagic/pkg-comment << 'END-of-linux-mightandmagic/pkg-comment' XBSD Installation of the Linux game "Heroes of Might and Magic III" END-of-linux-mightandmagic/pkg-comment echo c - linux-mightandmagic/scripts mkdir -p linux-mightandmagic/scripts > /dev/null 2>&1 echo x - linux-mightandmagic/scripts/configure sed 's/^X//' >linux-mightandmagic/scripts/configure << 'END-of-linux-mightandmagic/scripts/configure' X#!/bin/sh X# Gently borrowed code from x11/XFree86-4 X Xyesno () { X answ=X X while [ $answ = X ]; do X echo -n "$2 [$1] " X read answ X if [ X$answ = X ]; then answ=$1; fi X case $answ in X y|yes|Y|YES) answ=YES;; X n|no|N|NO) answ=NO;; X *) echo invalid answer X answ=X X ;; X esac X done X} X Xquestion() { X echo -n "$2 [$1] " X read answ X if [ X$answ = X ]; then answ=$1; fi X} X XF=$WRKDIR/.config Xrm -f $F X Xcat <<EOF XWelcome to the Heroes of Might And Magic 3 installer. XYou may now choose to install parts of the distribution on disk. XIf you choose not to install a part, I will make a link to the CDROM Xso you will have them in case you have your CD mounted while you play. XYou must have your CDROM mounted right now. X XEOF Xquestion /cdrom "Where is your CD mounted?" Xif [ ! -f $answ/Heroes_III_Tutorial.pdf ] ; then X echo "Might and Magic III CD not found. Please mount the CD and retry." X exit 1 Xfi Xecho CD=$answ >> $F Xecho "Do you want to install the Basis game packet?" Xyesno YES "Without this you can't play without CD. (112 MB) " Xecho BASIC=$answ >> $F Xecho "Do you want to install the Graphic packet?" Xyesno YES "Without this you can't play without CD. (14 MB) " Xecho GRAPHIC=$answ >> $F Xyesno YES "Do you want to install the Scenarios (1 MB) " Xecho SCENARIO=$answ >> $F Xyesno NO "Do you want to install Music (64 MB) " Xecho MUSIC=$answ >> $F Xyesno NO "Do you want to install Videos (137 MB) " Xecho VIDEOS=$answ >> $F X Xexit 0 END-of-linux-mightandmagic/scripts/configure echo x - linux-mightandmagic/scripts/do-install sed 's/^X//' >linux-mightandmagic/scripts/do-install << 'END-of-linux-mightandmagic/scripts/do-install' X#!/bin/sh X XF=$WRKDIR/.config X X. $F XGAMESUBDIR=games/Heroes3 XGAMEDIR=${LOCALBASE}/${GAMESUBDIR} X Xif [ ! -f ${CD}/Heroes_III_Tutorial.pdf ] ; then X echo Might and Magic III CD not found in ${CD}. Please mount the CD X echo And retry. If you want to specify another CDROM mount point, X echo rerun the configure script. X exit 1 Xfi X X# Base installation Xecho Base installation Xmkdir -p ${GAMEDIR}/data X${INSTALL_DATA} ${CD}/README ${CD}/Heroes_III_Tutorial.pdf ${GAMEDIR} X${INSTALL_DATA} ${CD}/icon.bmp ${CD}/icon.xpm ${GAMEDIR} X X# INSTALL_PROGRAM (its parameter -s) currupts the file. Using cp. Xcp ${CD}/bin/x86/heroes3 ${GAMEDIR} Xbrandelf -t Linux ${GAMEDIR}/heroes3 Xln -sf ${GAMEDIR}/heroes3 ${LOCALBASE}/bin/heroes3 Xtouch ${GAMEDIR}/data/hiscore.dat Xchmod 666 ${GAMEDIR}/data/hiscore.dat Xcat ${PKGDIR}/files/pkg-plist.base > ${PLIST} X X# Basis packet Xif [ $BASIC = YES ]; then X echo Installing Basic packet X mkdir -p ${GAMEDIR}/data X ${INSTALL_DATA} ${CD}/data/*.lod ${CD}/data/*.snd ${GAMEDIR}/data Xelse X for file in h3bitmap.lod h3sprite.lod heroes3.snd heroes3cd.snd; do X ln -sf ${CD}/data/${file} ${GAMEDIR}/data/${file} X done Xfi X X# Scenario files Xif [ $SCENARIO = YES ]; then X echo Installing Scenarios X mkdir -p ${GAMEDIR}/maps X ${INSTALL_DATA} ${CD}/maps/* ${GAMEDIR}/maps X cat ${PKGDIR}/files/pkg-plist.scenario >> ${PLIST} Xelse X ln -sf ${CD}/maps ${GAMEDIR}/maps X echo ${GAMESUBDIR}/maps >> ${PLIST} Xfi X X# Neither sound nor Music, make the whole data tree a link Xif [ $GRAPHIC = NO -a $MUSIC = NO ]; then X ln -sf ${CD}/data/video ${GAMEDIR}/data/video X echo ${GAMESUBDIR}/data/video >> ${PLIST} Xelse X cat ${PKGDIR}/files/pkg-plist.video >> ${PLIST} Xfi X X# Graphics (recommended) Xif [ $GRAPHIC = YES ]; then X echo Installing Graphics X mkdir -p ${GAMEDIR}/data/video X ${INSTALL_DATA} ${CD}/data/video/credits.pcx ${GAMEDIR}/data/video X ${INSTALL_DATA} ${CD}/data/video/*.mjpg ${GAMEDIR}/data/video Xelif [ $VIDEOS = YES ]; then X# Videos are installed, so create links X cd $CD/data/video X for file in *.mjpg credits.pcx; do X ln -sf $CD/data/video/${file} ${GAMEDIR}/data/video/${file} X done X cd - Xfi X X# Videos Xif [ $VIDEOS = YES ]; then X echo Installing Videos X mkdir -p ${GAMEDIR}/data/video X ${INSTALL_DATA} ${CD}/data/video/*.mpg ${GAMEDIR}/data/video X cat ${PKGDIR}/files/pkg-plist.video >> ${PLIST} Xelif [ $GRAPHIC = YES ]; then X# Music is installed, so create links X cd $CD/data/video X for file in *.mpg; do X ln -sf $CD/data/video/${file} ${GAMEDIR}/data/video/${file} X done X cd - Xfi X X# Music Xif [ $MUSIC = YES ]; then X echo Installing Music X mkdir -p ${GAMEDIR}/mp3 X ${INSTALL_DATA} ${CD}/mp3/* ${GAMEDIR}/mp3 X cat ${PKGDIR}/files/pkg-plist.music >> ${PLIST} Xelse X ln -sf ${CD}/mp3 ${GAMEDIR}/mp3 X echo ${GAMESUBDIR}/mp3 >> ${PLIST} Xfi X X echo @dirrm ${GAMESUBDIR}/data >> ${PLIST} X echo @dirrm ${GAMESUBDIR} >> ${PLIST} X X# Goodbye message Xif [ $BASIC = YES -a $GRAPHIC = YES ]; then X echo X echo Congratulation. Remember, with your installation you can also play without CD! Xfi Xexit 0 END-of-linux-mightandmagic/scripts/do-install echo c - linux-mightandmagic/files mkdir -p linux-mightandmagic/files > /dev/null 2>&1 echo x - linux-mightandmagic/files/pkg-plist.base sed 's/^X//' >linux-mightandmagic/files/pkg-plist.base << 'END-of-linux-mightandmagic/files/pkg-plist.base' Xbin/heroes3 Xgames/Heroes3/Heroes_III_Tutorial.pdf Xgames/Heroes3/README Xgames/Heroes3/heroes3 Xgames/Heroes3/icon.bmp Xgames/Heroes3/icon.xpm Xgames/Heroes3/data/hiscore.dat Xgames/Heroes3/data/h3bitmap.lod Xgames/Heroes3/data/h3sprite.lod Xgames/Heroes3/data/heroes3.snd Xgames/Heroes3/data/heroes3cd.snd END-of-linux-mightandmagic/files/pkg-plist.base echo x - linux-mightandmagic/files/pkg-plist.music sed 's/^X//' >linux-mightandmagic/files/pkg-plist.music << 'END-of-linux-mightandmagic/files/pkg-plist.music' Xgames/Heroes3/mp3/aitheme0.mp3 Xgames/Heroes3/mp3/aitheme1.mp3 Xgames/Heroes3/mp3/aitheme2.mp3 Xgames/Heroes3/mp3/campainmusic01.mp3 Xgames/Heroes3/mp3/campainmusic02.mp3 Xgames/Heroes3/mp3/campainmusic03.mp3 Xgames/Heroes3/mp3/campainmusic04.mp3 Xgames/Heroes3/mp3/campainmusic05.mp3 Xgames/Heroes3/mp3/campainmusic06.mp3 Xgames/Heroes3/mp3/campainmusic07.mp3 Xgames/Heroes3/mp3/campainmusic08.mp3 Xgames/Heroes3/mp3/campainmusic09.mp3 Xgames/Heroes3/mp3/combat01.mp3 Xgames/Heroes3/mp3/combat02.mp3 Xgames/Heroes3/mp3/combat03.mp3 Xgames/Heroes3/mp3/combat04.mp3 Xgames/Heroes3/mp3/cstletown.mp3 Xgames/Heroes3/mp3/defend castle.mp3 Xgames/Heroes3/mp3/dirt.mp3 Xgames/Heroes3/mp3/dungeon.mp3 Xgames/Heroes3/mp3/eviltheme.mp3 Xgames/Heroes3/mp3/fortresstown.mp3 Xgames/Heroes3/mp3/goodtheme.mp3 Xgames/Heroes3/mp3/grass.mp3 Xgames/Heroes3/mp3/infernotown.mp3 Xgames/Heroes3/mp3/lava.mp3 Xgames/Heroes3/mp3/looplepr.mp3 Xgames/Heroes3/mp3/lose campain.mp3 Xgames/Heroes3/mp3/losecastle.mp3 Xgames/Heroes3/mp3/losecombat.mp3 Xgames/Heroes3/mp3/mainmenu.mp3 Xgames/Heroes3/mp3/necrotown.mp3 Xgames/Heroes3/mp3/neutraltheme.mp3 Xgames/Heroes3/mp3/rampart.mp3 Xgames/Heroes3/mp3/retreat battle.mp3 Xgames/Heroes3/mp3/rough.mp3 Xgames/Heroes3/mp3/sand.mp3 Xgames/Heroes3/mp3/secrettheme.mp3 Xgames/Heroes3/mp3/snow.mp3 Xgames/Heroes3/mp3/stronghold.mp3 Xgames/Heroes3/mp3/surrender battle.mp3 Xgames/Heroes3/mp3/swamp.mp3 Xgames/Heroes3/mp3/towertown.mp3 Xgames/Heroes3/mp3/ultimatelose.mp3 Xgames/Heroes3/mp3/underground.mp3 Xgames/Heroes3/mp3/water.mp3 Xgames/Heroes3/mp3/win battle.mp3 Xgames/Heroes3/mp3/win scenario.mp3 X@dirrm games/Heroes3/mp3 END-of-linux-mightandmagic/files/pkg-plist.music echo x - linux-mightandmagic/files/pkg-plist.scenario sed 's/^X//' >linux-mightandmagic/files/pkg-plist.scenario << 'END-of-linux-mightandmagic/files/pkg-plist.scenario' Xgames/Heroes3/maps/all for one.h3m Xgames/Heroes3/maps/ascension.h3m Xgames/Heroes3/maps/barbarian breakout.h3m Xgames/Heroes3/maps/barbarian breakouta.h3m Xgames/Heroes3/maps/buried treasure.h3m Xgames/Heroes3/maps/crimson and clover.h3m Xgames/Heroes3/maps/crimson and clovera.h3m Xgames/Heroes3/maps/dead and buried.h3m Xgames/Heroes3/maps/divided loyalties.h3m Xgames/Heroes3/maps/divided loyaltiesa.h3m Xgames/Heroes3/maps/dragon orb.h3m Xgames/Heroes3/maps/emerald isles.h3m Xgames/Heroes3/maps/emerald islesa.h3m Xgames/Heroes3/maps/free for all.h3m Xgames/Heroes3/maps/good to go.h3m Xgames/Heroes3/maps/island of fire.h3m Xgames/Heroes3/maps/islands and caves.h3m Xgames/Heroes3/maps/judgement day.h3m Xgames/Heroes3/maps/key to victory.h3m Xgames/Heroes3/maps/knee deep in the dead.h3m Xgames/Heroes3/maps/knight of darkness.h3m Xgames/Heroes3/maps/manifest destiny.h3m Xgames/Heroes3/maps/middletown.h3m Xgames/Heroes3/maps/myth and legend.h3m Xgames/Heroes3/maps/noahs ark.h3m Xgames/Heroes3/maps/overthrow thy neighbors.h3m Xgames/Heroes3/maps/peacemaker.h3m Xgames/Heroes3/maps/pirates.h3m Xgames/Heroes3/maps/race for ardintinny.h3m Xgames/Heroes3/maps/realm of chaos.h3m Xgames/Heroes3/maps/realm of chaosa.h3m Xgames/Heroes3/maps/rebellion.h3m Xgames/Heroes3/maps/rumble in the bogs.h3m Xgames/Heroes3/maps/rumble in the bogsa.h3m Xgames/Heroes3/maps/tutorial.tut Xgames/Heroes3/maps/search for the grail.h3m Xgames/Heroes3/maps/serpents treasure.h3m Xgames/Heroes3/maps/southern cross.h3m Xgames/Heroes3/maps/the five rings.h3m Xgames/Heroes3/maps/the mandate of heaven.h3m Xgames/Heroes3/maps/titans winter.h3m Xgames/Heroes3/maps/unholy quest.h3m Xgames/Heroes3/maps/vial of life.h3m Xgames/Heroes3/maps/warlords.h3m Xgames/Heroes3/maps/warlordsa.h3m Xgames/Heroes3/maps/warmongers.h3m Xgames/Heroes3/maps/when dragons clash.h3m Xgames/Heroes3/maps/wings of war.h3m Xgames/Heroes3/maps/xathras prize.h3m X@dirrm games/Heroes3/maps END-of-linux-mightandmagic/files/pkg-plist.scenario echo x - linux-mightandmagic/files/pkg-plist.tail sed 's/^X//' >linux-mightandmagic/files/pkg-plist.tail << 'END-of-linux-mightandmagic/files/pkg-plist.tail' X@dirrm games/Heroes3/data X@dirrm games/Heroes3 END-of-linux-mightandmagic/files/pkg-plist.tail echo x - linux-mightandmagic/files/pkg-plist.video sed 's/^X//' >linux-mightandmagic/files/pkg-plist.video << 'END-of-linux-mightandmagic/files/pkg-plist.video' Xgames/Heroes3/data/video/cevil1.mjpg Xgames/Heroes3/data/video/cevil2.mjpg Xgames/Heroes3/data/video/cgood1.mjpg Xgames/Heroes3/data/video/cgood2.mjpg Xgames/Heroes3/data/video/cgood3.mjpg Xgames/Heroes3/data/video/cneutral.mjpg Xgames/Heroes3/data/video/credits.mjpg Xgames/Heroes3/data/video/credits.pcx Xgames/Heroes3/data/video/csecret.mjpg Xgames/Heroes3/data/video/defendall.mjpg Xgames/Heroes3/data/video/defendloop.mjpg Xgames/Heroes3/data/video/lbloop.mjpg Xgames/Heroes3/data/video/lbstart.mjpg Xgames/Heroes3/data/video/losecslp.mjpg Xgames/Heroes3/data/video/losecstl.mjpg Xgames/Heroes3/data/video/pgtrnlft.mjpg Xgames/Heroes3/data/video/pgtrnrgh.mjpg Xgames/Heroes3/data/video/progressbar.mjpg Xgames/Heroes3/data/video/rtloop.mjpg Xgames/Heroes3/data/video/rtstart.mjpg Xgames/Heroes3/data/video/surrender.mjpg Xgames/Heroes3/data/video/tavern.mjpg Xgames/Heroes3/data/video/win3.mjpg Xgames/Heroes3/data/video/3dologo.mpg Xgames/Heroes3/data/video/endgame.mpg Xgames/Heroes3/data/video/evil1a.mpg Xgames/Heroes3/data/video/evil1b.mpg Xgames/Heroes3/data/video/evil1c.mpg Xgames/Heroes3/data/video/evil2a.mpg Xgames/Heroes3/data/video/evil2ap1.mpg Xgames/Heroes3/data/video/evil2ap2.mpg Xgames/Heroes3/data/video/evil2b.mpg Xgames/Heroes3/data/video/evil2c.mpg Xgames/Heroes3/data/video/evil2d.mpg Xgames/Heroes3/data/video/good1a.mpg Xgames/Heroes3/data/video/good1b.mpg Xgames/Heroes3/data/video/good1c.mpg Xgames/Heroes3/data/video/good2a.mpg Xgames/Heroes3/data/video/good2b.mpg Xgames/Heroes3/data/video/good2c.mpg Xgames/Heroes3/data/video/good2d.mpg Xgames/Heroes3/data/video/good3a.mpg Xgames/Heroes3/data/video/good3b.mpg Xgames/Heroes3/data/video/good3c.mpg Xgames/Heroes3/data/video/h3intro.mpg Xgames/Heroes3/data/video/hsanim.mpg Xgames/Heroes3/data/video/hsloop.mpg Xgames/Heroes3/data/video/losegame.mpg Xgames/Heroes3/data/video/neutrala.mpg Xgames/Heroes3/data/video/neutralb.mpg Xgames/Heroes3/data/video/neutralc.mpg Xgames/Heroes3/data/video/nwclogo.mpg Xgames/Heroes3/data/video/secreta.mpg Xgames/Heroes3/data/video/secretb.mpg Xgames/Heroes3/data/video/secretc.mpg X@dirrm games/Heroes3/data/video END-of-linux-mightandmagic/files/pkg-plist.video exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102281608.f1SG87Z55367>