1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Update to 4.0.0

Build with KDE4 support
This commit is contained in:
Max Brazhnikov 2010-07-17 19:16:14 +00:00
parent a40146c7d1
commit a46667fa7d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257896
8 changed files with 2283 additions and 2491 deletions

View File

@ -6,72 +6,120 @@
#
PORTNAME= kvirc
PORTVERSION= 3.4.2
PORTREVISION= 4
PORTVERSION= 4.0.0
CATEGORIES= irc kde
MASTER_SITES= ftp://ftp.kvirc.de/pub/kvirc/${PORTVERSION}/source/ \
ftp://ftp.kvirc.de/pub/%SUBDIR%/ \
http://kvirc.gmake.de/pub/%SUBDIR%/ \
LOCAL/beech
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}/source
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 QT and KDE
COMMENT?= IRC client for KDE4
FORBIDDEN= multiple vulnerabilities
.if !defined(PKGNAMESUFFIX)
CONFLICTS= kvirc-qt4-4.*
.endif
USE_AUTOTOOLS= libtool:22
USE_BZIP2= yes
USE_KDELIBS_VER=3
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_GETTEXT= yes
USE_OPENSSL= yes
USE_PERL5_BUILD= yes
USE_QT_VER= 4
QT_COMPONENTS= moc_build qmake_build rcc_build uic_build \
dbus gui network sql xml
USE_CMAKE= yes
CMAKE_ARGS= -DWITHOUT_ESD=yes -DWITHOUT_DOXYGEN=yes \
-DMANDIR=${MANPREFIX}
INSTALLS_ICONS= yes
PLIST_SUB= VER=${PORTVERSION}
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
MAN1= kvirc.1
MAN1= kvirc.1
MANLANG= "" de it
OPTIONS= ARTS "Compile with arts support" on \
AUDIOFILE "Compile with libaudiofile support" on \
ESOUND "Compile with esound support" off \
GSM "Compile with gsm support" off
.include <bsd.port.pre.mk>
.if defined(WITH_ARTS)
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
.else
CONFIGURE_ARGS+= --without-arts-support
OPTIONS= AUDIOFILE "Support for various audio formats" off \
DEBUG "Build with debug support" off \
GSM "u-law to gsm audio converter support" off \
PERL "Perl scripting support" off \
PYTHON "Python scripting support" off
.if defined(PKGNAMESUFFIX)
OPTIONS+= PHONON "Build with Phonon support" off \
WEBKIT "Build with QtWebkit support" off
.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 defined(WITH_PHONON)
QT_COMPONENTS+= phonon
. else
CMAKE_ARGS+= -DWITHOUT_PHONON=yes
. endif
. if defined(WITH_WEBKIT)
QT_COMPONENTS+= webkit
. else
CMAKE_ARGS+= -DWITHOUT_QTWEBKIT=yes
. endif
.else #defined(PKGNAMESUFFIX)
USE_KDE4= kdelibs automoc4 kdeprefix
PLIST_SUB+= QT="@comment " KDE=""
.endif #defined(PKGNAMESUFFIX)
.if defined(WITH_DEBUG)
CMAKE_ARGS+= -DWITH_DEBUG -DVERBOSE=yes
.endif
#audio support
.if defined(WITH_AUDIOFILE)
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+= --without-af-support
.endif
.if defined(WITH_ESOUND)
LIB_DEPENDS+= esd.2:${PORTSDIR}/audio/esound
.else
CONFIGURE_ARGS+= --without-esd-support
CMAKE_ARGS+= -DWITHOUT_AUDIOFILE=yes
.endif
.if defined(WITH_GSM)
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
.else
CONFIGURE_ARGS+= --without-gsm
CMAKE_ARGS+= -DWITHOUT_GSM=yes
.endif
post-patch:
${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" \
-e "s,.SS_KDE_GENERAL_DIR/share/icons,${PREFIX}/share/icons," \
-e "s,.SS_KDE_GENERAL_DIR/share/applnk,${PREFIX}/share/applnk," \
-e "s,.SS_KDE_GENERAL_DIR/share/mimelnk,${PREFIX}/share/mimelnk," \
-e "s,kdeservicesdir=\".SS_KDE_SERVICESDIR\",kdeservicesdir=\"${PREFIX}/share/services\"," \
-e "s,%%LTMAIN%%,${LTMAIN}," \
${WRKSRC}/configure
post-configure:
@${MV} ${WRKSRC}/data/protocols/irc.protocol ${WRKSRC}/data/protocols/kvirc.protocol
@${MV} ${WRKSRC}/data/protocols/irc6.protocol ${WRKSRC}/data/protocols/kvirc6.protocol
#scripting support
.if defined(WITH_PYTHON)
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
.else
CMAKE_ARGS+= -DWITHOUT_PYTHON=yes
PLIST_SUB+= PYTHON="@comment "
.endif
.if defined(WITH_PERL)
USE_PERL5_RUN= yes
PLIST_SUB+= PERL=""
.else
CMAKE_ARGS+= -DWITHOUT_PERL=yes
PLIST_SUB+= PERL="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION}<700042
CMAKE_USE_PTHREAD= yes
.endif
.if defined(WITH_PERL)
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.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (kvirc-3.4.2.tar.bz2) = cc1839c54f6c1bf9a15e169f3213a0a7
SHA256 (kvirc-3.4.2.tar.bz2) = 7335bda4c646d70aee1bd565a678a7a2af379313e48d5c81e3a063775a351a33
SIZE (kvirc-3.4.2.tar.bz2) = 5421405
MD5 (kvirc-4.0.0.tar.bz2) = 8fafe420551c273e684236fd4e396af5
SHA256 (kvirc-4.0.0.tar.bz2) = 23f79a54dab00b8f2669c1c28eca7169eb10ace06e63a2da90e2b74772249ed6
SIZE (kvirc-4.0.0.tar.bz2) = 5257838

View File

@ -1,10 +0,0 @@
--- data/protocols/Makefile.am.bak Wed Feb 15 10:30:27 2006
+++ data/protocols/Makefile.am Sun Aug 3 21:33:44 2003
@@ -4,6 +4,6 @@
tmpdir = $(kdeservicesdir)
+tmp_DATA = kvirc.protocol kvirc6.protocol
-tmp_DATA = irc.protocol irc6.protocol
EXTRA_DIST = $(tmp_DATA)

View File

@ -1,11 +0,0 @@
--- data/protocols/Makefile.in.orig 2008-03-12 18:28:40.000000000 -0800
+++ data/protocols/Makefile.in 2008-06-30 12:04:08.000000000 -0800
@@ -215,7 +215,7 @@
top_srcdir = @top_srcdir@
topdir = @topdir@
tmpdir = $(kdeservicesdir)
-tmp_DATA = irc.protocol irc6.protocol
+tmp_DATA = kvirc.protocol kvirc6.protocol
EXTRA_DIST = $(tmp_DATA)
all: all-am

View File

@ -1,29 +0,0 @@
--- configure.orig 2008-03-12 18:29:00.000000000 -0800
+++ configure 2008-06-30 12:21:03.000000000 -0800
@@ -20761,7 +20761,7 @@
# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+LIBTOOL_DEPS="--disable-ltlibs %%LTMAIN%%"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -26694,7 +26694,7 @@
else
{ echo "$as_me:$LINENO: result: no..using lpthread" >&5
echo "${ECHO_T}no..using lpthread" >&6; }
- SS_THREAD_LIBLINK="-lpthread"
+ SS_THREAD_LIBLINK="-pthread"
cat >>confdefs.h <<\_ACEOF
#define COMPILE_THREADS_USE_POSIX 1
@@ -28452,7 +28452,7 @@
# Set the X include and lib dir
SS_X_INCDIR="$x_includes"
SS_X_LIBDIR="$x_libraries"
- SS_X_LIBLINK="-lX11 -lXext"
+ SS_X_LIBLINK="-lX11 -lXext -pthread"
if test -z "$SS_X_INCDIR"; then
# Ops... X headers not found ?

View File

@ -1,11 +0,0 @@
--- src/modules/notifier/notifierwindowtabs.cpp.orig Sun Apr 17 00:58:15 2005
+++ src/modules/notifier/notifierwindowtabs.cpp Sun Apr 17 00:58:36 2005
@@ -228,7 +228,7 @@
void KviNotifierWindowTabs::addMessage(KviWindow * pWnd, KviNotifierMessage * message)
{
- QString sender = pWnd ? pWnd->windowName() : "----";
+ QString sender = pWnd ? pWnd->windowName() : (QString)"----";
// Qui servirebbe anche una lista... perche' quando si inserisce
// un tab lui lo piazza dove gli pare nell'ordine

View File

@ -1,5 +1,3 @@
A powerful Internet Relay Chat client designed for UNIX platforms.
It is distributed as Free Software under the terms of the GNU
General Public License.
KVIrc is a free portable IRC client based on the Qt GUI toolkit.
WWW: http://www.kvirc.net
WWW: http://www.kvirc.net

File diff suppressed because it is too large Load Diff