View | Details | Raw Unified | Return to bug 176598
Collapse All | Expand All

(-)./Makefile (-30 / +49 lines)
Lines 1-47 Link Here
1
# New ports collection makefile for:   qterm
1
# Created by: Shen Chuan-Hsing
2
# Date created:                10 Mar 2001
3
# Whom:                        Shen Chuan-Hsing
4
#
5
# $FreeBSD: ports/chinese/qterm/Makefile,v 1.47 2012/12/30 18:55:41 svnexp Exp $
2
# $FreeBSD: ports/chinese/qterm/Makefile,v 1.47 2012/12/30 18:55:41 svnexp Exp $
6
#
7
3
8
PORTNAME=	qterm
4
PORTNAME=	qterm
9
PORTVERSION=	0.4.1
5
PORTVERSION=	0.5.12
10
PORTREVISION=	8
11
CATEGORIES=	chinese
6
CATEGORIES=	chinese
12
MASTER_SITES=	 SF/qterm/qterm/${PORTVERSION}
7
MASTER_SITES=	SF/qterm/qterm/${PORTVERSION}
13
8
14
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	kaiwang27@gmail.com
15
COMMENT=	QTerm is a BBS client for BSD/Linux
10
COMMENT=	QTerm is a BBS client for BSD/Linux
16
11
17
DEPRECATED=	Depends on QT3; unmaintained
12
USE_XORG=	x11 ice
18
EXPIRATION_DATE=	2013-07-01
19
20
USE_XORG=	x11 ice xext xt xaw xpm xi xproto xextproto
21
USE_BZIP2=	yes
13
USE_BZIP2=	yes
22
USE_PERL5_BUILD=yes
14
USE_PERL5_BUILD=yes
23
USE_QT_VER=	3
15
USE_KDE4=	automoc4
24
HAS_CONFIGURE=	yes
16
USE_QT4=	codecs-cn codecs-tw gui help-tools linguist moc_build \
25
CONFIGURE_ARGS=	--enable-mt --prefix=${PREFIX}
17
		network qmake_build rcc_build uic_build xml
18
USE_CMAKE=	yes
19
CMAKE_ARGS=	-DCMAKE_INSTALL_PREFIX="${PREFIX}"
20
MAKE_JOBS_SAFE=	yes
21
USE_LDCONFIG=	yes
22
INSTALLS_ICONS=	yes
23
24
CXXFLAGS+=	-I${LOCALBASE}/include
26
LDFLAGS+=	-L${LOCALBASE}/lib
25
LDFLAGS+=	-L${LOCALBASE}/lib
27
26
28
.if !defined(WITHOUT_PYTHON)
27
OPTIONS_DEFINE=	SSH DBUS PHONON QTSCRIPT
29
USE_PYTHON=	2.5+
28
30
CONFIGURE_ARGS+=	--with-pythondir=${LOCALBASE}
29
SSH_DESC=	SSH support
30
DBUS_DESC=	DBus support
31
PHONON_DESC=	Phonon support
32
QTSCRIPT_DESC=	QtScript Binding support
33
34
OPTIONS_DEFAULT=	SSH DBUS PHONON QTSCRIPT
35
36
.include <bsd.port.options.mk>
37
38
.if ${PORT_OPTIONS:MSSH}
39
CMAKE_ARGS+=	-DQTERM_ENABLE_SSH:BOOL=TRUE
40
.else
41
CMAKE_ARGS+=	-DQTERM_ENABLE_SSH:BOOL=FALSE
42
.endif
43
44
.if ${PORT_OPTIONS:MDBUS}
45
USE_QT4+=	dbus
46
CMAKE_ARGS+=	-DQTERM_ENABLE_DBUS:BOOL=TRUE
47
.else
48
CMAKE_ARGS+=	-DQTERM_ENABLE_DBUS:BOOL=FALSE
31
.endif
49
.endif
32
50
33
pre-everything::
51
.if ${PORT_OPTIONS:MPHONON}
34
.if !defined(WITHOUT_PYTHON)
52
USE_QT4+=	phonon
35
	@${ECHO_MSG} "Define WITHOUT_PYTHON to disable Python scripts support."
53
CMAKE_ARGS+=	-DQTERM_ENABLE_PHONON:BOOL=TRUE
54
.else
55
CMAKE_ARGS+=	-DQTERM_ENABLE_PHONON:BOOL=FALSE
36
.endif
56
.endif
37
57
38
post-patch:
58
.if ${PORT_OPTIONS:MQTSCRIPT}
39
	@${REINPLACE_CMD} -e 's,-lssl,-lssl -lcrypto,' \
59
USE_QT4+=	script
40
		${WRKSRC}/configure
60
RUN_DEPENDS+=	${LOCALBASE}/lib/qt4/plugins/script/libqtscript_core.so:${PORTSDIR}/devel/qtscriptgenerator
41
61
CMAKE_ARGS+=	-DQTERM_ENABLE_SCRIPT:BOOL=TRUE
42
post-install:
62
.else
43
	@${CHMOD} +w ${DATADIR}/qterm.cfg
