aboutsummaryrefslogtreecommitdiffstats
path: root/games/xlines/Makefile
blob: 812f58a7e9a19df77b6e253319a1147144cf6013 (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
# New ports collection makefile for:    xlines
# Date created:             11 February 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   xlines
PORTVERSION=    1.1
CATEGORIES= games
MASTER_SITES=   ftp://ftp.trolltech.com/contrib/
DISTNAME=   ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

USE_QT_VER= 1
USE_X_PREFIX=   yes
USE_REINPLACE=  yes
NO_WRKSUBDIR=   yes

pre-patch:
    @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e "s|`/usr/bin/printf '\r'`||g"

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/xlines ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/xlines
    ${INSTALL_DATA} ${WRKSRC}/trolltech.gif ${PREFIX}/share/xlines
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/readme.lines ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/readme.qt ${DOCSDIR}
.endif

.include <bsd.port.mk>