diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-20 17:29:36 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-20 17:29:36 +0000 |
commit | 15aafbb20a3803d8ec602797abee44a78e068081 (patch) | |
tree | c3d649b40ed4bbe0bc2518629fb58b1ab64f0738 /misc/sword15 | |
parent | 84972a64d52371573c771beaba58d13c6d92bab7 (diff) | |
download | ports-15aafbb20a3803d8ec602797abee44a78e068081.tar.gz ports-15aafbb20a3803d8ec602797abee44a78e068081.zip |
Notes
Diffstat (limited to 'misc/sword15')
-rw-r--r-- | misc/sword15/files/patch-Makefile.cfg | 60 | ||||
-rw-r--r-- | misc/sword15/files/patch-src::mgr::swmgr.cpp | 30 | ||||
-rw-r--r-- | misc/sword15/files/sword.conf | 2 | ||||
-rw-r--r-- | misc/sword15/pkg-plist | 13 |
4 files changed, 81 insertions, 24 deletions
diff --git a/misc/sword15/files/patch-Makefile.cfg b/misc/sword15/files/patch-Makefile.cfg index ecbc3dbfe099..682e51af6e1c 100644 --- a/misc/sword15/files/patch-Makefile.cfg +++ b/misc/sword15/files/patch-Makefile.cfg @@ -1,6 +1,12 @@ ---- Makefile.cfg.orig Thu Dec 13 10:44:49 2001 -+++ Makefile.cfg Thu Dec 13 10:47:07 2001 -@@ -6,7 +6,7 @@ +--- Makefile.cfg.orig Wed Dec 12 00:56:50 2001 ++++ Makefile.cfg Wed Dec 12 00:57:18 2001 +@@ -1,4 +1,5 @@ + # General defines ++include ${root}/localport.cfg + + version := 1.5.2 + +@@ -6,7 +7,7 @@ # ownership (used by 'make install') user := root @@ -9,7 +15,16 @@ # this WILL NOT WORK for you. only inhouse patched version of -@@ -60,8 +60,6 @@ +@@ -27,7 +28,7 @@ + + # 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 +@@ -60,8 +61,6 @@ # paths @@ -18,21 +33,48 @@ bindir := ${instdir}/bin libdir := ${instdir}/lib hdir := ${instdir}/include/sword -@@ -80,7 +78,7 @@ +@@ -80,16 +79,16 @@ WARNINGS = -Wall -Wno-format -pedantic #WARNINGS += -Werror WARNINGS += -pedantic -CFLAGS = -pipe $(WARNINGS) $(DEBUG) -+CFLAGS += -pipe $(WARNINGS) $(DEBUG) ++CFLAGS += -pipe $(WARNINGS) $(DEBUG) - CPPFLAGS = -I${root}/include/ $(DEFINES) +-CPPFLAGS = -I${root}/include/ $(DEFINES) ++CPPFLAGS += -I${root}/include/ $(DEFINES) ifeq ($(system),macosx) -@@ -89,7 +87,7 @@ + CPPFLAGS += -I/System/Library/Frameworks/System.framework/Headers/ + endif CPPFLAGS += $(DEFINES) LFLAGS = $(OPTIMIZE) $(DEBUG) -L${root}/lib/ -LIBS = -lsword -lstdc++ -+LIBS += -lsword -lstdc++ ++LIBS += -lsword -lstdc++ ifeq ($(zlib),no) CFLAGS += -DEXCLUDEZLIB +@@ -97,9 +96,9 @@ + LIBS += -lz + endif + +-LDFLAGS = $(LFLAGS) $(LIBS) ++LDFLAGS += $(LFLAGS) $(LIBS) + +-DEFINES = -D_GNU_SOURCE ++DEFINES = -D_GNU_SOURCE -D_INSTDIR_="\"${instdir}\"" + + ifeq ($(profile),yes) + CFLAGS += -pg +@@ -256,9 +255,9 @@ + ifneq (${confdir},) + @if [ ! -d ${confdir}/mods.d ]; then install -o ${user} -g ${group} -m a+rx,u+rxw -d ${confdir}/mods.d/ ; fi + @if [ ! -d ${confdir}/locales.d ]; then install -o ${user} -g ${group} -m a+rx,u+rxw -d ${confdir}/locales.d/ ; fi +- @echo "[Install]" > /etc/sword.conf +- @echo "DataPath=${confdir}" >> /etc/sword.conf +-# install -o ${user} -g ${group} -m a+r,u+rw samples/recommended/sword.conf /etc/ ++ @echo "[Install]" > ${instdir}/etc/sword.conf ++ @echo "DataPath=${confdir}" >> ${instdir}/etc/sword.conf ++# install -o ${user} -g ${group} -m a+r,u+rw samples/recommended/sword.conf ${instdir}/etc/ + install -o ${user} -g ${group} -m a+r,u+rw ${modsconf} ${confdir}/mods.d/ + install -o ${user} -g ${group} -m a+r,u+rw ${localesconf} ${confdir}/locales.d/ + endif diff --git a/misc/sword15/files/patch-src::mgr::swmgr.cpp b/misc/sword15/files/patch-src::mgr::swmgr.cpp index 8fbcea84d1bb..fe0db28f4cb7 100644 --- a/misc/sword15/files/patch-src::mgr::swmgr.cpp +++ b/misc/sword15/files/patch-src::mgr::swmgr.cpp @@ -1,33 +1,37 @@ ---- 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 @@ +--- src/mgr/swmgr.cpp.org Wed Dec 12 00:43:04 2001 ++++ src/mgr/swmgr.cpp Wed Dec 12 00:44:39 2001 +@@ -268,21 +268,21 @@ } - // check for systemwide /etc/sword.conf -+ // check for systemwide /usr/local/etc/sword.conf ++ // check for systemwide _INSTDIR_/etc/sword.conf + #ifndef __VISUALC__ if (debug) - cerr << "\nChecking for /etc/sword.conf..."; -+ cerr << "\nChecking for /usr/local/etc/sword.conf..."; ++ cerr << "\nChecking for "_INSTDIR_"/etc/sword.conf..."; + #endif -- if ((fd = ::open("/etc/sword.conf", O_RDONLY)) > 0) { -+ if ((fd = ::open("/usr/local/etc/sword.conf", O_RDONLY)) > 0) { - ::close(fd); +- if (!::access("/etc/sword.conf", 04)) { ++ if (!::access(_INSTDIR_"/etc/sword.conf", 04)) { + #ifndef __VISUALC__ if (debug) cerr << "found\n"; + #endif - SWConfig etcconf("/etc/sword.conf"); -+ SWConfig etcconf("/usr/local/etc/sword.conf"); ++ SWConfig etcconf(_INSTDIR_"/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 += "/"; +@@ -290,7 +290,7 @@ + #ifndef __VISUALC__ if (debug) - cerr << "DataPath in /etc/sword.conf is set to: " << path; -+ cerr << "DataPath in /usr/local/etc/sword.conf is set to: " << path; ++ cerr << "DataPath in "_INSTDIR_"/etc/sword.conf is set to: " << path; + #endif - if (debug) - cerr << "\nChecking for mods.conf in DataPath "; + #ifndef __VISUALC__ diff --git a/misc/sword15/files/sword.conf b/misc/sword15/files/sword.conf deleted file mode 100644 index 70182d8fdb56..000000000000 --- a/misc/sword15/files/sword.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Install] -DataPath=/usr/local/share/sword/ diff --git a/misc/sword15/pkg-plist b/misc/sword15/pkg-plist index d0e431c00927..2791611de259 100644 --- a/misc/sword15/pkg-plist +++ b/misc/sword15/pkg-plist @@ -5,10 +5,13 @@ include/sword/canon.h include/sword/cipherfil.h include/sword/defs.h include/sword/echomod.h +include/sword/entriesblk.h include/sword/femain.h include/sword/filemgr.h include/sword/gbffootnotes.h +include/sword/gbfheadings.h include/sword/gbfhtml.h +include/sword/gbfmorph.h include/sword/gbfplain.h include/sword/gbfrtf.h include/sword/gbfstrongs.h @@ -23,10 +26,13 @@ include/sword/rawcom.h include/sword/rawfiles.h include/sword/rawgbf.h include/sword/rawld.h +include/sword/rawld4.h include/sword/rawstr.h +include/sword/rawstr4.h include/sword/rawtext.h include/sword/rawverse.h include/sword/regex.h +include/sword/roman.h include/sword/rtfhtml.h include/sword/rwphtml.h include/sword/rwprtf.h @@ -47,20 +53,27 @@ include/sword/swlog.h include/sword/swmacs.h include/sword/swmgr.h include/sword/swmodule.h +include/sword/swobject.h include/sword/swtext.h +include/sword/swunicod.h include/sword/swwinlog.h include/sword/tbdisp.h include/sword/thmlgbf.h include/sword/thmlhtml.h +include/sword/thmlolb.h include/sword/thmlplain.h include/sword/thmlrtf.h +include/sword/unicodertf.h include/sword/unixstr.h +include/sword/untgz.h include/sword/utilconf.h include/sword/utilfuns.h include/sword/utilstr.h include/sword/versekey.h include/sword/zcom.h +include/sword/zconf.h include/sword/zipcomprs.h +include/sword/zlib.h include/sword/ztext.h include/sword/zverse.h lib/libsword.a |