# New ports collection makefile for: kvirc # Date created: 05 January 2004 # Whom: Michael Ranner # # $FreeBSD$ # PORTNAME= kvirc DISTVERSION= 4.0rc1 CATEGORIES= irc kde MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/snapshots/source/ \ http://distfiles.officialunix.com/ PKGNAMESUFFIX= -devel MAINTAINER= ports@FreeBSD.org COMMENT= IRC client for QT4 and KDE4 USE_BZIP2= yes USE_GETTEXT= yes USE_PERL5= 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} INSTALLS_ICONS= yes CONFLICTS= kvirc-3.4.* SVN_REV= 3459 MAN1= kvirc.1 MANLANG= "" de.ISO8859-1 de.UTF-8 it it.ISO8859-1 it.UTF-8 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 .include .if defined(WITH_KDE4) USE_KDE4= kdelibs kdeprefix CMAKE_ARGS+= -DWITH_KDE4=yes .else CMAKE_ARGS+= -DWITHOUT_KDE4=yes .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 # Todo # Add NOPORTDOCS part (include support for doxygen) # If user requires docs # Add in special %%VER%% to pkg-plist # Add in DATADIR instead of share/.. .include