aboutsummaryrefslogtreecommitdiffstats
path: root/polish/kadu/Makefile
blob: 9e7a55530215b6e199267c3da22e6cb8465dfb73 (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
# Ports collection makefile for:   kadu
# Date created:        17 July 2003
# Whom:                Jacek Pelka <jacek@combit.com.pl>
#
# $FreeBSD$
#

PORTNAME=       kadu
PORTVERSION=        0.3.8
PORTEPOCH=      1
CATEGORIES=     polish net
MASTER_SITES=       http://www.kadu.net/download/stable/
DISTNAME=       ${PORTNAME}-${PORTVERSION}

MAINTAINER=     jacek@combit.com.pl
COMMENT=        QT Gadu-Gadu client

LIB_DEPENDS=        gadu.3:${PORTSDIR}/polish/ekg:install\
            gsm.1:${PORTSDIR}/audio/gsm:install

USE_BZIP2=      yes
USE_GMAKE=      yes
GNU_CONFIGURE=      yes
CONFIGURE_ARGS+=    --with-existing-libgadu \
            --program-transform-name=''\
            --mandir=${PREFIX}/man
CONFIGURE_ENV=      LDFLAGS="-L${LOCALBASE}/lib"\
            GADU_INCLUDES="-I${LOCALBASE}/include"\
            GSM_LIB="-L${LOCALBASE}/lib"\
            GSM_INCLUDES="-I${LOCALBASE}/include"
            
USE_QT_VER=     3

WRKSRC=         ${WRKDIR}/${PORTNAME}

WANT_GNOME=     yes

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgnomehier}!=""
PLIST_SUB+= GNOME:=""
.else
PLIST_SUB+= GNOME:="@comment "
.endif
.if exists(${LOCALBASE}/lib/libkdecore.so)
PLIST_SUB+= KDE:=""
.else
PLIST_SUB+= KDE:="@comment "
.endif

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "  **************************************************************"
    @${ECHO_MSG} "  * This version of kadu requires polish/ekg-1.4.20040208,1 or *"
    @${ECHO_MSG} "  * higher, so upgrade it first if necessary.                  *"
    @${ECHO_MSG} "  **************************************************************"
    @${ECHO_MSG}

post-install:
.if ${HAVE_GNOME:Mgnomehier}!=""
    ${INSTALL_DATA} ${WRKSRC}/kadu/kadu.desktop ${X11BASE}/share/gnome/apps/Internet
.endif
.if exists(${LOCALBASE}/lib/libkdecore.so)
    ${INSTALL_DATA} ${WRKSRC}/kadu/kadu.desktop ${LOCALBASE}/share/applnk/Internet
.endif

.include <bsd.port.post.mk>