summaryrefslogtreecommitdiff
path: root/games/maelstrom/Makefile
blob: 1ce9372bf3e2c8f3709980b4f6670cd653b05377 (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
44
45
# New ports collection makefile for:	Maelstrom
# Version required:			2.0.6
# Date created:				13 May 1998
# Whom:					Andrey Zakhvatov
#
# $Id: Makefile,v 1.3 1998/07/27 23:24:42 asami Exp $
#

DISTNAME=		Maelstrom-1.4.3-L2.0.6-src
PKGNAME=		maelstrom-2.0.6
CATEGORIES=		games
MASTER_SITES=		ftp://ftp.devolution.com/pub/maelstrom/

MAINTAINER=		andy@icc.surw.chel.su

LIB_DEPENDS=		Xpm\\.4\\.:${PORTSDIR}/graphics/xpm

USE_X_PREFIX=		yes
WRKSRC=			${WRKDIR}/Maelstrom

do-configure:
	@ ${CP} ${FILESDIR}/Makeflags ${WRKSRC}

do-install:
	@ ${INSTALL_PROGRAM} ${WRKSRC}/Maelstrom ${PREFIX}/bin
	@ ${INSTALL_PROGRAM} ${WRKSRC}/Maelstrom_sound ${PREFIX}/bin
	@ ${MKDIR} ${PREFIX}/share/Maelstrom
.for file in Fonts Sounds Sprites
	@ ${INSTALL_DATA} ${WRKSRC}/Maelstrom\ ${file} ${PREFIX}/share/Maelstrom
.endfor
	@ ${INSTALL_DATA} ${WRKSRC}/Maelstrom-Scores ${PREFIX}/share/Maelstrom
	@ chown games:games ${PREFIX}/share/Maelstrom/Maelstrom-Scores
	@ chmod 666 ${PREFIX}/share/Maelstrom/Maelstrom-Scores
	@ ${MKDIR} ${PREFIX}/share/Maelstrom/Images
	@ ${INSTALL_DATA} ${WRKSRC}/Images/*n ${PREFIX}/share/Maelstrom/Images

.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${PREFIX}/share/doc/Maelstrom
.for file in Ambrosia.URL BUGS Changelog Copyright README README.Options README.network
	@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/Maelstrom
.endfor
	@ ${INSTALL_DATA} ${WRKSRC}/Doc/* ${PREFIX}/share/doc/Maelstrom
.endif

.include <bsd.port.mk>