aboutsummaryrefslogtreecommitdiffstats
path: root/games/kardsgt/Makefile
blob: 9d95b550a6d5c07aaa87f174664f9e314b6d1689 (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
# New ports collection makefile for:    kardsgt
# Date created:     8 August 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   kardsgt
PORTVERSION=    0.6.3
CATEGORIES= games
MASTER_SITES=   SAVANNAH CENKES

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Card game suite

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_QT_VER= 3
MAKE_ENV=   DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} QTDIR="${QT_PREFIX}"
MAKE_ARGS=  bindir=${PREFIX}/bin mandir=${MANPREFIX}/man\
        datadir=${PREFIX}/share
QMAKESPEC=  ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
MAN6=   ${PORTNAME}.6

post-patch:
    @${REINPLACE_CMD} -e 's|$${datadir}/kardsgt-$${VERSION}|$${DATADIR}|;\
        s|$${docdir}/kardsgt-$${VERSION}|$${DOCSDIR}|;\
        s|qmake|${SETENV} ${MAKE_ENV} qmake -spec ${QMAKESPEC}|;\
        s|--parents|-p|' ${WRKSRC}/Makefile

.include <bsd.port.mk>