1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

add sword

A project framework for manipulating Bible texts

PR:		28450
Submitted by:	Willem van Engen <wvengen@stack.nl>
This commit is contained in:
Ying-Chieh Liao 2001-12-11 09:36:33 +00:00
parent 1a20bbfd71
commit 9be0014e21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51339
19 changed files with 527 additions and 0 deletions

View File

@ -184,6 +184,7 @@
SUBDIR += splitvt
SUBDIR += sshbuddy
SUBDIR += stan
SUBDIR += sword
SUBDIR += tcb
SUBDIR += team
SUBDIR += tet

63
misc/sword/Makefile Normal file
View File

@ -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>

1
misc/sword/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (sword-1.5.1a.tar.gz) = c46dc38018183600a472620fd97c9287

View File

@ -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),.)

View File

@ -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 ";

View File

@ -0,0 +1,2 @@
[Install]
DataPath=/usr/local/share/sword/

1
misc/sword/pkg-comment Normal file
View File

@ -0,0 +1 @@
A project framework for manipulating Bible texts

9
misc/sword/pkg-descr Normal file
View File

@ -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>

4
misc/sword/pkg-message Normal file
View File

@ -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).

70
misc/sword/pkg-plist Normal file
View File

@ -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

63
misc/sword15/Makefile Normal file
View File

@ -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>

1
misc/sword15/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (sword-1.5.1a.tar.gz) = c46dc38018183600a472620fd97c9287

View File

@ -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),.)

View File

@ -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 ";

View File

@ -0,0 +1,2 @@
[Install]
DataPath=/usr/local/share/sword/

1
misc/sword15/pkg-comment Normal file
View File

@ -0,0 +1 @@
A project framework for manipulating Bible texts

9
misc/sword15/pkg-descr Normal file
View File

@ -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>

4
misc/sword15/pkg-message Normal file
View File

@ -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).

70
misc/sword15/pkg-plist Normal file
View File

@ -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