aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/kdissert/Makefile
blob: f458f64198cac27f57642086523fe1fec8f58974 (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
# New ports collection makefile for:    kdissert
# Date created:             2004 06 July
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   kdissert
PORTVERSION=    1.0.7
CATEGORIES= deskutils kde
MASTER_SITES=   http://freehackers.org/~tnagy/kdissert/ \
        http://bsdguru.org/distfiles/

MAINTAINER= alex@BSDGuru.org
COMMENT=    KDE mindmapping tool

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_LDCONFIG=   yes
INSTALLS_ICONS= yes
USE_KDELIBS_VER=    3
USE_PYTHON_BUILD=   yes
MAKE_ENV=   QTDIR="${QT_PREFIX}" KDEDIR="${KDE_PREFIX}"

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
CXXFLAGS+=  -fpermissive
.endif

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

post-patch:
    @${REINPLACE_CMD} -e \
        's|%%LINKFLAGS%%|${PTHREAD_LIBS}|g ; \
         s|%%CPPFLAGS%%|${PTHREAD_CFLAGS}|g' \
            ${WRKSRC}/src/kdissert/wscript_build

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./waf configure

do-build:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./waf

do-install:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./waf install
    @${STRIP_CMD} ${PREFIX}/bin/kdissert

.include <bsd.port.post.mk>