aboutsummaryrefslogtreecommitdiffstats
path: root/games/knights-kde4/Makefile
blob: 52051c8199b67e0e57860d41d1e527cc1fbc16f9 (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
# Created by: Stefan Jahn <stefan.jahn@nemesis-sektor.de>
# $FreeBSD$

PORTNAME=   knights
PORTVERSION=    2.5.0
PORTREVISION=   6
CATEGORIES= games kde
MASTER_SITES=   http://dl.dropbox.com/u/2888238/Knights/

MAINTAINER= syncer@gmail.com
COMMENT=    KDE4 chess interface

RUN_DEPENDS=    ${LOCALBASE}/bin/gnuchess:games/gnuchess

LICENSE=    GPLv2

USES=       cmake:outsource tar:bzip2
USE_KDE4=   kdelibs kdeprefix automoc4 workspace libkdegames
USE_QT4=    qmake_build moc_build rcc_build uic_build

OPTIONS_DEFINE= DOCS NLS

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS+=    -DBUILD_doc=FALSE
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
CMAKE_ARGS+=    -DBUILD_po=FALSE
.endif

post-patch:
.if empty(PORT_OPTIONS:MDOCS)
    ${REINPLACE_CMD} "s/^add_subdirectory( doc )//g" \
        ${WRKSRC}/CMakeLists.txt
.endif

.include <bsd.port.mk>