2013-05-12 08:42:18 +00:00
|
|
|
# Created by: Martin Wilke <miwi@FreeBSD.org>
|
2008-09-06 22:34:03 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= quassel
|
2014-03-31 10:58:50 +00:00
|
|
|
PORTVERSION= 0.10.0
|
2008-09-06 22:34:03 +00:00
|
|
|
CATEGORIES= irc
|
|
|
|
MASTER_SITES= http://www.quassel-irc.org/pub/
|
|
|
|
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2013-10-23 13:08:41 +00:00
|
|
|
COMMENT= Qt 4 based distributed IRC client
|
2008-09-06 22:34:03 +00:00
|
|
|
|
2013-10-23 13:08:41 +00:00
|
|
|
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
2008-09-06 22:34:03 +00:00
|
|
|
|
2014-03-31 10:58:50 +00:00
|
|
|
USES= cmake:outsource tar:bzip2
|
2013-05-12 08:42:18 +00:00
|
|
|
USE_QT4= corelib network script sql \
|
|
|
|
qmake_build moc_build rcc_build uic_build
|
2008-09-06 22:34:03 +00:00
|
|
|
|
2013-05-12 08:42:18 +00:00
|
|
|
OPTIONS_DEFINE= KDE NLS
|
2012-07-27 11:03:38 +00:00
|
|
|
OPTIONS_MULTI= MODULE
|
|
|
|
OPTIONS_MULTI_MODULE= MONO CORE CLIENT
|
|
|
|
OPTIONS_DEFAULT= ${OPTIONS_MULTI_MODULE}
|
|
|
|
|
|
|
|
MONO_DESC= Quassel standalone client
|
2013-05-12 08:42:18 +00:00
|
|
|
CORE_DESC= Quassel core (for use with client)
|
|
|
|
CLIENT_DESC= Quassel client (for use with core)
|
|
|
|
KDE_DESC= KDE 4 integration (for clients only)
|
2008-09-23 15:05:20 +00:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -DWANT_MONO=${QUASSEL_MONO} \
|
|
|
|
-DWANT_CORE=${QUASSEL_CORE} \
|
2009-10-24 16:43:37 +00:00
|
|
|
-DWANT_QTCLIENT=${QUASSEL_CLIENT} \
|
|
|
|
-DWITH_LIBINDICATE=OFF
|
2008-09-23 15:05:20 +00:00
|
|
|
|
2010-04-25 12:02:16 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-09-23 15:05:20 +00:00
|
|
|
|
2012-07-27 11:03:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4+= linguist_build
|
2008-12-21 18:32:48 +00:00
|
|
|
.endif
|
|
|
|
|
2013-05-12 08:42:18 +00:00
|
|
|
.if ${PORT_OPTIONS:MMONO} || ${PORT_OPTIONS:MCLIENT}
|
|
|
|
. if ${PORT_OPTIONS:MKDE}
|
2013-07-20 11:08:11 +00:00
|
|
|
USE_KDE4= automoc4 kdelibs kdeprefix
|
2013-05-12 08:42:18 +00:00
|
|
|
CMAKE_ARGS+= -DWITH_KDE=ON
|
|
|
|
PLIST= ${PKGDIR}/pkg-plist.kde
|
|
|
|
. else
|
|
|
|
CMAKE_ARGS+= -DWITH_KDE=OFF
|
|
|
|
. endif
|
|
|
|
USE_QT4+= dbus gui phonon webkit xml xmlpatterns
|
2013-10-23 13:08:41 +00:00
|
|
|
LIB_DEPENDS+= libdbusmenu-qt.so:${PORTSDIR}/devel/libdbusmenu-qt
|
2009-10-24 16:43:37 +00:00
|
|
|
PLIST_SUB+= MONO_OR_CLIENT=""
|
2013-05-12 08:42:18 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= MONO_OR_CLIENT="@comment "
|
2009-10-24 16:43:37 +00:00
|
|
|
.endif
|
|
|
|
|
2012-07-27 11:03:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MMONO}
|
2008-09-23 15:05:20 +00:00
|
|
|
QUASSEL_MONO= ON
|
|
|
|
PLIST_SUB+= MONO=""
|
|
|
|
.else
|
|
|
|
QUASSEL_MONO= OFF
|
|
|
|
PLIST_SUB+= MONO="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-07-27 11:03:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MCORE}
|
2013-10-23 13:08:41 +00:00
|
|
|
LIB_DEPENDS+= libqca.so:${PORTSDIR}/devel/qca
|
2013-05-12 08:42:18 +00:00
|
|
|
USE_QT4+= sql-sqlite3_run
|
2008-09-23 15:05:20 +00:00
|
|
|
QUASSEL_CORE= ON
|
|
|
|
PLIST_SUB+= CORE=""
|
2011-10-31 14:52:58 +00:00
|
|
|
|
|
|
|
USE_RC_SUBR= quasselcore
|
|
|
|
USERS= quasselcore
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
SUB_FILES= pkg-message
|
2008-09-23 15:05:20 +00:00
|
|
|
.else
|
|
|
|
QUASSEL_CORE= OFF
|
|
|
|
PLIST_SUB+= CORE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-07-27 11:03:38 +00:00
|
|
|
.if ${PORT_OPTIONS:MCLIENT}
|
2008-09-23 15:05:20 +00:00
|
|
|
QUASSEL_CLIENT= ON
|
|
|
|
PLIST_SUB+= CLIENT=""
|
|
|
|
.else
|
|
|
|
QUASSEL_CLIENT= OFF
|
|
|
|
PLIST_SUB+= CLIENT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-12-21 18:32:48 +00:00
|
|
|
pre-configure:
|
2012-07-31 13:25:26 +00:00
|
|
|
.if !${PORT_OPTIONS:MNLS}
|
2008-12-21 18:32:48 +00:00
|
|
|
${REINPLACE_CMD} -e '/add_subdirectory(i18n)/d' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.endif
|
2011-10-31 14:52:58 +00:00
|
|
|
|
2010-04-25 12:02:16 +00:00
|
|
|
.include <bsd.port.mk>
|