aboutsummaryrefslogtreecommitdiffstats
path: root/irc/kvirc-devel/Makefile
blob: d96741795a287d6471f90ee6230a83efc1c0414a (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# New ports collection makefile for:   kvirc
# Date created:        05 January 2004
# Whom:                Michael Ranner
#
# $FreeBSD$
#

PORTNAME=   kvirc
PORTVERSION=    3.2.6
PORTREVISION=   1
CATEGORIES= irc kde
MASTER_SITES=   ftp://ftp.kvirc.ru/pub/source/dev/
PKGNAMESUFFIX=  -devel

MAINTAINER= a.pirko@inode.at
COMMENT=    IRC client for QT and KDE

USE_AUTOTOOLS=  libtool:15
USE_LDCONFIG=   yes
USE_GETTEXT=    yes
INSTALLS_ICONS= yes
USE_BZIP2=  yes
USE_KDELIBS_VER=3
USE_GMAKE=  yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+=    --mandir=${PREFIX}/man
CONFIGURE_ENV=  QTDIR="${X11BASE}"
PLIST_SUB=  VER=${PORTVERSION}
CONFLICTS=  kvirc-3.2.0*

MAN1=   kvirc.1

BUILD_DEPENDS+= recode:${PORTSDIR}/converters/recode

OPTIONS=    ARTS "Compile with arts support" on \
            AUDIOFILE "Compile with libaudiofile support" on \
            ESOUND "Compile with esound support" off \
            GSM "Compile with gsm support" off

.include <bsd.port.pre.mk>

.if defined(WITH_ARTS)
LIB_DEPENDS+=       artsc.0:${PORTSDIR}/audio/arts
.else
CONFIGURE_ARGS+=    --without-arts-support
.endif

.if defined(WITH_AUDIOFILE)
LIB_DEPENDS+=       audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+=    --without-af-support
.endif

.if defined(WITH_ESOUND)
LIB_DEPENDS+=       esd.2:${PORTSDIR}/audio/esound
.else
CONFIGURE_ARGS+=    --without-esd-support
.endif

.if defined(WITH_GSM)
LIB_DEPENDS+=       gsm.1:${PORTSDIR}/audio/gsm
.else
CONFIGURE_ARGS+=    --without-gsm
.endif

post-patch:
    ${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" \
        -e "s,.SS_KDE_GENERAL_DIR/share/icons,${PREFIX}/share/icons," \
        -e "s,.SS_KDE_GENERAL_DIR/share/applnk,${PREFIX}/share/applnk," \
        -e "s,.SS_KDE_GENERAL_DIR/share/mimelnk,${PREFIX}/share/mimelnk," \
        -e "s,kdeservicesdir=\".SS_KDE_SERVICESDIR\",kdeservicesdir=\"${PREFIX}/share/services\"," \
        ${WRKSRC}/configure
post-configure:
    @${MV} ${WRKSRC}/data/protocols/irc.protocol ${WRKSRC}/data/protocols/kvirc.protocol
    @${MV} ${WRKSRC}/data/protocols/irc6.protocol ${WRKSRC}/data/protocols/kvirc6.protocol
    ${LOCALBASE}/bin/recode -f ibmpc..latin1 `find ${WRKSRC} -name "*.cpp" -print`

.include <bsd.port.post.mk>