mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
# Created by: Holger Lamm <holger@eit.uni-kl.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= HeroesOfMightAndMagic
|
|
PORTVERSION= 3
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES=
|
|
DISTFILES=
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= BSD Installation of the Linux game "Heroes of Might and Magic III"
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
RESTRICTED= Software is commercial
|
|
|
|
GAMESUBDIR= games/Heroes3
|
|
GAMEDIR= ${STAGEDIR}${PREFIX}/${GAMESUBDIR}
|
|
|
|
GAMEFILES= README Heroes_III_Tutorial.pdf icon.bmp icon.xpm
|
|
DATAFILES= *.lod *.snd
|
|
|
|
.if !defined(CDROM_MOUNT)
|
|
IGNORE= ${PKGNAME} requires CDROM_MOUNT to be set to the mount point of the CD
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${GAMEDIR}/bin
|
|
${INSTALL_PROGRAM} ${CDROM_MOUNT}/bin/x86/heroes3 ${GAMEDIR}
|
|
${BRANDELF} -t Linux ${GAMEDIR}/heroes3
|
|
${LN} -sf ${PREFIX}/${GAMESUBDIR}/heroes3 ${STAGEDIR}${PREFIX}/bin/heroes3
|
|
.for f in ${GAMEFILES}
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/${f} ${GAMEDIR}
|
|
.endfor
|
|
${MKDIR} ${GAMEDIR}/data
|
|
${TOUCH} ${GAMEDIR}/data/hiscore.dat
|
|
.for f in ${DATAFILES}
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/data/${f} ${GAMEDIR}/data
|
|
.endfor
|
|
${MKDIR} ${GAMEDIR}/maps
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/maps/* ${GAMEDIR}/maps
|
|
${MKDIR} ${GAMEDIR}/data/video
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/data/video/*.mjpg ${GAMEDIR}/data/video
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/data/video/credits.pcx ${GAMEDIR}/data/video
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/data/video/*.mpg ${GAMEDIR}/data/video
|
|
${MKDIR} ${GAMEDIR}/mp3
|
|
${INSTALL_DATA} ${CDROM_MOUNT}/mp3/* ${GAMEDIR}/mp3
|
|
|
|
.include <bsd.port.mk>
|