aboutsummaryrefslogtreecommitdiffstats
path: root/devel/kdesvn-kde4/Makefile
blob: 2bb15893fadd7e7489f5cb8e6ef11271f932b7c7 (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
46
47
48
49
50
51
# Created by: Yuan Jue <yuanjue@yuanjue.net>
# $FreeBSD$

PORTNAME=   kdesvn
DISTVERSION=    1.6.0
CATEGORIES= devel kde
MASTER_SITES=   http://kdesvn.alwins-world.de/downloads/

MAINTAINER= dbn@FreeBSD.org
COMMENT=    KDE frontend for Subversion

LIB_DEPENDS=    svn_client-1:${PORTSDIR}/devel/subversion

LICENSE=    GPLv2

CONFLICTS=  qsvn-[0-9]*

USE_BZIP2=  yes
USE_CMAKE=  yes
CMAKE_ARGS+=    -DSUBVERSION_INCLUDE_DIR=${LOCALBASE}/include/subversion-1
USE_KDE4=   kdelibs kdeprefix automoc4
USE_LDCONFIG=   yes
USE_QT4=    corelib gui xml network dbus svg qt3support sql \
        qmake_build moc_build rcc_build uic_build linguist_build
MAKE_JOBS_SAFE= yes

MAN1=       kdesvn.1 kdesvnaskpass.1

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
    ${RM} ${WRKSRC}/src/kiosvn/svn*.protocol
.if empty(PORT_OPTIONS:MDOCS)
    ${ECHO} "ADD_SUBDIRECTORY(man)" > ${WRKSRC}/doc/CMakeLists.txt
.endif
.if empty(PORT_OPTIONS:MNLS)
    ${REINPLACE_CMD} -e 's,ADD_SUBDIRECTORY(po), ,g' \
        ${WRKSRC}/CMakeLists.txt
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>