# New ports collection makefile for: kvirc # Date created: 05 January 2004 # Whom: Michael Ranner # # $FreeBSD$ # PORTNAME= kvirc DISTVERSION= 4.0rc3 PORTREVISION= 1 CATEGORIES= irc kde MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/snapshots/source/ \ http://distfiles.officialunix.com/ PKGNAMESUFFIX= -devel MAINTAINER= makc@FreeBSD.org COMMENT= IRC client for QT4 and KDE4 FORBIDDEN= multiple vulnerabilities USE_BZIP2= yes USE_GETTEXT= yes USE_QT_VER= 4 QT_COMPONENTS= moc_build qmake_build rcc_build uic_build \ dbus webkit gui network sql xml USE_CMAKE= yes CMAKE_ARGS= -DWITHOUT_ESD=yes -DWITHOUT_DOXYGEN=yes \ -DMANUAL_REVISION=${SVN_REV} -DMANDIR=${MANPREFIX} INSTALLS_ICONS= yes CONFLICTS= kvirc-3.4.* # Fixes certain issues when installing/configuring SVN_REV= 4255 MAN1= kvirc.1 MANLANG= "" de it OPTIONS= AUDIOFILE "Compile with libaudiofile dependency" on \ DEBUG "Compile with debug support" off \ GSM "Compile with gsm support" off \ KDE4 "Compile with KDE4 support" off \ PHONON "Compile with phonon support" on \ PYTHON "Compile support for python" off \ PERL "Compile support for perl" on .include .if defined(WITH_KDE4) USE_KDE4= kdelibs kdeprefix CMAKE_ARGS+= -DWITH_KDE4=yes .else CMAKE_ARGS+= -DWITHOUT_KDE4=yes .endif .if defined(WITH_PYTHON) USE_PYTHON= yes CMAKE_ARGS+= -DWITH_PYTHON=yes PLIST_SUB+= PYTHONMOD="" .else CMAKE_ARGS+= -DWITHOUT_PYTHON=yes PLIST_SUB+= PYTHONMOD="@comment " .endif .if defined(WITH_PERL) USE_PERL5= yes CMAKE_ARGS+= -DWITH_PERL=yes PLIST_SUB+= PERLMOD="" .else CMAKE_ARGS+= -DWITHOUT_PERL=yes PLIST_SUB+= PERLMOD="@comment " .endif .include .if ${OSVERSION}<700042 CMAKE_USE_PTHREAD= yes .endif .if defined(WITH_AUDIOFILE) LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile .else CMAKE_ARGS+= -DWITHOUT_AUDIOFILE=yes .endif .if defined(WITH_DEBUG) CMAKE_ARGS+= -DDEBUG=yes -DVERBOSE=yes .endif .if defined(WITH_GSM) LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm .else CMAKE_ARGS+= -DWITHOUT_GSM=yes .endif .if defined(WITH_PHONON) QT_COMPONENTS+= phonon CMAKE_ARGS+= -DKDE4_LIB_INSTALL_DIR=${KDE4_PREFIX}/lib \ -DKDE4_INCLUDE_INSTALL_DIR=${KDE4_PREFIX}/include .else CMAKE_ARGS+= -DWITHOUT_PHONON=yes .endif post-configure: @${MV} ${WRKSRC}/data/protocols/irc.protocol ${WRKSRC}/data/protocols/kvirc.protocol @${MV} ${WRKSRC}/data/protocols/irc6.protocol ${WRKSRC}/data/protocols/kvirc6.protocol .include