aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-nwserver/Makefile
blob: c60a71583c5dbf24ee098f381c1c23963a6f4ba9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    linux-nwserver
# Date created:     22 July 2002
# Whom:         Igor Pokrovsky <igor.pokrovsky@cnrm.meteo.fr>
#
# $FreeBSD$
#

PORTNAME=   linux-nwserver
PORTVERSION=    1.21
CATEGORIES= games linux
MASTER_SITES=   http://nwdownloads.bioware.com/neverwinternights/linux/121/
DISTNAME=   linuxserver

MAINTAINER= igor.pokrovsky@cnrm.meteo.fr

USE_LINUX=  yes
NO_BUILD=   yes
ONLY_FOR_ARCHS= i386

# Linux binary should not be stripped by INSTALL_PROGRAM
# because as a side effect it brands the binary as FreeBSD.
STRIP=

do-install:
    ${INSTALL_PROGRAM} ${WRKDIR}/fixinstall ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKDIR}/nwserver ${PREFIX}/bin

.ifndef (NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/readme.linuxserver.txt ${DOCSDIR}
.endif

post-install:
    @${ECHO} "*******************************************************************************"
    @${ECHO} "Neverwinter Nights Dedicated Server requires original game data to run."
    @${ECHO} "Consult ${DOCSDIR}/readme.linuxserver.txt"
    @${ECHO} "for more information about required data directories."
    @${ECHO} "From directory, where you will have installed game data you can run:"
    @${ECHO} "${PREFIX}/bin/fixinstall - to check installation (FAILED nwserver is ok)"
    @${ECHO} "and ${PREFIX}/bin/nwserver - to start server"
    @${ECHO} "*******************************************************************************"

.include <bsd.port.mk>