aboutsummaryrefslogtreecommitdiff
path: root/misc/sword
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-11 09:36:33 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-12-11 09:36:33 +0000
commit9be0014e2170ff27036f7f1fafcb4d85f78fd180 (patch)
tree9f42b5b59ec9dee2c5cbc0540c7bb595ecc79a6c /misc/sword
parent1a20bbfd71d9b87cce52c83772ed839f3a7d195e (diff)
downloadports-9be0014e2170ff27036f7f1fafcb4d85f78fd180.tar.gz
ports-9be0014e2170ff27036f7f1fafcb4d85f78fd180.zip
Notes
Diffstat (limited to 'misc/sword')
-rw-r--r--misc/sword/Makefile63
-rw-r--r--misc/sword/distinfo1
-rw-r--r--misc/sword/files/patch-Makefile.cfg80
-rw-r--r--misc/sword/files/patch-src::mgr::swmgr.cpp33
-rw-r--r--misc/sword/files/sword.conf2
-rw-r--r--misc/sword/pkg-comment1
-rw-r--r--misc/sword/pkg-descr9
-rw-r--r--misc/sword/pkg-message4
-rw-r--r--misc/sword/pkg-plist70
9 files changed, 263 insertions, 0 deletions
diff --git a/misc/sword/Makefile b/misc/sword/Makefile
new file mode 100644
index 000000000000..fc233b593c9a
--- /dev/null
+++ b/misc/sword/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: sword
+# Date created: 22 may 2001
+# Whom: Willem van Engen <wvengen@stack.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sword
+PORTVERSION= 1.5.1a
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
+ http://www.crosswire.org/sword/download/ftpmirror/pub/sword/source/v1.5/ \
+ ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= wvengen@stack.nl
+
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+
+INCLUDES= Greek2Greek.h GreekChars.h canon.h cipherfil.h defs.h \
+ echomod.h femain.h filemgr.h gbffootnotes.h gbfhtml.h \
+ gbfplain.h gbfrtf.h gbfstrongs.h gbfthml.h hrefcom.h \
+ listkey.h localemgr.h lzsscomprs.h plainfootnotes.h \
+ plainhtml.h rawcom.h rawfiles.h rawgbf.h rawld.h rawstr.h \
+ rawtext.h rawverse.h regex.h rtfhtml.h rwphtml.h rwprtf.h \
+ sapphire.h strkey.h swcipher.h swcom.h swcomprs.h \
+ swconfig.h swdisp.h swdisprtf.h swdisprtfchap.h swfilter.h \
+ swkey.h swld.h swlocale.h swlog.h swmacs.h swmgr.h \
+ swmodule.h swtext.h swwinlog.h tbdisp.h thmlgbf.h \
+ thmlhtml.h thmlplain.h thmlrtf.h unixstr.h utilconf.h \
+ utilfuns.h utilstr.h versekey.h zcom.h zipcomprs.h ztext.h \
+ zverse.h
+
+pre-build:
+ @${ECHO} "instdir:= ${PREFIX}" >${WRKSRC}/localport.cfg
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/libsword.a ${PREFIX}/lib
+ ${INSTALL_PROGRAM} ${WRKSRC}/lib/libsword.so ${PREFIX}/lib/libsword.so.1
+ ${LN} -s ${PREFIX}/lib/libsword.so.1 ${PREFIX}/lib/libsword.so
+ ${INSTALL_DATA} ${FILESDIR}/sword.conf ${PREFIX}/etc
+ ${MKDIR} ${DATADIR}
+ ${MKDIR} ${PREFIX}/include/sword
+.for file in ${INCLUDES}
+ ${INSTALL_DATA} ${WRKSRC}/include/${file} ${PREFIX}/include/sword
+.endfor
+
+post-install: register
+ @${ECHO} ""
+ @${CAT} ${PKGMESSAGE}
+
+register:
+.if !defined(BATCH)
+ @${ECHO} "Do you want to help the authors of SWORD to keep track of how many"
+ @${ECHO} -n "people use this program and register now ? [y/n] "
+ @read answer; \
+ if [ x$$answer = xy -o x$$answer = xY ]; then \
+ (cd ${WRKSRC}; ${GMAKE} register;); \
+ fi
+.endif
+
+.include <bsd.port.mk>
diff --git a/misc/sword/distinfo b/misc/sword/distinfo
new file mode 100644
index 000000000000..e6058b2380c8
--- /dev/null
+++ b/misc/sword/distinfo
@@ -0,0 +1 @@
+MD5 (sword-1.5.1a.tar.gz) = c46dc38018183600a472620fd97c9287
diff --git a/misc/sword/files/patch-Makefile.cfg b/misc/sword/files/patch-Makefile.cfg
new file mode 100644
index 000000000000..7ad98e0abea1
--- /dev/null
+++ b/misc/sword/files/patch-Makefile.cfg
@@ -0,0 +1,80 @@
+--- Makefile.cfg.orig Mon Nov 6 14:17:22 2000
++++ Makefile.cfg Wed Jun 27 14:46:28 2001
+@@ -1,4 +1,5 @@
+ # General defines
++include ${root}/localport.cfg
+
+ version := 1.5.1a
+
+@@ -19,18 +20,18 @@
+
+ # shared library- set to yes if you would like to build
+
+-buildshare := no
++buildshare := yes
+
+
+ # VCL library- set to yes if you would like to build
+
+-buildvcl := yes
++buildvcl := no
+
+
+ # Debugging options etc...
+
+-debug := yes
+-profile := yes
++debug := no
++profile := no
+
+
+ # endian, etc. support for other hardware
+@@ -50,13 +51,12 @@
+
+ # ownership (used by 'make install')
+
+-user := root
++user := sword
+ group := sword
+
+
+ # paths
+
+-instdir := /usr/local/sword/
+
+ bindir := ${instdir}/bin
+ libdir := ${instdir}/lib
+@@ -74,9 +74,9 @@
+
+ WARNINGS = -Wall -Wno-format
+ #WARNINGS += -Werror
+-CFLAGS = -pipe $(WARNINGS) $(DEBUG)
++CFLAGS += -pipe $(WARNINGS) $(DEBUG)
+
+-CPPFLAGS = -I${root}/include/ $(DEFINES)
++CPPFLAGS += -I${root}/include/ $(DEFINES)
+ ifeq ($(system),macosx)
+ CPPFLAGS += -I/System/Library/Frameworks/System.framework/Headers/
+ endif
+@@ -89,7 +89,7 @@
+ LIBS += -lz
+ endif
+
+-LDFLAGS = $(LFLAGS) $(LIBS)
++LDFLAGS += $(LFLAGS) $(LIBS)
+
+ DEFINES = -D_GNU_SOURCE
+
+@@ -123,9 +123,9 @@
+ endif
+
+
+-ifeq ($(system),intel)
+-CFLAGS += -m486
+-endif
++#ifeq ($(system),intel)
++#CFLAGS += -m486
++#endif
+
+ ifeq ($(buildvcl),yes)
+ ifeq ($(root),.)
diff --git a/misc/sword/files/patch-src::mgr::swmgr.cpp b/misc/sword/files/patch-src::mgr::swmgr.cpp
new file mode 100644
index 000000000000..8fbcea84d1bb
--- /dev/null
+++ b/misc/sword/files/patch-src::mgr::swmgr.cpp
@@ -0,0 +1,33 @@
+--- src/mgr/swmgr.cpp.orig Tue May 22 22:05:15 2001
++++ src/mgr/swmgr.cpp Tue May 22 22:05:53 2001
+@@ -263,25 +263,25 @@
+ }
+
+
+- // check for systemwide /etc/sword.conf
++ // check for systemwide /usr/local/etc/sword.conf
+
+ if (debug)
+- cerr << "\nChecking for /etc/sword.conf...";
++ cerr << "\nChecking for /usr/local/etc/sword.conf...";
+
+- if ((fd = ::open("/etc/sword.conf", O_RDONLY)) > 0) {
++ if ((fd = ::open("/usr/local/etc/sword.conf", O_RDONLY)) > 0) {
+ ::close(fd);
+
+ if (debug)
+ cerr << "found\n";
+
+- SWConfig etcconf("/etc/sword.conf");
++ SWConfig etcconf("/usr/local/etc/sword.conf");
+ if ((entry = etcconf.Sections["Install"].find("DataPath")) != etcconf.Sections["Install"].end()) {
+ path = (*entry).second;
+ if (((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '\\') && ((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '/'))
+ path += "/";
+
+ if (debug)
+- cerr << "DataPath in /etc/sword.conf is set to: " << path;
++ cerr << "DataPath in /usr/local/etc/sword.conf is set to: " << path;
+
+ if (debug)
+ cerr << "\nChecking for mods.conf in DataPath ";
diff --git a/misc/sword/files/sword.conf b/misc/sword/files/sword.conf
new file mode 100644
index 000000000000..70182d8fdb56
--- /dev/null
+++ b/misc/sword/files/sword.conf
@@ -0,0 +1,2 @@
+[Install]
+DataPath=/usr/local/share/sword/
diff --git a/misc/sword/pkg-comment b/misc/sword/pkg-comment
new file mode 100644
index 000000000000..9ac60afc06e3
--- /dev/null
+++ b/misc/sword/pkg-comment
@@ -0,0 +1 @@
+A project framework for manipulating Bible texts
diff --git a/misc/sword/pkg-descr b/misc/sword/pkg-descr
new file mode 100644
index 000000000000..288424dfcb59
--- /dev/null
+++ b/misc/sword/pkg-descr
@@ -0,0 +1,9 @@
+The SWORD Project is an effort to create an ever expanding software package
+for research and study of God and His Word. The SWORD Bible Framework allows
+easy manipulation of Bible texts, commentaries, lexicons, dictionaries, etc.
+Many frontends are build using this framework. An installed module set may be
+shared between any frontend using the framework.
+
+WWW: http://www.crosswire.org/
+
+- Willem van Engen <wvengen@stack.nl>
diff --git a/misc/sword/pkg-message b/misc/sword/pkg-message
new file mode 100644
index 000000000000..5ee11c58658e
--- /dev/null
+++ b/misc/sword/pkg-message
@@ -0,0 +1,4 @@
+To use sword, you need to have bible, commentary and/or lexicon modules. Those
+are available in the sword-modules package/port. And you probabely want to
+install a bible-application that uses sword, like cheatah (or irenaeus,
+bibletime or gnomesword when they become available as package/port).
diff --git a/misc/sword/pkg-plist b/misc/sword/pkg-plist
new file mode 100644
index 000000000000..d0e431c00927
--- /dev/null
+++ b/misc/sword/pkg-plist
@@ -0,0 +1,70 @@
+etc/sword.conf
+include/sword/Greek2Greek.h
+include/sword/GreekChars.h
+include/sword/canon.h
+include/sword/cipherfil.h
+include/sword/defs.h
+include/sword/echomod.h
+include/sword/femain.h
+include/sword/filemgr.h
+include/sword/gbffootnotes.h
+include/sword/gbfhtml.h
+include/sword/gbfplain.h
+include/sword/gbfrtf.h
+include/sword/gbfstrongs.h
+include/sword/gbfthml.h
+include/sword/hrefcom.h
+include/sword/listkey.h
+include/sword/localemgr.h
+include/sword/lzsscomprs.h
+include/sword/plainfootnotes.h
+include/sword/plainhtml.h
+include/sword/rawcom.h
+include/sword/rawfiles.h
+include/sword/rawgbf.h
+include/sword/rawld.h
+include/sword/rawstr.h
+include/sword/rawtext.h
+include/sword/rawverse.h
+include/sword/regex.h
+include/sword/rtfhtml.h
+include/sword/rwphtml.h
+include/sword/rwprtf.h
+include/sword/sapphire.h
+include/sword/strkey.h
+include/sword/swcipher.h
+include/sword/swcom.h
+include/sword/swcomprs.h
+include/sword/swconfig.h
+include/sword/swdisp.h
+include/sword/swdisprtf.h
+include/sword/swdisprtfchap.h
+include/sword/swfilter.h
+include/sword/swkey.h
+include/sword/swld.h
+include/sword/swlocale.h
+include/sword/swlog.h
+include/sword/swmacs.h
+include/sword/swmgr.h
+include/sword/swmodule.h
+include/sword/swtext.h
+include/sword/swwinlog.h
+include/sword/tbdisp.h
+include/sword/thmlgbf.h
+include/sword/thmlhtml.h
+include/sword/thmlplain.h
+include/sword/thmlrtf.h
+include/sword/unixstr.h
+include/sword/utilconf.h
+include/sword/utilfuns.h
+include/sword/utilstr.h
+include/sword/versekey.h
+include/sword/zcom.h
+include/sword/zipcomprs.h
+include/sword/ztext.h
+include/sword/zverse.h
+lib/libsword.a
+lib/libsword.so.1
+lib/libsword.so
+@dirrm include/sword
+@dirrm share/sword