7678193c3d
- Convert WITH_DEBUG to new options framework - Trim Makefile header - Adjust COMMENTs - Reformat/update description [1] See follow-up discussion: http://lists.freebsd.org/pipermail/svn-ports-head/2013-March/016094.html
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
# Created by: Jonathan Chen <jonc@chen.org.nz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= psi
|
|
PORTVERSION= 0.15
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= SF/${PORTNAME}/Psi/${PORTVERSION}
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
COMMENT= Qt 4 based Jabber client
|
|
|
|
LIB_DEPENDS= qca.2:${PORTSDIR}/devel/qca
|
|
RUN_DEPENDS= qca-ossl>=2.0.0.b3:${PORTSDIR}/security/qca-ossl \
|
|
qca-gnupg>=2.0.0.b3:${PORTSDIR}/security/qca-gnupg
|
|
|
|
HAS_CONFIGURE= yes
|
|
QT_NONSTANDARD= yes
|
|
USES= pkgconfig
|
|
USE_BZIP2= yes
|
|
USE_QT4= gui network xml imageformats_run \
|
|
qmake_build moc_build rcc_build uic_build
|
|
USE_XORG= xscrnsaver
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --qtdir=${LOCALBASE} \
|
|
--disable-growl --verbose
|
|
CONFIGURE_ENV= QMAKEFLAGS='${QMAKEFLAGS}'
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
OPTIONS_DEFINE= ASPELL ENCHANT DBUS DEBUG
|
|
OPTIONS_DEFAULT= ASPELL DBUS
|
|
|
|
ASPELL_DESC= Use aspell for spell checking
|
|
ENCHANT_DESC= Use Enchant for spell checking
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CONFIGURE_ARGS+= --debug
|
|
PLIST_SUB+= DEBUG=""
|
|
.else
|
|
CONFIGURE_ARGS+= --release --no-separate-debug-info
|
|
PLIST_SUB+= DEBUG="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDBUS}
|
|
USE_QT4+= dbus
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-qdbus
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MASPELL}
|
|
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
|
|
CONFIGURE_ARGS+= --with-aspell-inc=${LOCALBASE}/include \
|
|
--with-aspell-lib=${LOCALBASE}/lib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-aspell
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MENCHANT}
|
|
LIB_DEPENDS+= enchant.1:${PORTSDIR}/textproc/enchant
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-enchant
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${PREFIX}/bin/psi
|
|
|
|
.include <bsd.port.mk>
|