freebsd-ports/games/nwndata/Makefile
Sean Farley e81744cb8c Install from the data files directly from the Diamond DVD, if provided via
CDROM_MOUNT variable.  A Diamond install includes the Shadows of
Undrentide, Hordes of the Underdark and Kingmaker expansions.  The port
version is 1.61 when using the Diamond DVD.

Remove ARCH requirement, which had been for only i386; let the install of
the Linux base determine if the port is allowed or not.  Besides, there is
nothing runnable in this port.

Take maintainership.

Approved by:	wxs
2010-09-27 18:25:56 +00:00

58 lines
1.5 KiB
Makefile

# New ports collection makefile for: Neverwinter Nights Data
# Date created: 4 April 2003
# Whom: Erik Olson <erikolson@olsonexpress.com>
#
# $FreeBSD$
#
PORTNAME= nwndata
PORTVERSION= ${NWNVER}
PORTREVISION= ${NWNREV}
CATEGORIES= games
MASTER_SITES= http://files.bioware.com/neverwinternights/updates/linux/ \
http://bioware.vo.llnwd.net/o1/neverwinternights/updates/linux/
# Also at: http://www.fileshack.com/file.x?fid=2508
DISTNAME= ${NWRESOURCES}
.if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe)
DISTFILES=
.endif
MAINTAINER= scf@FreeBSD.org
COMMENT= Neverwinter Nights Data Files
# Setup port based upon whether this is the Diamond edition or straight NWN.
.if defined(CDROM_MOUNT) && exists(${CDROM_MOUNT}/KingmakerSetup.exe)
NWNVER= 1.61
NWNREV= 0
NWN_DIAMOND= yes
EXTRACT_DEPENDS+= 7z:${PORTSDIR}/archivers/p7zip
PLIST_SUB+= DIAMOND="" ORIGINAL="@comment "
.else
NWNVER= 1.29
NWNREV= 3
NWRESOURCES= nwresources${PORTVERSION:S/.//}
PLIST_SUB+= DIAMOND="@comment " ORIGINAL=""
.endif
NO_BUILD= yes
WRKSRC= ${WRKDIR}/nwn
NO_PACKAGE= Compressed package is in excess of 1 GB
do-install:
${MKDIR} ${DATADIR}
.if defined(NWN_DIAMOND)
7z e -y -x'r!*.dll' -x'r!*.exe' -o${WRKSRC}/Kingmaker\
${CDROM_MOUNT}/KingmakerSetup.exe
.for zipfile in Data_Shared.zip Data_linux.zip data/XP1.zip data/XP2.zip
(cd ${DATADIR} && ${UNZIP_CMD} -o ${CDROM_MOUNT}/${zipfile})
.endfor
.else
(cd ${WRKSRC} && ${FIND} . -print | \
${CPIO} -pdmuv -R${SHAREOWN}:${SHAREGRP} ${DATADIR})
.endif
.include <bsd.port.mk>