mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
d7ba8fc7c1
deprecated and will be removed along with switching KDE4_PREFIX to ${LOCALBASE} soon.
114 lines
2.7 KiB
Makefile
114 lines
2.7 KiB
Makefile
# Created by: Michael Ranner
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kvirc
|
|
PORTVERSION= 4.2.0
|
|
CATEGORIES= irc kde
|
|
MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/%SUBDIR%/ \
|
|
http://kvirc.gmake.de/pub/kvirc/%SUBDIR%/ \
|
|
http://kvirc-ftp.visualscripts.com/%SUBDIR%/ \
|
|
ftp://dedimarbo.ath.cx/pub/kvirc/%SUBDIR%/ \
|
|
ftp://kvirc.eban-meban.com/%SUBDIR%/ \
|
|
http://kvirc.tradebit.com/%SUBDIR%/ \
|
|
http://kvirc.imsam.info/%SUBDIR%/ \
|
|
http://kvirc.bcoos.net/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}/source
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
COMMENT?= IRC client for KDE 4
|
|
|
|
.if !defined(PKGNAMESUFFIX)
|
|
CONFLICTS_INSTALL= kvirc-qt4-4.*
|
|
.endif
|
|
|
|
USE_BZIP2= yes
|
|
USE_OPENSSL= yes
|
|
USE_PERL5= build
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build \
|
|
dbus gui network sql xml
|
|
USES= cmake gettext perl5
|
|
CMAKE_ARGS= -DWANT_ESD=no -DWANT_DOXYGEN=no \
|
|
-DMANDIR=${MANPREFIX}
|
|
INSTALLS_ICONS= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= AUDIOFILE GSM PERL PYTHON DEBUG
|
|
|
|
AUDIOFILE_DESC= Support for various audio formats
|
|
GSM_DESC= u-law to gsm audio converter support
|
|
PERL_DESC= Perl scripting support
|
|
PYTHON_DESC= Python scripting support
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
OPTIONS_DEFINE+= PHONON WEBKIT
|
|
PHONON_DESC= Build with Phonon support
|
|
WEBKIT_DESC= Build with QtWebkit support
|
|
.endif
|
|
|
|
PLIST_SUB+= VER="${PORTVERSION:R}"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(PKGNAMESUFFIX)
|
|
CMAKE_ARGS+= -DWITHOUT_KDE4=yes
|
|
PLIST_SUB+= QT="" KDE="@comment "
|
|
. if ${PORT_OPTIONS:MPHONON}
|
|
USE_QT4+= phonon
|
|
. else
|
|
CMAKE_ARGS+= -DWITHOUT_PHONON=yes
|
|
. endif
|
|
. if ${PORT_OPTIONS:MWEBKIT}
|
|
USE_QT4+= webkit
|
|
. else
|
|
CMAKE_ARGS+= -DWITHOUT_QTWEBKIT=yes
|
|
. endif
|
|
.else #defined(PKGNAMESUFFIX)
|
|
USES+= shared-mime-info
|
|
USE_KDE4= kdelibs automoc4 kdeprefix
|
|
PLIST_SUB+= QT="@comment " KDE=""
|
|
.endif #defined(PKGNAMESUFFIX)
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CMAKE_ARGS+= -DWITH_DEBUG=yes -DVERBOSE=yes
|
|
.endif
|
|
|
|
#audio support
|
|
.if ${PORT_OPTIONS:MAUDIOFILE}
|
|
LIB_DEPENDS+= libaudiofile.so:${PORTSDIR}/audio/libaudiofile
|
|
.else
|
|
CMAKE_ARGS+= -DWITHOUT_AUDIOFILE=yes
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGSM}
|
|
LIB_DEPENDS+= libgsm.so:${PORTSDIR}/audio/gsm
|
|
.else
|
|
CMAKE_ARGS+= -DWANT_GSM=no
|
|
.endif
|
|
|
|
#scripting support
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
USE_PYTHON= yes
|
|
PLIST_SUB+= PYTHON=""
|
|
.else
|
|
CMAKE_ARGS+= -DWANT_PYTHON=no
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
|
USE_PERL5+= run
|
|
PLIST_SUB+= PERL=""
|
|
.else
|
|
CMAKE_ARGS+= -DWANT_PERL=no
|
|
PLIST_SUB+= PERL="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
|
pre-everything::
|
|
@${ECHO_CMD} "====================================================="
|
|
@${ECHO_CMD} " To enable perl scripting you need to rebuild"
|
|
@${ECHO_CMD} " perl with multiplicity support!"
|
|
@${ECHO_CMD} "====================================================="
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|