diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-11 09:36:33 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-11 09:36:33 +0000 |
commit | 9be0014e2170ff27036f7f1fafcb4d85f78fd180 (patch) | |
tree | 9f42b5b59ec9dee2c5cbc0540c7bb595ecc79a6c /misc/sword/files | |
parent | 1a20bbfd71d9b87cce52c83772ed839f3a7d195e (diff) | |
download | ports-9be0014e2170ff27036f7f1fafcb4d85f78fd180.tar.gz ports-9be0014e2170ff27036f7f1fafcb4d85f78fd180.zip |
Notes
Diffstat (limited to 'misc/sword/files')
-rw-r--r-- | misc/sword/files/patch-Makefile.cfg | 80 | ||||
-rw-r--r-- | misc/sword/files/patch-src::mgr::swmgr.cpp | 33 | ||||
-rw-r--r-- | misc/sword/files/sword.conf | 2 |
3 files changed, 115 insertions, 0 deletions
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/ |