summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-23 03:33:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-23 03:33:20 +0000
commit8a633b59afd4f481baf50e14c9eaea961d0b059d (patch)
treeba3d8fc4ef411364895e27cef3859d94aa23ac9d
parentNew port: misc/bibletime (diff)
New port: misc/bibletime
BibleTime is a powerful Bible study application for the K Desktop Environment running on Unix operating systems. BibleTime is based on the Sword library which provides access to all the different text modules created by the Crosswire Bible Society. PR: ports/34981 Submitted by: Willem van Engen <wvengen+port@stack.nl>
-rw-r--r--misc/Makefile1
-rw-r--r--misc/bibletime-devel/Makefile33
-rw-r--r--misc/bibletime-devel/distinfo1
-rw-r--r--misc/bibletime-devel/files/patch-Makefile.am11
-rw-r--r--misc/bibletime-devel/files/patch-Makefile.in11
-rw-r--r--misc/bibletime-devel/files/patch-admin::ltmain.sh12
-rw-r--r--misc/bibletime-devel/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp13
-rw-r--r--misc/bibletime-devel/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp12
-rw-r--r--misc/bibletime-devel/files/patch-bibletime::printing::cprintdialogpages.cpp20
-rw-r--r--misc/bibletime-devel/pkg-comment1
-rw-r--r--misc/bibletime-devel/pkg-descr13
-rw-r--r--misc/bibletime-devel/pkg-plist105
-rw-r--r--misc/bibletime-kde3/Makefile33
-rw-r--r--misc/bibletime-kde3/distinfo1
-rw-r--r--misc/bibletime-kde3/files/patch-Makefile.am11
-rw-r--r--misc/bibletime-kde3/files/patch-Makefile.in11
-rw-r--r--misc/bibletime-kde3/files/patch-admin::ltmain.sh12
-rw-r--r--misc/bibletime-kde3/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp13
-rw-r--r--misc/bibletime-kde3/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp12
-rw-r--r--misc/bibletime-kde3/files/patch-bibletime::printing::cprintdialogpages.cpp20
-rw-r--r--misc/bibletime-kde3/pkg-comment1
-rw-r--r--misc/bibletime-kde3/pkg-descr13
-rw-r--r--misc/bibletime-kde3/pkg-plist105
-rw-r--r--misc/bibletime-kde4/Makefile33
-rw-r--r--misc/bibletime-kde4/distinfo1
-rw-r--r--misc/bibletime-kde4/files/patch-Makefile.am11
-rw-r--r--misc/bibletime-kde4/files/patch-Makefile.in11
-rw-r--r--misc/bibletime-kde4/files/patch-admin::ltmain.sh12
-rw-r--r--misc/bibletime-kde4/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp13
-rw-r--r--misc/bibletime-kde4/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp12
-rw-r--r--misc/bibletime-kde4/files/patch-bibletime::printing::cprintdialogpages.cpp20
-rw-r--r--misc/bibletime-kde4/pkg-comment1
-rw-r--r--misc/bibletime-kde4/pkg-descr13
-rw-r--r--misc/bibletime-kde4/pkg-plist105
-rw-r--r--misc/bibletime/Makefile33
-rw-r--r--misc/bibletime/distinfo1
-rw-r--r--misc/bibletime/files/patch-Makefile.am11
-rw-r--r--misc/bibletime/files/patch-Makefile.in11
-rw-r--r--misc/bibletime/files/patch-admin::ltmain.sh12
-rw-r--r--misc/bibletime/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp13
-rw-r--r--misc/bibletime/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp12
-rw-r--r--misc/bibletime/files/patch-bibletime::printing::cprintdialogpages.cpp20
-rw-r--r--misc/bibletime/pkg-comment1
-rw-r--r--misc/bibletime/pkg-descr13
-rw-r--r--misc/bibletime/pkg-plist105
45 files changed, 929 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 74ac4a9d696b..947a78f94a4a 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -20,6 +20,7 @@
SUBDIR += bbjd
SUBDIR += bestfit
SUBDIR += biblereader
+ SUBDIR += bibletime
SUBDIR += bibletime-doc
SUBDIR += bidwatcher
SUBDIR += birthday
diff --git a/misc/bibletime-devel/Makefile b/misc/bibletime-devel/Makefile
new file mode 100644
index 000000000000..92f5a7ff2c2b
--- /dev/null
+++ b/misc/bibletime-devel/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: bibletime
+# Date created: 3 May 2002
+# Whom: Willem van Engen <wvengen@stack.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bibletime
+PORTVERSION= 1.2.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= wvengen@stack.nl
+
+LIB_DEPENDS= sword.1:${PORTSDIR}/misc/sword
+.if !defined(NOPORTDOCS)
+RUN_DEPENDS= ${LOCALBASE}/share/doc/HTML/en/bibletime:${PORTSDIR}/misc/bibletime-doc
+.endif
+
+USE_KDELIBS_VER=3
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_BZIP2= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+=--program-transform-name="" \
+ --with-sworddir=${PREFIX}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/bibletime/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/misc/bibletime-devel/distinfo b/misc/bibletime-devel/distinfo
new file mode 100644
index 000000000000..d6a2debf325c
--- /dev/null
+++ b/misc/bibletime-devel/distinfo
@@ -0,0 +1 @@
+MD5 (bibletime-1.2.1.tar.bz2) = 48d7d38c216d5fbcb531eb0746dc4875
diff --git a/misc/bibletime-devel/files/patch-Makefile.am b/misc/bibletime-devel/files/patch-Makefile.am
new file mode 100644
index 000000000000..0100057ac34c
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig Fri May 3 11:30:38 2002
++++ Makefile.am Fri May 3 11:32:30 2002
+@@ -32,7 +32,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ MAINTAINERCLEANFILES = configure.files subdirs
+
diff --git a/misc/bibletime-devel/files/patch-Makefile.in b/misc/bibletime-devel/files/patch-Makefile.in
new file mode 100644
index 000000000000..fe46c70fd628
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri May 3 11:30:38 2002
++++ Makefile.in Fri May 3 11:32:25 2002
+@@ -597,7 +597,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ dist-hook:
+ cd $(distdir) && make -f Makefile.cvs
diff --git a/misc/bibletime-devel/files/patch-admin::ltmain.sh b/misc/bibletime-devel/files/patch-admin::ltmain.sh
new file mode 100644
index 000000000000..3938e1b81b69
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-admin::ltmain.sh
@@ -0,0 +1,12 @@
+diff -ruN admin/ltmain.sh admin/ltmain.sh
+--- admin/ltmain.sh Fri Apr 12 13:40:12 2002
++++ admin/ltmain.sh Thu Jun 20 09:51:32 2002
+@@ -1239,7 +1239,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd[0-4]*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
diff --git a/misc/bibletime-devel/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp b/misc/bibletime-devel/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
new file mode 100644
index 000000000000..95477bbb2942
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
@@ -0,0 +1,13 @@
+diff -ruN bibletime/backend/cswordbookmoduleinfo.cpp bibletime/backend/cswordbookmoduleinfo.cpp
+--- bibletime/backend/cswordbookmoduleinfo.cpp Sun Apr 7 01:12:21 2002
++++ bibletime/backend/cswordbookmoduleinfo.cpp Wed Jun 19 17:31:40 2002
+@@ -18,6 +18,9 @@
+ //BibleTime includes
+ #include "cswordbookmoduleinfo.h"
+
++//Other includes
++#include <iostream.h>
++
+ //Sword includes
+ #include <treekeyidx.h>
+ #include <treekey.h>
diff --git a/misc/bibletime-devel/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp b/misc/bibletime-devel/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
new file mode 100644
index 000000000000..209520e81ffa
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
@@ -0,0 +1,12 @@
+diff -ruN bibletime/frontend/searchdialog/csearchdialog.cpp bibletime/frontend/searchdialog/csearchdialog.cpp
+--- bibletime/frontend/searchdialog/csearchdialog.cpp Sat Apr 20 02:25:39 2002
++++ bibletime/frontend/searchdialog/csearchdialog.cpp Thu Jun 20 09:24:54 2002
+@@ -114,7 +114,7 @@
+ }
+
+ void CSearchDialog::setModuleList(ListCSwordModuleInfo& list) {
+- if (m_moduleList != list)
++ if (! (m_moduleList == list) )
+ m_moduleList = list; //copy the items of "list"
+
+ m_moduleChooser->blockSignals(true);
diff --git a/misc/bibletime-devel/files/patch-bibletime::printing::cprintdialogpages.cpp b/misc/bibletime-devel/files/patch-bibletime::printing::cprintdialogpages.cpp
new file mode 100644
index 000000000000..f92537c285fc
--- /dev/null
+++ b/misc/bibletime-devel/files/patch-bibletime::printing::cprintdialogpages.cpp
@@ -0,0 +1,20 @@
+diff -ruN bibletime/printing/cprintdialogpages.cpp bibletime/printing/cprintdialogpages.cpp
+--- bibletime/printing/cprintdialogpages.cpp Fri Apr 12 13:41:32 2002
++++ bibletime/printing/cprintdialogpages.cpp Thu Jun 20 00:24:38 2002
+@@ -54,14 +54,14 @@
+ QGridLayout *gbox = new QGridLayout( group, 4, 2, 5, 5 );
+ gbox->addRowSpacing( 0, group->fontMetrics().height()-5 );
+
+- const QString name[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
++ const QString nname[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
+ for( int i=0; i<4; i++ ) {
+ m_marginSpin[i] = new QSpinBox( group );
+ m_marginSpin[i]->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ m_marginSpin[i]->setMinimumWidth( m_marginSpin[i]->fontMetrics().width("M")*10 );
+ m_marginSpin[i]->setSuffix(" mm");
+
+- QLabel *label = new QLabel( m_marginSpin[i], name[i], group );
++ QLabel *label = new QLabel( m_marginSpin[i], nname[i], group );
+ label->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ label->setFixedWidth( label->sizeHint().width() );
+
diff --git a/misc/bibletime-devel/pkg-comment b/misc/bibletime-devel/pkg-comment
new file mode 100644
index 000000000000..6efe8e10ac7d
--- /dev/null
+++ b/misc/bibletime-devel/pkg-comment
@@ -0,0 +1 @@
+A powerful Bible study application for KDE3
diff --git a/misc/bibletime-devel/pkg-descr b/misc/bibletime-devel/pkg-descr
new file mode 100644
index 000000000000..d73877f626e6
--- /dev/null
+++ b/misc/bibletime-devel/pkg-descr
@@ -0,0 +1,13 @@
+BibleTime is a powerful Bible study application for the K Desktop Environment
+running on Unix operating systems. BibleTime is based on the Sword library
+which provides access to all the different text modules created by the
+Crosswire Bible Society.
+
+Current features are: toolbar, splitted window with index and MDI interface,
+searching in one or more modules supporting regular expressions, graphical
+search analysis, bookmarks, drag & drop, WYSIWYG html editing for comments,
+printing and an extensive help system.
+
+WWW: http://www.bibletime.de/
+
+- Willem van Engen <wvengen@stack.nl>
diff --git a/misc/bibletime-devel/pkg-plist b/misc/bibletime-devel/pkg-plist
new file mode 100644
index 000000000000..5c748b59687d
--- /dev/null
+++ b/misc/bibletime-devel/pkg-plist
@@ -0,0 +1,105 @@
+share/apps/bibletime/printing/bw_muchtext.xml
+share/apps/bibletime/printing/standard.xml
+@unexec rmdir %D/share/apps/bibletime/printing 2>/dev/null || true
+share/apps/bibletime/bibletimeui.rc
+share/apps/bibletime/pics/startuplogo.png
+@unexec rmdir %D/share/apps/bibletime/pics 2>/dev/null || true
+@unexec rmdir %D/share/apps/bibletime 2>/dev/null || true
+@unexec rmdir %D/share/apps 2>/dev/null || true
+share/icons/hicolor/16x16/actions/bt_bible.png
+share/icons/hicolor/16x16/actions/bt_bible_add.png
+share/icons/hicolor/16x16/actions/bt_bible_locked.png
+share/icons/hicolor/16x16/actions/bt_book.png
+share/icons/hicolor/16x16/actions/bt_book_add.png
+share/icons/hicolor/16x16/actions/bt_book_locked.png
+share/icons/hicolor/16x16/actions/bt_cascade.png
+share/icons/hicolor/16x16/actions/bt_cascade_auto.png
+share/icons/hicolor/16x16/actions/bt_commentary.png
+share/icons/hicolor/16x16/actions/bt_commentary_add.png
+share/icons/hicolor/16x16/actions/bt_commentary_locked.png
+share/icons/hicolor/16x16/actions/bt_displayconfig.png
+share/icons/hicolor/16x16/actions/bt_lexicon.png
+share/icons/hicolor/16x16/actions/bt_lexicon_add.png
+share/icons/hicolor/16x16/actions/bt_lexicon_locked.png
+share/icons/hicolor/16x16/actions/bt_startconfig.png
+share/icons/hicolor/16x16/actions/bt_swordconfig.png
+share/icons/hicolor/16x16/actions/bt_sync.png
+share/icons/hicolor/16x16/actions/bt_tile.png
+share/icons/hicolor/16x16/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/16x16/actions 2>/dev/null || true
+share/icons/hicolor/16x16/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true
+share/icons/hicolor/22x22/actions/bt_bible.png
+share/icons/hicolor/22x22/actions/bt_bible_add.png
+share/icons/hicolor/22x22/actions/bt_bible_locked.png
+share/icons/hicolor/22x22/actions/bt_book.png
+share/icons/hicolor/22x22/actions/bt_book_add.png
+share/icons/hicolor/22x22/actions/bt_book_locked.png
+share/icons/hicolor/22x22/actions/bt_cascade.png
+share/icons/hicolor/22x22/actions/bt_cascade_auto.png
+share/icons/hicolor/22x22/actions/bt_commentary.png
+share/icons/hicolor/22x22/actions/bt_commentary_add.png
+share/icons/hicolor/22x22/actions/bt_commentary_locked.png
+share/icons/hicolor/22x22/actions/bt_displayconfig.png
+share/icons/hicolor/22x22/actions/bt_lexicon.png
+share/icons/hicolor/22x22/actions/bt_lexicon_add.png
+share/icons/hicolor/22x22/actions/bt_lexicon_locked.png
+share/icons/hicolor/22x22/actions/bt_parallel.png
+share/icons/hicolor/22x22/actions/bt_startconfig.png
+share/icons/hicolor/22x22/actions/bt_sync.png
+share/icons/hicolor/22x22/actions/bt_swordconfig.png
+share/icons/hicolor/22x22/actions/bt_tile.png
+share/icons/hicolor/22x22/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/22x22/actions 2>/dev/null || true
+share/icons/hicolor/22x22/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/22x22/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/22x22 2>/dev/null || true
+share/icons/hicolor/32x32/actions/bt_bible.png
+share/icons/hicolor/32x32/actions/bt_bible_add.png
+share/icons/hicolor/32x32/actions/bt_book.png
+share/icons/hicolor/32x32/actions/bt_book_add.png
+share/icons/hicolor/32x32/actions/bt_cascade.png
+share/icons/hicolor/32x32/actions/bt_cascade_auto.png
+share/icons/hicolor/32x32/actions/bt_commentary.png
+share/icons/hicolor/32x32/actions/bt_commentary_add.png
+share/icons/hicolor/32x32/actions/bt_displayconfig.png
+share/icons/hicolor/32x32/actions/bt_lexicon.png
+share/icons/hicolor/32x32/actions/bt_lexicon_add.png
+share/icons/hicolor/32x32/actions/bt_startconfig.png
+share/icons/hicolor/32x32/actions/bt_swordconfig.png
+share/icons/hicolor/32x32/actions/bt_sync.png
+share/icons/hicolor/32x32/actions/bt_tile.png
+share/icons/hicolor/32x32/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/32x32/actions 2>/dev/null || true
+share/icons/hicolor/32x32/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
+share/icons/hicolor/48x48/actions/bt_bible.png
+share/icons/hicolor/48x48/actions/bt_bible_add.png
+share/icons/hicolor/48x48/actions/bt_book.png
+share/icons/hicolor/48x48/actions/bt_book_add.png
+share/icons/hicolor/48x48/actions/bt_cascade.png
+share/icons/hicolor/48x48/actions/bt_cascade_auto.png
+share/icons/hicolor/48x48/actions/bt_commentary.png
+share/icons/hicolor/48x48/actions/bt_commentary_add.png
+share/icons/hicolor/48x48/actions/bt_displayconfig.png
+share/icons/hicolor/48x48/actions/bt_lexicon.png
+share/icons/hicolor/48x48/actions/bt_lexicon_add.png
+share/icons/hicolor/48x48/actions/bt_startconfig.png
+share/icons/hicolor/48x48/actions/bt_swordconfig.png
+share/icons/hicolor/48x48/actions/bt_sync.png
+share/icons/hicolor/48x48/actions/bt_tile.png
+share/icons/hicolor/48x48/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/48x48/actions 2>/dev/null || true
+share/icons/hicolor/48x48/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor 2>/dev/null || true
+@unexec rmdir %D/share/icons 2>/dev/null || true
+share/config/bt-printing
+@unexec rmdir %D/share/config 2>/dev/null || true
+share/applnk/Applications/bibletime.desktop
+@unexec rmdir %D/share/applnk/Applications 2>/dev/null || true
+@unexec rmdir %D/share/applnk 2>/dev/null || true
+bin/bibletime
diff --git a/misc/bibletime-kde3/Makefile b/misc/bibletime-kde3/Makefile
new file mode 100644
index 000000000000..92f5a7ff2c2b
--- /dev/null
+++ b/misc/bibletime-kde3/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: bibletime
+# Date created: 3 May 2002
+# Whom: Willem van Engen <wvengen@stack.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bibletime
+PORTVERSION= 1.2.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= wvengen@stack.nl
+
+LIB_DEPENDS= sword.1:${PORTSDIR}/misc/sword
+.if !defined(NOPORTDOCS)
+RUN_DEPENDS= ${LOCALBASE}/share/doc/HTML/en/bibletime:${PORTSDIR}/misc/bibletime-doc
+.endif
+
+USE_KDELIBS_VER=3
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_BZIP2= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+=--program-transform-name="" \
+ --with-sworddir=${PREFIX}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/bibletime/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/misc/bibletime-kde3/distinfo b/misc/bibletime-kde3/distinfo
new file mode 100644
index 000000000000..d6a2debf325c
--- /dev/null
+++ b/misc/bibletime-kde3/distinfo
@@ -0,0 +1 @@
+MD5 (bibletime-1.2.1.tar.bz2) = 48d7d38c216d5fbcb531eb0746dc4875
diff --git a/misc/bibletime-kde3/files/patch-Makefile.am b/misc/bibletime-kde3/files/patch-Makefile.am
new file mode 100644
index 000000000000..0100057ac34c
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig Fri May 3 11:30:38 2002
++++ Makefile.am Fri May 3 11:32:30 2002
+@@ -32,7 +32,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ MAINTAINERCLEANFILES = configure.files subdirs
+
diff --git a/misc/bibletime-kde3/files/patch-Makefile.in b/misc/bibletime-kde3/files/patch-Makefile.in
new file mode 100644
index 000000000000..fe46c70fd628
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri May 3 11:30:38 2002
++++ Makefile.in Fri May 3 11:32:25 2002
+@@ -597,7 +597,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ dist-hook:
+ cd $(distdir) && make -f Makefile.cvs
diff --git a/misc/bibletime-kde3/files/patch-admin::ltmain.sh b/misc/bibletime-kde3/files/patch-admin::ltmain.sh
new file mode 100644
index 000000000000..3938e1b81b69
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-admin::ltmain.sh
@@ -0,0 +1,12 @@
+diff -ruN admin/ltmain.sh admin/ltmain.sh
+--- admin/ltmain.sh Fri Apr 12 13:40:12 2002
++++ admin/ltmain.sh Thu Jun 20 09:51:32 2002
+@@ -1239,7 +1239,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd[0-4]*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
diff --git a/misc/bibletime-kde3/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp b/misc/bibletime-kde3/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
new file mode 100644
index 000000000000..95477bbb2942
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
@@ -0,0 +1,13 @@
+diff -ruN bibletime/backend/cswordbookmoduleinfo.cpp bibletime/backend/cswordbookmoduleinfo.cpp
+--- bibletime/backend/cswordbookmoduleinfo.cpp Sun Apr 7 01:12:21 2002
++++ bibletime/backend/cswordbookmoduleinfo.cpp Wed Jun 19 17:31:40 2002
+@@ -18,6 +18,9 @@
+ //BibleTime includes
+ #include "cswordbookmoduleinfo.h"
+
++//Other includes
++#include <iostream.h>
++
+ //Sword includes
+ #include <treekeyidx.h>
+ #include <treekey.h>
diff --git a/misc/bibletime-kde3/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp b/misc/bibletime-kde3/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
new file mode 100644
index 000000000000..209520e81ffa
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
@@ -0,0 +1,12 @@
+diff -ruN bibletime/frontend/searchdialog/csearchdialog.cpp bibletime/frontend/searchdialog/csearchdialog.cpp
+--- bibletime/frontend/searchdialog/csearchdialog.cpp Sat Apr 20 02:25:39 2002
++++ bibletime/frontend/searchdialog/csearchdialog.cpp Thu Jun 20 09:24:54 2002
+@@ -114,7 +114,7 @@
+ }
+
+ void CSearchDialog::setModuleList(ListCSwordModuleInfo& list) {
+- if (m_moduleList != list)
++ if (! (m_moduleList == list) )
+ m_moduleList = list; //copy the items of "list"
+
+ m_moduleChooser->blockSignals(true);
diff --git a/misc/bibletime-kde3/files/patch-bibletime::printing::cprintdialogpages.cpp b/misc/bibletime-kde3/files/patch-bibletime::printing::cprintdialogpages.cpp
new file mode 100644
index 000000000000..f92537c285fc
--- /dev/null
+++ b/misc/bibletime-kde3/files/patch-bibletime::printing::cprintdialogpages.cpp
@@ -0,0 +1,20 @@
+diff -ruN bibletime/printing/cprintdialogpages.cpp bibletime/printing/cprintdialogpages.cpp
+--- bibletime/printing/cprintdialogpages.cpp Fri Apr 12 13:41:32 2002
++++ bibletime/printing/cprintdialogpages.cpp Thu Jun 20 00:24:38 2002
+@@ -54,14 +54,14 @@
+ QGridLayout *gbox = new QGridLayout( group, 4, 2, 5, 5 );
+ gbox->addRowSpacing( 0, group->fontMetrics().height()-5 );
+
+- const QString name[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
++ const QString nname[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
+ for( int i=0; i<4; i++ ) {
+ m_marginSpin[i] = new QSpinBox( group );
+ m_marginSpin[i]->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ m_marginSpin[i]->setMinimumWidth( m_marginSpin[i]->fontMetrics().width("M")*10 );
+ m_marginSpin[i]->setSuffix(" mm");
+
+- QLabel *label = new QLabel( m_marginSpin[i], name[i], group );
++ QLabel *label = new QLabel( m_marginSpin[i], nname[i], group );
+ label->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ label->setFixedWidth( label->sizeHint().width() );
+
diff --git a/misc/bibletime-kde3/pkg-comment b/misc/bibletime-kde3/pkg-comment
new file mode 100644
index 000000000000..6efe8e10ac7d
--- /dev/null
+++ b/misc/bibletime-kde3/pkg-comment
@@ -0,0 +1 @@
+A powerful Bible study application for KDE3
diff --git a/misc/bibletime-kde3/pkg-descr b/misc/bibletime-kde3/pkg-descr
new file mode 100644
index 000000000000..d73877f626e6
--- /dev/null
+++ b/misc/bibletime-kde3/pkg-descr
@@ -0,0 +1,13 @@
+BibleTime is a powerful Bible study application for the K Desktop Environment
+running on Unix operating systems. BibleTime is based on the Sword library
+which provides access to all the different text modules created by the
+Crosswire Bible Society.
+
+Current features are: toolbar, splitted window with index and MDI interface,
+searching in one or more modules supporting regular expressions, graphical
+search analysis, bookmarks, drag & drop, WYSIWYG html editing for comments,
+printing and an extensive help system.
+
+WWW: http://www.bibletime.de/
+
+- Willem van Engen <wvengen@stack.nl>
diff --git a/misc/bibletime-kde3/pkg-plist b/misc/bibletime-kde3/pkg-plist
new file mode 100644
index 000000000000..5c748b59687d
--- /dev/null
+++ b/misc/bibletime-kde3/pkg-plist
@@ -0,0 +1,105 @@
+share/apps/bibletime/printing/bw_muchtext.xml
+share/apps/bibletime/printing/standard.xml
+@unexec rmdir %D/share/apps/bibletime/printing 2>/dev/null || true
+share/apps/bibletime/bibletimeui.rc
+share/apps/bibletime/pics/startuplogo.png
+@unexec rmdir %D/share/apps/bibletime/pics 2>/dev/null || true
+@unexec rmdir %D/share/apps/bibletime 2>/dev/null || true
+@unexec rmdir %D/share/apps 2>/dev/null || true
+share/icons/hicolor/16x16/actions/bt_bible.png
+share/icons/hicolor/16x16/actions/bt_bible_add.png
+share/icons/hicolor/16x16/actions/bt_bible_locked.png
+share/icons/hicolor/16x16/actions/bt_book.png
+share/icons/hicolor/16x16/actions/bt_book_add.png
+share/icons/hicolor/16x16/actions/bt_book_locked.png
+share/icons/hicolor/16x16/actions/bt_cascade.png
+share/icons/hicolor/16x16/actions/bt_cascade_auto.png
+share/icons/hicolor/16x16/actions/bt_commentary.png
+share/icons/hicolor/16x16/actions/bt_commentary_add.png
+share/icons/hicolor/16x16/actions/bt_commentary_locked.png
+share/icons/hicolor/16x16/actions/bt_displayconfig.png
+share/icons/hicolor/16x16/actions/bt_lexicon.png
+share/icons/hicolor/16x16/actions/bt_lexicon_add.png
+share/icons/hicolor/16x16/actions/bt_lexicon_locked.png
+share/icons/hicolor/16x16/actions/bt_startconfig.png
+share/icons/hicolor/16x16/actions/bt_swordconfig.png
+share/icons/hicolor/16x16/actions/bt_sync.png
+share/icons/hicolor/16x16/actions/bt_tile.png
+share/icons/hicolor/16x16/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/16x16/actions 2>/dev/null || true
+share/icons/hicolor/16x16/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true
+share/icons/hicolor/22x22/actions/bt_bible.png
+share/icons/hicolor/22x22/actions/bt_bible_add.png
+share/icons/hicolor/22x22/actions/bt_bible_locked.png
+share/icons/hicolor/22x22/actions/bt_book.png
+share/icons/hicolor/22x22/actions/bt_book_add.png
+share/icons/hicolor/22x22/actions/bt_book_locked.png
+share/icons/hicolor/22x22/actions/bt_cascade.png
+share/icons/hicolor/22x22/actions/bt_cascade_auto.png
+share/icons/hicolor/22x22/actions/bt_commentary.png
+share/icons/hicolor/22x22/actions/bt_commentary_add.png
+share/icons/hicolor/22x22/actions/bt_commentary_locked.png
+share/icons/hicolor/22x22/actions/bt_displayconfig.png
+share/icons/hicolor/22x22/actions/bt_lexicon.png
+share/icons/hicolor/22x22/actions/bt_lexicon_add.png
+share/icons/hicolor/22x22/actions/bt_lexicon_locked.png
+share/icons/hicolor/22x22/actions/bt_parallel.png
+share/icons/hicolor/22x22/actions/bt_startconfig.png
+share/icons/hicolor/22x22/actions/bt_sync.png
+share/icons/hicolor/22x22/actions/bt_swordconfig.png
+share/icons/hicolor/22x22/actions/bt_tile.png
+share/icons/hicolor/22x22/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/22x22/actions 2>/dev/null || true
+share/icons/hicolor/22x22/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/22x22/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/22x22 2>/dev/null || true
+share/icons/hicolor/32x32/actions/bt_bible.png
+share/icons/hicolor/32x32/actions/bt_bible_add.png
+share/icons/hicolor/32x32/actions/bt_book.png
+share/icons/hicolor/32x32/actions/bt_book_add.png
+share/icons/hicolor/32x32/actions/bt_cascade.png
+share/icons/hicolor/32x32/actions/bt_cascade_auto.png
+share/icons/hicolor/32x32/actions/bt_commentary.png
+share/icons/hicolor/32x32/actions/bt_commentary_add.png
+share/icons/hicolor/32x32/actions/bt_displayconfig.png
+share/icons/hicolor/32x32/actions/bt_lexicon.png
+share/icons/hicolor/32x32/actions/bt_lexicon_add.png
+share/icons/hicolor/32x32/actions/bt_startconfig.png
+share/icons/hicolor/32x32/actions/bt_swordconfig.png
+share/icons/hicolor/32x32/actions/bt_sync.png
+share/icons/hicolor/32x32/actions/bt_tile.png
+share/icons/hicolor/32x32/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/32x32/actions 2>/dev/null || true
+share/icons/hicolor/32x32/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
+share/icons/hicolor/48x48/actions/bt_bible.png
+share/icons/hicolor/48x48/actions/bt_bible_add.png
+share/icons/hicolor/48x48/actions/bt_book.png
+share/icons/hicolor/48x48/actions/bt_book_add.png
+share/icons/hicolor/48x48/actions/bt_cascade.png
+share/icons/hicolor/48x48/actions/bt_cascade_auto.png
+share/icons/hicolor/48x48/actions/bt_commentary.png
+share/icons/hicolor/48x48/actions/bt_commentary_add.png
+share/icons/hicolor/48x48/actions/bt_displayconfig.png
+share/icons/hicolor/48x48/actions/bt_lexicon.png
+share/icons/hicolor/48x48/actions/bt_lexicon_add.png
+share/icons/hicolor/48x48/actions/bt_startconfig.png
+share/icons/hicolor/48x48/actions/bt_swordconfig.png
+share/icons/hicolor/48x48/actions/bt_sync.png
+share/icons/hicolor/48x48/actions/bt_tile.png
+share/icons/hicolor/48x48/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/48x48/actions 2>/dev/null || true
+share/icons/hicolor/48x48/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor 2>/dev/null || true
+@unexec rmdir %D/share/icons 2>/dev/null || true
+share/config/bt-printing
+@unexec rmdir %D/share/config 2>/dev/null || true
+share/applnk/Applications/bibletime.desktop
+@unexec rmdir %D/share/applnk/Applications 2>/dev/null || true
+@unexec rmdir %D/share/applnk 2>/dev/null || true
+bin/bibletime
diff --git a/misc/bibletime-kde4/Makefile b/misc/bibletime-kde4/Makefile
new file mode 100644
index 000000000000..92f5a7ff2c2b
--- /dev/null
+++ b/misc/bibletime-kde4/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: bibletime
+# Date created: 3 May 2002
+# Whom: Willem van Engen <wvengen@stack.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bibletime
+PORTVERSION= 1.2.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= wvengen@stack.nl
+
+LIB_DEPENDS= sword.1:${PORTSDIR}/misc/sword
+.if !defined(NOPORTDOCS)
+RUN_DEPENDS= ${LOCALBASE}/share/doc/HTML/en/bibletime:${PORTSDIR}/misc/bibletime-doc
+.endif
+
+USE_KDELIBS_VER=3
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_BZIP2= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+=--program-transform-name="" \
+ --with-sworddir=${PREFIX}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/bibletime/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/misc/bibletime-kde4/distinfo b/misc/bibletime-kde4/distinfo
new file mode 100644
index 000000000000..d6a2debf325c
--- /dev/null
+++ b/misc/bibletime-kde4/distinfo
@@ -0,0 +1 @@
+MD5 (bibletime-1.2.1.tar.bz2) = 48d7d38c216d5fbcb531eb0746dc4875
diff --git a/misc/bibletime-kde4/files/patch-Makefile.am b/misc/bibletime-kde4/files/patch-Makefile.am
new file mode 100644
index 000000000000..0100057ac34c
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig Fri May 3 11:30:38 2002
++++ Makefile.am Fri May 3 11:32:30 2002
+@@ -32,7 +32,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ MAINTAINERCLEANFILES = configure.files subdirs
+
diff --git a/misc/bibletime-kde4/files/patch-Makefile.in b/misc/bibletime-kde4/files/patch-Makefile.in
new file mode 100644
index 000000000000..fe46c70fd628
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri May 3 11:30:38 2002
++++ Makefile.in Fri May 3 11:32:25 2002
+@@ -597,7 +597,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ dist-hook:
+ cd $(distdir) && make -f Makefile.cvs
diff --git a/misc/bibletime-kde4/files/patch-admin::ltmain.sh b/misc/bibletime-kde4/files/patch-admin::ltmain.sh
new file mode 100644
index 000000000000..3938e1b81b69
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-admin::ltmain.sh
@@ -0,0 +1,12 @@
+diff -ruN admin/ltmain.sh admin/ltmain.sh
+--- admin/ltmain.sh Fri Apr 12 13:40:12 2002
++++ admin/ltmain.sh Thu Jun 20 09:51:32 2002
+@@ -1239,7 +1239,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd[0-4]*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
diff --git a/misc/bibletime-kde4/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp b/misc/bibletime-kde4/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
new file mode 100644
index 000000000000..95477bbb2942
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
@@ -0,0 +1,13 @@
+diff -ruN bibletime/backend/cswordbookmoduleinfo.cpp bibletime/backend/cswordbookmoduleinfo.cpp
+--- bibletime/backend/cswordbookmoduleinfo.cpp Sun Apr 7 01:12:21 2002
++++ bibletime/backend/cswordbookmoduleinfo.cpp Wed Jun 19 17:31:40 2002
+@@ -18,6 +18,9 @@
+ //BibleTime includes
+ #include "cswordbookmoduleinfo.h"
+
++//Other includes
++#include <iostream.h>
++
+ //Sword includes
+ #include <treekeyidx.h>
+ #include <treekey.h>
diff --git a/misc/bibletime-kde4/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp b/misc/bibletime-kde4/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
new file mode 100644
index 000000000000..209520e81ffa
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
@@ -0,0 +1,12 @@
+diff -ruN bibletime/frontend/searchdialog/csearchdialog.cpp bibletime/frontend/searchdialog/csearchdialog.cpp
+--- bibletime/frontend/searchdialog/csearchdialog.cpp Sat Apr 20 02:25:39 2002
++++ bibletime/frontend/searchdialog/csearchdialog.cpp Thu Jun 20 09:24:54 2002
+@@ -114,7 +114,7 @@
+ }
+
+ void CSearchDialog::setModuleList(ListCSwordModuleInfo& list) {
+- if (m_moduleList != list)
++ if (! (m_moduleList == list) )
+ m_moduleList = list; //copy the items of "list"
+
+ m_moduleChooser->blockSignals(true);
diff --git a/misc/bibletime-kde4/files/patch-bibletime::printing::cprintdialogpages.cpp b/misc/bibletime-kde4/files/patch-bibletime::printing::cprintdialogpages.cpp
new file mode 100644
index 000000000000..f92537c285fc
--- /dev/null
+++ b/misc/bibletime-kde4/files/patch-bibletime::printing::cprintdialogpages.cpp
@@ -0,0 +1,20 @@
+diff -ruN bibletime/printing/cprintdialogpages.cpp bibletime/printing/cprintdialogpages.cpp
+--- bibletime/printing/cprintdialogpages.cpp Fri Apr 12 13:41:32 2002
++++ bibletime/printing/cprintdialogpages.cpp Thu Jun 20 00:24:38 2002
+@@ -54,14 +54,14 @@
+ QGridLayout *gbox = new QGridLayout( group, 4, 2, 5, 5 );
+ gbox->addRowSpacing( 0, group->fontMetrics().height()-5 );
+
+- const QString name[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
++ const QString nname[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
+ for( int i=0; i<4; i++ ) {
+ m_marginSpin[i] = new QSpinBox( group );
+ m_marginSpin[i]->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ m_marginSpin[i]->setMinimumWidth( m_marginSpin[i]->fontMetrics().width("M")*10 );
+ m_marginSpin[i]->setSuffix(" mm");
+
+- QLabel *label = new QLabel( m_marginSpin[i], name[i], group );
++ QLabel *label = new QLabel( m_marginSpin[i], nname[i], group );
+ label->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ label->setFixedWidth( label->sizeHint().width() );
+
diff --git a/misc/bibletime-kde4/pkg-comment b/misc/bibletime-kde4/pkg-comment
new file mode 100644
index 000000000000..6efe8e10ac7d
--- /dev/null
+++ b/misc/bibletime-kde4/pkg-comment
@@ -0,0 +1 @@
+A powerful Bible study application for KDE3
diff --git a/misc/bibletime-kde4/pkg-descr b/misc/bibletime-kde4/pkg-descr
new file mode 100644
index 000000000000..d73877f626e6
--- /dev/null
+++ b/misc/bibletime-kde4/pkg-descr
@@ -0,0 +1,13 @@
+BibleTime is a powerful Bible study application for the K Desktop Environment
+running on Unix operating systems. BibleTime is based on the Sword library
+which provides access to all the different text modules created by the
+Crosswire Bible Society.
+
+Current features are: toolbar, splitted window with index and MDI interface,
+searching in one or more modules supporting regular expressions, graphical
+search analysis, bookmarks, drag & drop, WYSIWYG html editing for comments,
+printing and an extensive help system.
+
+WWW: http://www.bibletime.de/
+
+- Willem van Engen <wvengen@stack.nl>
diff --git a/misc/bibletime-kde4/pkg-plist b/misc/bibletime-kde4/pkg-plist
new file mode 100644
index 000000000000..5c748b59687d
--- /dev/null
+++ b/misc/bibletime-kde4/pkg-plist
@@ -0,0 +1,105 @@
+share/apps/bibletime/printing/bw_muchtext.xml
+share/apps/bibletime/printing/standard.xml
+@unexec rmdir %D/share/apps/bibletime/printing 2>/dev/null || true
+share/apps/bibletime/bibletimeui.rc
+share/apps/bibletime/pics/startuplogo.png
+@unexec rmdir %D/share/apps/bibletime/pics 2>/dev/null || true
+@unexec rmdir %D/share/apps/bibletime 2>/dev/null || true
+@unexec rmdir %D/share/apps 2>/dev/null || true
+share/icons/hicolor/16x16/actions/bt_bible.png
+share/icons/hicolor/16x16/actions/bt_bible_add.png
+share/icons/hicolor/16x16/actions/bt_bible_locked.png
+share/icons/hicolor/16x16/actions/bt_book.png
+share/icons/hicolor/16x16/actions/bt_book_add.png
+share/icons/hicolor/16x16/actions/bt_book_locked.png
+share/icons/hicolor/16x16/actions/bt_cascade.png
+share/icons/hicolor/16x16/actions/bt_cascade_auto.png
+share/icons/hicolor/16x16/actions/bt_commentary.png
+share/icons/hicolor/16x16/actions/bt_commentary_add.png
+share/icons/hicolor/16x16/actions/bt_commentary_locked.png
+share/icons/hicolor/16x16/actions/bt_displayconfig.png
+share/icons/hicolor/16x16/actions/bt_lexicon.png
+share/icons/hicolor/16x16/actions/bt_lexicon_add.png
+share/icons/hicolor/16x16/actions/bt_lexicon_locked.png
+share/icons/hicolor/16x16/actions/bt_startconfig.png
+share/icons/hicolor/16x16/actions/bt_swordconfig.png
+share/icons/hicolor/16x16/actions/bt_sync.png
+share/icons/hicolor/16x16/actions/bt_tile.png
+share/icons/hicolor/16x16/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/16x16/actions 2>/dev/null || true
+share/icons/hicolor/16x16/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true
+share/icons/hicolor/22x22/actions/bt_bible.png
+share/icons/hicolor/22x22/actions/bt_bible_add.png
+share/icons/hicolor/22x22/actions/bt_bible_locked.png
+share/icons/hicolor/22x22/actions/bt_book.png
+share/icons/hicolor/22x22/actions/bt_book_add.png
+share/icons/hicolor/22x22/actions/bt_book_locked.png
+share/icons/hicolor/22x22/actions/bt_cascade.png
+share/icons/hicolor/22x22/actions/bt_cascade_auto.png
+share/icons/hicolor/22x22/actions/bt_commentary.png
+share/icons/hicolor/22x22/actions/bt_commentary_add.png
+share/icons/hicolor/22x22/actions/bt_commentary_locked.png
+share/icons/hicolor/22x22/actions/bt_displayconfig.png
+share/icons/hicolor/22x22/actions/bt_lexicon.png
+share/icons/hicolor/22x22/actions/bt_lexicon_add.png
+share/icons/hicolor/22x22/actions/bt_lexicon_locked.png
+share/icons/hicolor/22x22/actions/bt_parallel.png
+share/icons/hicolor/22x22/actions/bt_startconfig.png
+share/icons/hicolor/22x22/actions/bt_sync.png
+share/icons/hicolor/22x22/actions/bt_swordconfig.png
+share/icons/hicolor/22x22/actions/bt_tile.png
+share/icons/hicolor/22x22/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/22x22/actions 2>/dev/null || true
+share/icons/hicolor/22x22/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/22x22/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/22x22 2>/dev/null || true
+share/icons/hicolor/32x32/actions/bt_bible.png
+share/icons/hicolor/32x32/actions/bt_bible_add.png
+share/icons/hicolor/32x32/actions/bt_book.png
+share/icons/hicolor/32x32/actions/bt_book_add.png
+share/icons/hicolor/32x32/actions/bt_cascade.png
+share/icons/hicolor/32x32/actions/bt_cascade_auto.png
+share/icons/hicolor/32x32/actions/bt_commentary.png
+share/icons/hicolor/32x32/actions/bt_commentary_add.png
+share/icons/hicolor/32x32/actions/bt_displayconfig.png
+share/icons/hicolor/32x32/actions/bt_lexicon.png
+share/icons/hicolor/32x32/actions/bt_lexicon_add.png
+share/icons/hicolor/32x32/actions/bt_startconfig.png
+share/icons/hicolor/32x32/actions/bt_swordconfig.png
+share/icons/hicolor/32x32/actions/bt_sync.png
+share/icons/hicolor/32x32/actions/bt_tile.png
+share/icons/hicolor/32x32/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/32x32/actions 2>/dev/null || true
+share/icons/hicolor/32x32/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
+share/icons/hicolor/48x48/actions/bt_bible.png
+share/icons/hicolor/48x48/actions/bt_bible_add.png
+share/icons/hicolor/48x48/actions/bt_book.png
+share/icons/hicolor/48x48/actions/bt_book_add.png
+share/icons/hicolor/48x48/actions/bt_cascade.png
+share/icons/hicolor/48x48/actions/bt_cascade_auto.png
+share/icons/hicolor/48x48/actions/bt_commentary.png
+share/icons/hicolor/48x48/actions/bt_commentary_add.png
+share/icons/hicolor/48x48/actions/bt_displayconfig.png
+share/icons/hicolor/48x48/actions/bt_lexicon.png
+share/icons/hicolor/48x48/actions/bt_lexicon_add.png
+share/icons/hicolor/48x48/actions/bt_startconfig.png
+share/icons/hicolor/48x48/actions/bt_swordconfig.png
+share/icons/hicolor/48x48/actions/bt_sync.png
+share/icons/hicolor/48x48/actions/bt_tile.png
+share/icons/hicolor/48x48/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/48x48/actions 2>/dev/null || true
+share/icons/hicolor/48x48/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor 2>/dev/null || true
+@unexec rmdir %D/share/icons 2>/dev/null || true
+share/config/bt-printing
+@unexec rmdir %D/share/config 2>/dev/null || true
+share/applnk/Applications/bibletime.desktop
+@unexec rmdir %D/share/applnk/Applications 2>/dev/null || true
+@unexec rmdir %D/share/applnk 2>/dev/null || true
+bin/bibletime
diff --git a/misc/bibletime/Makefile b/misc/bibletime/Makefile
new file mode 100644
index 000000000000..92f5a7ff2c2b
--- /dev/null
+++ b/misc/bibletime/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: bibletime
+# Date created: 3 May 2002
+# Whom: Willem van Engen <wvengen@stack.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bibletime
+PORTVERSION= 1.2.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= wvengen@stack.nl
+
+LIB_DEPENDS= sword.1:${PORTSDIR}/misc/sword
+.if !defined(NOPORTDOCS)
+RUN_DEPENDS= ${LOCALBASE}/share/doc/HTML/en/bibletime:${PORTSDIR}/misc/bibletime-doc
+.endif
+
+USE_KDELIBS_VER=3
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_BZIP2= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+=--program-transform-name="" \
+ --with-sworddir=${PREFIX}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s^-lpthread^${PTHREAD_LIBS}^g" ${WRKSRC}/bibletime/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/misc/bibletime/distinfo b/misc/bibletime/distinfo
new file mode 100644
index 000000000000..d6a2debf325c
--- /dev/null
+++ b/misc/bibletime/distinfo
@@ -0,0 +1 @@
+MD5 (bibletime-1.2.1.tar.bz2) = 48d7d38c216d5fbcb531eb0746dc4875
diff --git a/misc/bibletime/files/patch-Makefile.am b/misc/bibletime/files/patch-Makefile.am
new file mode 100644
index 000000000000..0100057ac34c
--- /dev/null
+++ b/misc/bibletime/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig Fri May 3 11:30:38 2002
++++ Makefile.am Fri May 3 11:32:30 2002
+@@ -32,7 +32,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ MAINTAINERCLEANFILES = configure.files subdirs
+
diff --git a/misc/bibletime/files/patch-Makefile.in b/misc/bibletime/files/patch-Makefile.in
new file mode 100644
index 000000000000..fe46c70fd628
--- /dev/null
+++ b/misc/bibletime/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri May 3 11:30:38 2002
++++ Makefile.in Fri May 3 11:32:25 2002
+@@ -597,7 +597,7 @@
+ cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.files
+
+ install-data-local:
+- chmod 755 $(DESTDIR)$(kde_datadir)/bibletime -R
++ chmod -R 755 $(DESTDIR)$(kde_datadir)/bibletime
+
+ dist-hook:
+ cd $(distdir) && make -f Makefile.cvs
diff --git a/misc/bibletime/files/patch-admin::ltmain.sh b/misc/bibletime/files/patch-admin::ltmain.sh
new file mode 100644
index 000000000000..3938e1b81b69
--- /dev/null
+++ b/misc/bibletime/files/patch-admin::ltmain.sh
@@ -0,0 +1,12 @@
+diff -ruN admin/ltmain.sh admin/ltmain.sh
+--- admin/ltmain.sh Fri Apr 12 13:40:12 2002
++++ admin/ltmain.sh Thu Jun 20 09:51:32 2002
+@@ -1239,7 +1239,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd[0-4]*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
diff --git a/misc/bibletime/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp b/misc/bibletime/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
new file mode 100644
index 000000000000..95477bbb2942
--- /dev/null
+++ b/misc/bibletime/files/patch-bibletime::backend::cswordbookmoduleinfo.cpp
@@ -0,0 +1,13 @@
+diff -ruN bibletime/backend/cswordbookmoduleinfo.cpp bibletime/backend/cswordbookmoduleinfo.cpp
+--- bibletime/backend/cswordbookmoduleinfo.cpp Sun Apr 7 01:12:21 2002
++++ bibletime/backend/cswordbookmoduleinfo.cpp Wed Jun 19 17:31:40 2002
+@@ -18,6 +18,9 @@
+ //BibleTime includes
+ #include "cswordbookmoduleinfo.h"
+
++//Other includes
++#include <iostream.h>
++
+ //Sword includes
+ #include <treekeyidx.h>
+ #include <treekey.h>
diff --git a/misc/bibletime/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp b/misc/bibletime/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
new file mode 100644
index 000000000000..209520e81ffa
--- /dev/null
+++ b/misc/bibletime/files/patch-bibletime::frontend::searchdialog::csearchdialog.cpp
@@ -0,0 +1,12 @@
+diff -ruN bibletime/frontend/searchdialog/csearchdialog.cpp bibletime/frontend/searchdialog/csearchdialog.cpp
+--- bibletime/frontend/searchdialog/csearchdialog.cpp Sat Apr 20 02:25:39 2002
++++ bibletime/frontend/searchdialog/csearchdialog.cpp Thu Jun 20 09:24:54 2002
+@@ -114,7 +114,7 @@
+ }
+
+ void CSearchDialog::setModuleList(ListCSwordModuleInfo& list) {
+- if (m_moduleList != list)
++ if (! (m_moduleList == list) )
+ m_moduleList = list; //copy the items of "list"
+
+ m_moduleChooser->blockSignals(true);
diff --git a/misc/bibletime/files/patch-bibletime::printing::cprintdialogpages.cpp b/misc/bibletime/files/patch-bibletime::printing::cprintdialogpages.cpp
new file mode 100644
index 000000000000..f92537c285fc
--- /dev/null
+++ b/misc/bibletime/files/patch-bibletime::printing::cprintdialogpages.cpp
@@ -0,0 +1,20 @@
+diff -ruN bibletime/printing/cprintdialogpages.cpp bibletime/printing/cprintdialogpages.cpp
+--- bibletime/printing/cprintdialogpages.cpp Fri Apr 12 13:41:32 2002
++++ bibletime/printing/cprintdialogpages.cpp Thu Jun 20 00:24:38 2002
+@@ -54,14 +54,14 @@
+ QGridLayout *gbox = new QGridLayout( group, 4, 2, 5, 5 );
+ gbox->addRowSpacing( 0, group->fontMetrics().height()-5 );
+
+- const QString name[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
++ const QString nname[4] = {i18n("&Top"),i18n("&Bottom"),i18n("&Left"), i18n("&Right") };
+ for( int i=0; i<4; i++ ) {
+ m_marginSpin[i] = new QSpinBox( group );
+ m_marginSpin[i]->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ m_marginSpin[i]->setMinimumWidth( m_marginSpin[i]->fontMetrics().width("M")*10 );
+ m_marginSpin[i]->setSuffix(" mm");
+
+- QLabel *label = new QLabel( m_marginSpin[i], name[i], group );
++ QLabel *label = new QLabel( m_marginSpin[i], nname[i], group );
+ label->setFixedHeight( m_marginSpin[i]->sizeHint().height() );
+ label->setFixedWidth( label->sizeHint().width() );
+
diff --git a/misc/bibletime/pkg-comment b/misc/bibletime/pkg-comment
new file mode 100644
index 000000000000..6efe8e10ac7d
--- /dev/null
+++ b/misc/bibletime/pkg-comment
@@ -0,0 +1 @@
+A powerful Bible study application for KDE3
diff --git a/misc/bibletime/pkg-descr b/misc/bibletime/pkg-descr
new file mode 100644
index 000000000000..d73877f626e6
--- /dev/null
+++ b/misc/bibletime/pkg-descr
@@ -0,0 +1,13 @@
+BibleTime is a powerful Bible study application for the K Desktop Environment
+running on Unix operating systems. BibleTime is based on the Sword library
+which provides access to all the different text modules created by the
+Crosswire Bible Society.
+
+Current features are: toolbar, splitted window with index and MDI interface,
+searching in one or more modules supporting regular expressions, graphical
+search analysis, bookmarks, drag & drop, WYSIWYG html editing for comments,
+printing and an extensive help system.
+
+WWW: http://www.bibletime.de/
+
+- Willem van Engen <wvengen@stack.nl>
diff --git a/misc/bibletime/pkg-plist b/misc/bibletime/pkg-plist
new file mode 100644
index 000000000000..5c748b59687d
--- /dev/null
+++ b/misc/bibletime/pkg-plist
@@ -0,0 +1,105 @@
+share/apps/bibletime/printing/bw_muchtext.xml
+share/apps/bibletime/printing/standard.xml
+@unexec rmdir %D/share/apps/bibletime/printing 2>/dev/null || true
+share/apps/bibletime/bibletimeui.rc
+share/apps/bibletime/pics/startuplogo.png
+@unexec rmdir %D/share/apps/bibletime/pics 2>/dev/null || true
+@unexec rmdir %D/share/apps/bibletime 2>/dev/null || true
+@unexec rmdir %D/share/apps 2>/dev/null || true
+share/icons/hicolor/16x16/actions/bt_bible.png
+share/icons/hicolor/16x16/actions/bt_bible_add.png
+share/icons/hicolor/16x16/actions/bt_bible_locked.png
+share/icons/hicolor/16x16/actions/bt_book.png
+share/icons/hicolor/16x16/actions/bt_book_add.png
+share/icons/hicolor/16x16/actions/bt_book_locked.png
+share/icons/hicolor/16x16/actions/bt_cascade.png
+share/icons/hicolor/16x16/actions/bt_cascade_auto.png
+share/icons/hicolor/16x16/actions/bt_commentary.png
+share/icons/hicolor/16x16/actions/bt_commentary_add.png
+share/icons/hicolor/16x16/actions/bt_commentary_locked.png
+share/icons/hicolor/16x16/actions/bt_displayconfig.png
+share/icons/hicolor/16x16/actions/bt_lexicon.png
+share/icons/hicolor/16x16/actions/bt_lexicon_add.png
+share/icons/hicolor/16x16/actions/bt_lexicon_locked.png
+share/icons/hicolor/16x16/actions/bt_startconfig.png
+share/icons/hicolor/16x16/actions/bt_swordconfig.png
+share/icons/hicolor/16x16/actions/bt_sync.png
+share/icons/hicolor/16x16/actions/bt_tile.png
+share/icons/hicolor/16x16/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/16x16/actions 2>/dev/null || true
+share/icons/hicolor/16x16/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/16x16 2>/dev/null || true
+share/icons/hicolor/22x22/actions/bt_bible.png
+share/icons/hicolor/22x22/actions/bt_bible_add.png
+share/icons/hicolor/22x22/actions/bt_bible_locked.png
+share/icons/hicolor/22x22/actions/bt_book.png
+share/icons/hicolor/22x22/actions/bt_book_add.png
+share/icons/hicolor/22x22/actions/bt_book_locked.png
+share/icons/hicolor/22x22/actions/bt_cascade.png
+share/icons/hicolor/22x22/actions/bt_cascade_auto.png
+share/icons/hicolor/22x22/actions/bt_commentary.png
+share/icons/hicolor/22x22/actions/bt_commentary_add.png
+share/icons/hicolor/22x22/actions/bt_commentary_locked.png
+share/icons/hicolor/22x22/actions/bt_displayconfig.png
+share/icons/hicolor/22x22/actions/bt_lexicon.png
+share/icons/hicolor/22x22/actions/bt_lexicon_add.png
+share/icons/hicolor/22x22/actions/bt_lexicon_locked.png
+share/icons/hicolor/22x22/actions/bt_parallel.png
+share/icons/hicolor/22x22/actions/bt_startconfig.png
+share/icons/hicolor/22x22/actions/bt_sync.png
+share/icons/hicolor/22x22/actions/bt_swordconfig.png
+share/icons/hicolor/22x22/actions/bt_tile.png
+share/icons/hicolor/22x22/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/22x22/actions 2>/dev/null || true
+share/icons/hicolor/22x22/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/22x22/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/22x22 2>/dev/null || true
+share/icons/hicolor/32x32/actions/bt_bible.png
+share/icons/hicolor/32x32/actions/bt_bible_add.png
+share/icons/hicolor/32x32/actions/bt_book.png
+share/icons/hicolor/32x32/actions/bt_book_add.png
+share/icons/hicolor/32x32/actions/bt_cascade.png
+share/icons/hicolor/32x32/actions/bt_cascade_auto.png
+share/icons/hicolor/32x32/actions/bt_commentary.png
+share/icons/hicolor/32x32/actions/bt_commentary_add.png
+share/icons/hicolor/32x32/actions/bt_displayconfig.png
+share/icons/hicolor/32x32/actions/bt_lexicon.png
+share/icons/hicolor/32x32/actions/bt_lexicon_add.png
+share/icons/hicolor/32x32/actions/bt_startconfig.png
+share/icons/hicolor/32x32/actions/bt_swordconfig.png
+share/icons/hicolor/32x32/actions/bt_sync.png
+share/icons/hicolor/32x32/actions/bt_tile.png
+share/icons/hicolor/32x32/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/32x32/actions 2>/dev/null || true
+share/icons/hicolor/32x32/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
+share/icons/hicolor/48x48/actions/bt_bible.png
+share/icons/hicolor/48x48/actions/bt_bible_add.png
+share/icons/hicolor/48x48/actions/bt_book.png
+share/icons/hicolor/48x48/actions/bt_book_add.png
+share/icons/hicolor/48x48/actions/bt_cascade.png
+share/icons/hicolor/48x48/actions/bt_cascade_auto.png
+share/icons/hicolor/48x48/actions/bt_commentary.png
+share/icons/hicolor/48x48/actions/bt_commentary_add.png
+share/icons/hicolor/48x48/actions/bt_displayconfig.png
+share/icons/hicolor/48x48/actions/bt_lexicon.png
+share/icons/hicolor/48x48/actions/bt_lexicon_add.png
+share/icons/hicolor/48x48/actions/bt_startconfig.png
+share/icons/hicolor/48x48/actions/bt_swordconfig.png
+share/icons/hicolor/48x48/actions/bt_sync.png
+share/icons/hicolor/48x48/actions/bt_tile.png
+share/icons/hicolor/48x48/actions/bt_tile_auto.png
+@unexec rmdir %D/share/icons/hicolor/48x48/actions 2>/dev/null || true
+share/icons/hicolor/48x48/apps/bibletime.png
+@unexec rmdir %D/share/icons/hicolor/48x48/apps 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor/48x48 2>/dev/null || true
+@unexec rmdir %D/share/icons/hicolor 2>/dev/null || true
+@unexec rmdir %D/share/icons 2>/dev/null || true
+share/config/bt-printing
+@unexec rmdir %D/share/config 2>/dev/null || true
+share/applnk/Applications/bibletime.desktop
+@unexec rmdir %D/share/applnk/Applications 2>/dev/null || true
+@unexec rmdir %D/share/applnk 2>/dev/null || true
+bin/bibletime