aboutsummaryrefslogtreecommitdiffstats
path: root/devel/kdesvn/Makefile
blob: cde1f902f7bea3538ec6e12572f1c1ebbfd972bd (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
52
53
54
55
56
# New ports collection makefile for:    kdesvn
# Date created:             08 April 2006
# Whom:                 Yuan Jue <yuanjue@yuanjue.net>
#
# $FreeBSD$

PORTNAME=   kdesvn
PORTVERSION=    0.10.0
CATEGORIES= devel kde
MASTER_SITES=   http://www.alwins-world.de/programs/download/${PORTNAME}/ \
        http://www.yuanjue.net/download/

MAINTAINER= yuanjue@yuanjue.net
COMMENT=    KDE frontend for Subversion

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

WRKSRC=     ${WRKDIR}/${DISTNAME}-build
PATCH_WRKSRC=   ${WRKDIR}/${DISTNAME}

CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
        -DCMAKE_C_COMPILER:STRING='${CC}' \
        -DCMAKE_CXX_COMPILER:STRING=${CXX} \
        -DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}"

LIB_DEPENDS+=   apr-1:${PORTSDIR}/devel/apr-svn \
        svn_client-1:${PORTSDIR}/devel/subversion \
        neon:${PORTSDIR}/www/neon

USE_BZIP2=  yes
USE_KDELIBS_VER=3
USE_GMAKE=  yes
USE_LDCONFIG=   yes

CXXFLAGS+=  -lc

MAN1=   kdesvn.1 kdesvnaskpass.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     Does not compile on 4.x
.endif

post-extract:
    ${MKDIR} ${WRKSRC}

do-configure:
    @(cd ${WRKSRC}; \
    ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${PATCH_WRKSRC})

post-install:
    @${MV} ${PREFIX}/share/man/man1/kdesvn.1 ${PREFIX}/man/man1/kdesvn.1
    @${MV} ${PREFIX}/share/man/man1/kdesvnaskpass.1 ${PREFIX}/man/man1/kdesvnaskpass.1

.include <bsd.port.post.mk>