63
CMAKE_ARGS+=	-DQTERM_ENABLE_SCRIPT:BOOL=FALSE
44
	@${CHMOD} +w ${DATADIR}/address.cfg
64
.endif
45
	@${CAT} ${PKGMESSAGE}
46
65
47
.include <bsd.port.mk>
66
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (qterm-0.4.1.tar.bz2) = 60c19303bc2eba11273607ae8711f0eecbd0d94b7dd2773cde128338aa5149a1
1
SHA256 (qterm-0.5.12.tar.bz2) = bd31051a6c117b05fef3ea163480143837c57632a84eab43e8e142860bcab22a
2
SIZE (qterm-0.4.1.tar.bz2) = 744822
2
SIZE (qterm-0.5.12.tar.bz2) = 749254
(-)./files/patch-CMakeLists.txt (+18 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2011-03-03 05:25:49.000000000 +0100
2
+++ CMakeLists.txt	2013-03-01 23:32:47.000000000 +0100
3
@@ -1,13 +1,13 @@
4
 project(qterm)
5
 include(CTest)
6
 cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR)
7
-set(QT_MIN_VERSION "4.5.0")
8
 set(QTERM_VERSION_MAJOR 0)
9
 set(QTERM_VERSION_MINOR 5)
10
 set(QTERM_VERSION_RELEASE 12)
11
 set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" )
12
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
13
-find_package(Qt4 REQUIRED)
14
+set(CMAKE_C_FLAGS "-O0")
15
+find_package(Qt4 4.5.0 REQUIRED)
16
 find_package(KDE4)
17
 
18
 IF(WIN32 AND MSVC)
(-)./files/patch-qterm-main.cpp (-18 lines)
Lines 1-18 Link Here
1
--- qterm/main.cpp.orig	Mon Jul 10 15:36:13 2006
2
+++ qterm/main.cpp	Thu Jul 27 17:55:53 2006
3
@@ -16,6 +16,15 @@
4
 #ifdef HAVE_PYTHON
5
 #include <Python.h>
6
 #endif
7
+
8
+#undef isalnum
9
+#undef isalpha
10
+#undef islower
11
+#undef isspace
12
+#undef isupper
13
+#undef tolower
14
+#undef toupper
15
+
16
 #include <qpixmap.h>
17
 #include <qstringlist.h>
18
 #include <qapplication.h>
(-)./files/patch-qterm-qtermwindow.h (-17 lines)
Lines 1-17 Link Here
1
--- qterm/qtermwindow.h.orig	Mon Jul 10 15:36:12 2006
2
+++ qterm/qtermwindow.h	Thu Jul 27 17:39:46 2006
3
@@ -10,6 +10,14 @@
4
 #include <Python.h>
5
 #endif
6
 
7
+#undef isalnum
8
+#undef isalpha
9
+#undef islower
10
+#undef isspace
11
+#undef isupper
12
+#undef tolower
13
+#undef toupper
14
+
15
 #include <qmainwindow.h>
16
 #include <qcursor.h>
17
 
(-)./pkg-message (-13 lines)
Lines 1-13 Link Here
1
*************************************************************************
2
		To display IP location when using QTerm
