aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/licq-qt-gui/Makefile
blob: 626682f50b11adef55cf0b4863ff5f9ec1d780bf (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
# Created by: Jeremy Norris <ishmael272home.com>
# $FreeBSD$

PORTNAME=   qt4-gui
PORTVERSION=    1.8.0
CATEGORIES= net-im
PKGNAMESUFFIX?= ${KDE_SUFFIX}${PKGNAMESUFFIX2}

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Qt plugin for licq

LICENSE=    GPLv2

LIB_DEPENDS=    boost_regex:${PORTSDIR}/devel/boost-libs
RUN_DEPENDS=    ${LOCALBASE}/lib/licq/protocol_icq.so:${PORTSDIR}/${LICQ_PORT}-icq

USE_XORG=   x11 xext ice xscrnsaver
USES=       cmake
USE_QT4=    qmake_build moc_build rcc_build uic_build linguist_build

.if defined(WITH_KDE)
KDE_SUFFIX= -kde
USE_KDE4=   kdelibs automoc4
CMAKE_ARGS+=    -DWITH_KDE:BOOL=ON
PLIST_SUB+= GUI_NAME=kde4
PLIST_SUB+= WITH_KDE=""
PLIST_SUB+= WITH_QT="@comment "
.else
USE_QT4+=   xml gui
PLIST_SUB+= GUI_NAME=qt4
PLIST_SUB+= WITH_KDE="@comment "
PLIST_SUB+= WITH_QT=""
.endif

LICQ_PORT?= net-im/licq

NO_STAGE=   yes
pre-fetch:
.if defined(WITH_KDE)
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Build with KDE support"
    @${ECHO_MSG} ""
.else
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You could define WITH_KDE if you want KDE support"
    @${ECHO_MSG} ""
.endif

.include <bsd.port.pre.mk>

.include "${PORTSDIR}/${LICQ_PORT}/Makefile.inc"

.include <bsd.port.post.mk>