freebsd-ports/irc/kvirc-devel/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

90 lines
2.1 KiB
Makefile

# New ports collection makefile for: kvirc
# Date created: 05 January 2004
# Whom: Michael Ranner
#
# $FreeBSD$
#
PORTNAME= kvirc
DISTVERSION= 4.0rc1
PORTREVISION= 1
CATEGORIES= irc kde
MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/snapshots/source/ \
http://distfiles.officialunix.com/
PKGNAMESUFFIX= -devel
MAINTAINER= chris@officialunix.com
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 <bsd.port.options.mk>
.if defined(WITH_KDE4)
USE_KDE4= kdelibs kdeprefix
CMAKE_ARGS+= -DWITH_KDE4=yes
.else
CMAKE_ARGS+= -DWITHOUT_KDE4=yes
.endif
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>