3
you must get file "QQWry.dat" and put it into your ~/.qterm directory
4
*************************************************************************
5
6
*************************************************************************
7
Unfortunately there is an anonying bug in the release of QTerm 0.4.0. If 
8
your language setting is NOT English, you might experience some hang up 
9
when connecting to a site.
10
11
A simple workaround is to use the English interface. This bug will be fixed
12
in the next minor release.
13
*************************************************************************
(-)./pkg-plist (-54 / +45 lines)
Lines 1-64 Link Here
1
bin/qterm
1
bin/qterm
2
share/applications/qterm.desktop
2
share/applications/qterm.desktop
3
share/icons/qterm.png
3
share/icons/hicolor/128x128/apps/qterm.png
4
%%DATADIR%%/address.cfg
4
share/icons/hicolor/16x16/apps/qterm.png
5
share/icons/hicolor/22x22/apps/qterm.png
6
share/icons/hicolor/32x32/apps/qterm.png
7
share/icons/hicolor/48x48/apps/qterm.png
8
share/icons/hicolor/64x64/apps/qterm.png
9
%%DATADIR%%/address.xml
5
%%DATADIR%%/credits
10
%%DATADIR%%/credits
6
%%DATADIR%%/cursor/end.xpm
11
%%DATADIR%%/doc/qterm.qhc
7
%%DATADIR%%/cursor/enter.xpm
12
%%DATADIR%%/keyboard_profiles/default.keytab
8
%%DATADIR%%/cursor/exit.xpm
13
%%DATADIR%%/keyboard_profiles/linux.keytab
9
%%DATADIR%%/cursor/hand.xpm
14
%%DATADIR%%/keyboard_profiles/solaris.keytab
10
%%DATADIR%%/cursor/home.xpm
15
%%DATADIR%%/keyboard_profiles/vt420pc.keytab
11
%%DATADIR%%/cursor/next.xpm
12
%%DATADIR%%/cursor/pagedown.xpm
13
%%DATADIR%%/cursor/pageup.xpm
14
%%DATADIR%%/cursor/prev.xpm
15
%%DATADIR%%/pic/addr.png
16
%%DATADIR%%/pic/anti-idle.png
17
%%DATADIR%%/pic/article.png
18
%%DATADIR%%/pic/auto-reply.png
19
%%DATADIR%%/pic/color-copy.png
20
%%DATADIR%%/pic/color.png
21
%%DATADIR%%/pic/connect.png
22
%%DATADIR%%/pic/copy.png
23
%%DATADIR%%/pic/disconnect.png
24
%%DATADIR%%/pic/fonts.png
25
%%DATADIR%%/pic/keys.png
26
%%DATADIR%%/pic/message.png
27
%%DATADIR%%/pic/messagebox_critical.png
28
%%DATADIR%%/pic/messagebox_info.png
29
%%DATADIR%%/pic/messagebox_warning.png
30
%%DATADIR%%/pic/mouse.png
31
%%DATADIR%%/pic/paste.png
32
%%DATADIR%%/pic/popwidget.png
33
%%DATADIR%%/pic/pref.png
34
%%DATADIR%%/pic/qterm_32x32.png
35
%%DATADIR%%/pic/qterm_48x48.png
36
%%DATADIR%%/pic/qterm_tray.png
37
%%DATADIR%%/pic/quick.png
38
%%DATADIR%%/pic/reconnect.png
39
%%DATADIR%%/pic/rect.png
40
%%DATADIR%%/pic/refresh.png
41
%%DATADIR%%/pic/shadow.png
42
%%DATADIR%%/pic/sound.png
43
%%DATADIR%%/pic/tabpad.png
44
%%DATADIR%%/po/qterm_chs.qm
16
%%DATADIR%%/po/qterm_chs.qm
45
%%DATADIR%%/po/qterm_cht.qm
17
%%DATADIR%%/po/qterm_cht.qm
46
%%DATADIR%%/qterm.cfg
18
%%DATADIR%%/qterm.cfg
47
%%DATADIR%%/schema/Linux.schema
19
%%DATADIR%%/scheme/Linux.scheme
48
%%DATADIR%%/schema/Softness.schema
20
%%DATADIR%%/scheme/Softness.scheme
49
%%DATADIR%%/schema/VIM.schema
21
%%DATADIR%%/scheme/VIM.scheme
50
%%DATADIR%%/schema/XTerm.schema
22
%%DATADIR%%/scheme/XTerm.scheme
51
%%DATADIR%%/schema/default.schema
23
%%DATADIR%%/scheme/default.scheme
52
%%DATADIR%%/script/continuous.py
24
%%DATADIR%%/scripts/article.js
53
%%DATADIR%%/script/download.py
25
%%DATADIR%%/scripts/console.js
54
%%DATADIR%%/script/sendmsg.py
26
%%DATADIR%%/scripts/google.js
55
%%DATADIR%%/script/system.py
27
%%DATADIR%%/scripts/highlight.js
56
%%DATADIR%%/script/tools.py
28
%%DATADIR%%/scripts/ptt.js
57
@dirrm %%DATADIR%%/script
29
%%DATADIR%%/scripts/senddelay.js
58
@dirrm %%DATADIR%%/schema
30
%%DATADIR%%/scripts/smth.js
31
%%DATADIR%%/scripts/ui/senddelay.ui
32
%%DATADIR%%/scripts/utils.js
33
%%DATADIR%%/scripts/websnap.js
34
@dirrm %%DATADIR%%/scripts/ui
35
@dirrm %%DATADIR%%/scripts
36
@dirrm %%DATADIR%%/scheme
59
@dirrm %%DATADIR%%/po
37
@dirrm %%DATADIR%%/po
60
@dirrm %%DATADIR%%/pic
38
@dirrm %%DATADIR%%/keyboard_profiles
61
@dirrm %%DATADIR%%/cursor
39
@dirrm %%DATADIR%%/doc
62
@dirrm %%DATADIR%%
40
@dirrm %%DATADIR%%
41
@dirrmtry share/icons/hicolor/64x64/apps
42
@dirrmtry share/icons/hicolor/64x64
43
@dirrmtry share/icons/hicolor/48x48/apps
44
@dirrmtry share/icons/hicolor/48x48
45
@dirrmtry share/icons/hicolor/32x32/apps
46
@dirrmtry share/icons/hicolor/32x32
47
@dirrmtry share/icons/hicolor/22x22/apps
48
@dirrmtry share/icons/hicolor/22x22
49
@dirrmtry share/icons/hicolor/16x16/apps
50
@dirrmtry share/icons/hicolor/16x16
51
@dirrmtry share/icons/hicolor/128x128/apps
52
@dirrmtry share/icons/hicolor/128x128
53
@dirrmtry share/icons/hicolor
63
@dirrmtry share/icons
54
@dirrmtry share/icons
64
@dirrmtry share/applications
55
@dirrmtry share/applications

Return to bug 176598