aboutsummaryrefslogtreecommitdiff
path: root/games/traindirector/Makefile
blob: f4f29c30d52fe874f36b5dcbe88a52125999ce67 (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
# New ports collection makefile for:	traindirector
# Date created:				09/08/2003
# Whom:					Guido Falsi <mad@madpilot.net>
#
# $FreeBSD$
#

PORTNAME=	traindirector
PORTVERSION=	1.19c
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://xtsl.free.fr/119c/
DISTNAME=	traindir-${PORTVERSION}-src

MAINTAINER=	mad@madpilot.net
COMMENT=	Train controller simulation

WRKSRC=		${WRKDIR}/traindir-${PORTVERSION}

USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_GNOME=	gtk12
USE_REINPLACE=	yes
USE_BZIP2=	yes

post-extract:
.for file in Makefile field.c loadsave.c run.c setup_trdir.sh tgraph.c track.c track1.c trsim.c
	@${TR} -d '\015' < ${WRKSRC}/${file} > ${WRKDIR}/xxxx
	@${MV} ${WRKDIR}/xxxx ${WRKSRC}/${file}
.endfor

post-patch:
	${REINPLACE_CMD} -e 's#PREFIX#${PREFIX}#' ${WRKSRC}/setup_trdir.sh

.include <bsd.port.mk>