aboutsummaryrefslogtreecommitdiffstats
path: root/net/konverse/Makefile
blob: 55bfa68e678f36f8f518c53b9236561ccbd4692a (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
# New ports collection makefile for:    konverse
# Date created:             30 May 2001
# Whom:             Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=   konverse
PORTVERSION=    0.2
PORTREVISION=   2
CATEGORIES= net kde
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= perky@FreeBSD.org
COMMENT=    KDE Jabber Client

USE_KDELIBS_VER=3
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_REINPLACE=  yes

CONFIGURE_ARGS+=--with-extra-includes=${LOCALBASE}/include \
        --x-includes=${X11BASE}/include \
        --x-libraries=${X11BASE}/lib \
        --with-qt-libraries=${QT_PREFIX}/lib

pre-patch:
    ${REINPLACE_CMD} -e 's|-lqt|-lqt-mt ${PTHREAD_LIBS}|' \
        -e 's/libqt\.\*/libqt-mt.*/' ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's/\(LDADD.*\)-ldl/\1/' \
        -e 's|-lqt|${PTHREAD_LIBS}|' ${WRKSRC}/konverse/Makefile.in
    ${REINPLACE_CMD} -e 's/\(QDateTime.*\)timezone/\1local-\>tm_gmtoff/g' \
        ${WRKSRC}/konverse/jabbercore.cpp
.for f in konverse/rostertree.h konverse/dlgchat.h
    ${REINPLACE_CMD} -e 's/ktmainwindow\.h/kmainwindow.h/g' ${WRKSRC}/${f}
.endfor

.include <bsd.port.mk>