This commit is contained in:
angelos 1998-05-22 01:32:04 +00:00
parent b96ad21c4b
commit e07514e656
18 changed files with 477 additions and 0 deletions

22
textproc/sp/Makefile Normal file
View File

@ -0,0 +1,22 @@
# OpenBSD makefile for: sp
# Version required: 1.2.1
# Date created: May 21 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/22 01:32:04 angelos Exp $
#
DISTNAME= sp-1.2.1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.jclark.com/pub/sp/
MAINTAINER= angelos@openbsd.org
# The shared libsp only works on post 2.1.x systems.
# shared C++ libraries appear to be broken on post 2.2.1 system too...
#.if exists(/usr/lib/libstdc++.a)
#PLIST= ${PKGDIR}/PLIST-shared
#post-install:
# ${LDCONFIG} -m ${PREFIX}/lib
#.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,6 @@
SUBDIR= generic include lib nsgmls sgmlnorm spam spent
.if !defined(NOPORTDOCS)
SUBDIR+= doc
.endif
.include <bsd.subdir.mk>

View File

@ -0,0 +1,62 @@
BINDIR= ${PREFIX}/bin
LIBDIR= ${PREFIX}/lib
DOCDIR= ${PREFIX}/share/doc/sp
INCDIR= ${PREFIX}/include/sp
SGMLDIR= ${PREFIX}/share/sgml/jade
PERL?= perl
M4?= m4
# Prevent descent into non existant subdirectories passed through
# from an assignment of SUBDIR on the make command line.
SUBDIR=
# The 2.1.x series of FreeBSD doesn't have libstdc++.
.if exists(/usr/lib/libstdc++.a)
CPPLIB= -lstdc++
# SHLIB_MAJOR?= 1
# SHLIB_MINOR?= 5
.else
CPPLIB= -lg++
.endif
# If you use gcc, then you must have at least version 2.7.2 and
# you must use -fno-implicit-templates
# and -O (or any optimization level >= 1).
# c++ is a front-end for gcc which takes care of linking with -lstdc++
CXX=c++ -fno-implicit-templates -O2
#WARN=-Wall -Wno-reorder -Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -Wno-unused
# Executables will be *very* large if you use -g.
DEBUG=
# Add -DSP_HAVE_BOOL if you have the bool type.
# Add -DSP_ANSI_CLASS_INST for ANSI style explicit class template instantiation.
# Add -DSP_MULTI_BYTE for multi-byte support.
# Add -DSP_HAVE_LOCALE if you have setlocale().
# Add -DSP_HAVE_GETTEXT if you gettext() and friends (eg Solaris 2.3).
# Add -DSP_HAVE_SOCKET if you have sockets and you want support for HTTP
# Add -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/lib/sgml/catalog\"
# (for example) to change the value used if the SGML_CATALOG_FILES
# environment variable is unset. SP now automatically searches for a file
# called "catalog" in the same directory as the document entity.
DEFINES=-DSGML_CATALOG_FILES_DEFAULT=\"${PREFIX}/share/sgml/catalog\"
INCLUDES+=-I. -I${.CURDIR}/../include -I${.CURDIR}/../generic
CXXFLAGS=-ansi $(DEBUG) $(WARN) $(DEFINES) $(INCLUDES)
.SUFFIXES: .m4 .msg .h .cc .C .cxx .o .po .so
.m4.cxx:
rm -f $@
${M4} ${.CURDIR}/../lib/instmac.m4 $< >$@
chmod -w $@
.msg.h:
${PERL} -w ${.CURDIR}/../msggen.pl ${MSGGENFLAGS} $<
# Some of the C++ targets in bsd.lib.mk are messed up in FreeBSD 2.1.x
.if !exists(/usr/lib/libstdc++.a)
.cc.so .C.so .cxx.so:
${CXX} ${PICFLAG} -DPIC ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
@${LD} -x -r ${.TARGET}
@mv a.out ${.TARGET}
.endif

View File

@ -0,0 +1,14 @@
FILES= archform.htm build.htm catalog.htm charset.htm features.htm
FILES+= generic.htm ideas.htm index.htm new.htm nsgmls.htm sgmldecl.htm
FILES+= sgmlnorm.htm sgmlsout.htm spam.htm spent.htm sysdecl.htm
FILES+= sysid.htm
NOOBJ= noobj
all clean cleandir depend lint tags:
afterinstall:
mkdir -p ${DESTDIR}${DOCDIR}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
${DESTDIR}${DOCDIR}
.include <bsd.prog.mk>

View File

@ -0,0 +1,11 @@
FILES= EventGenerator.h ParserEventGeneratorKit.h SGMLApplication.h
NOOBJ= noobj
all clean cleandir depend lint tags:
afterinstall:
mkdir -p ${DESTDIR}${INCDIR}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
${DESTDIR}${INCDIR}
.include <bsd.prog.mk>

View File

@ -0,0 +1,43 @@
FILES= Allocator.h ArcEngine.h Attribute.h Attributed.h Big5CodingSystem.h
FILES+= Boolean.h CharMap.cxx CharMap.h CharsetDecl.h CharsetInfo.h
FILES+= CharsetRegistry.h CmdLineApp.h CodingSystem.h CodingSystemKit.h
FILES+= ConsoleOutput.h ContentState.h ContentToken.h CopyOwner.cxx
FILES+= CopyOwner.h DescriptorManager.h Dtd.h EUCJPCodingSystem.h
FILES+= ElementType.h Entity.h EntityApp.h EntityCatalog.h EntityDecl.h
FILES+= EntityManager.h ErrnoMessageArg.h ErrorCountEventHandler.h Event.h
FILES+= EventsWanted.h ExtendEntityManager.h ExternalId.h
FILES+= Fixed2CodingSystem.h GenericEventHandler.h Hash.h HashTable.cxx
FILES+= HashTable.h HashTableItemBase.cxx HashTableItemBase.h IList.h
FILES+= IListBase.h IListIter.h IListIterBase.h IQueue.cxx IQueue.h ISet.cxx
FILES+= ISet.h ISetIter.h IdentityCodingSystem.h InputSource.h
FILES+= InternalInputSource.h Link.h LinkProcess.h List.cxx List.h ListIter.h
FILES+= LiteralStorage.h Location.h Lpd.h Markup.h Message.h
FILES+= MessageArg.h MessageBuilder.h MessageEventHandler.h
FILES+= MessageFormatter.h MessageReporter.h MessageTable.h Mode.h NCVector.h
FILES+= NCVector.sed Named.h NamedResource.h NamedResourceTable.h
FILES+= NamedTable.h Notation.h NotationStorage.h OpenElement.h Options.cxx
FILES+= Options.h
FILES+= OutputByteStream.h OutputCharStream.h Owner.cxx Owner.h
FILES+= OwnerTable.cxx OwnerTable.h ParserApp.h ParserOptions.h
FILES+= PointerTable.cxx PointerTable.h PosixStorage.h Ptr.cxx Ptr.h
FILES+= RangeMap.cxx RangeMap.h Resource.h RewindStorageObject.h
FILES+= SJISCodingSystem.h SOEntityCatalog.h Sd.h SdText.h
FILES+= SearchResultMessageArg.h SgmlParser.h ShortReferenceMap.h
FILES+= StdioStorage.h StorageManager.h StringC.h StringOf.cxx StringOf.h
FILES+= StringResource.h SubstTable.cxx SubstTable.h Syntax.h Text.h
FILES+= TranslateCodingSystem.h TypeId.h URLStorage.h UTF8CodingSystem.h
FILES+= UnicodeCodingSystem.h UnivCharsetDesc.h Vector.cxx Vector.h
FILES+= Win32CodingSystem.h WinApp.h WinInetStorage.h XcharMap.cxx
FILES+= XcharMap.h config.h
FILES+= constant.h macros.h rtti.h sptchar.h types.h xnew.h
NOOBJ= noobj
all clean cleandir depend lint tags:
afterinstall:
mkdir -p ${DESTDIR}${INCDIR}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
${DESTDIR}${INCDIR}
.include <bsd.prog.mk>

View File

@ -0,0 +1,52 @@
LIB=sp
NOPROFILE= noprofile
CPLUSPLUSLIB= 1 # include c++rt0.o for constructors
MSGGENFLAGS=-l
COMMON_SRCS=Allocator.cxx Link.cxx IListBase.cxx TypeId.cxx assert.cxx
ENTMGR_SRCS=CharsetInfo.cxx EntityCatalog.cxx EntityDecl.cxx EntityManager.cxx \
Hash.cxx InputSource.cxx Location.cxx Message.cxx MessageArg.cxx \
UnivCharsetDesc.cxx entmgr_inst.cxx
XENTMGR_SRCS=LiteralStorage.cxx URLStorage.cxx RewindStorageObject.cxx \
ErrnoMessageArg.cxx OffsetOrderedList.cxx DescriptorManager.cxx \
ExtendEntityManager.cxx PosixStorage.cxx StdioStorage.cxx \
StorageManager.cxx CodingSystem.cxx IdentityCodingSystem.cxx \
UTF8CodingSystem.cxx Fixed2CodingSystem.cxx UnicodeCodingSystem.cxx \
EUCJPCodingSystem.cxx SJISCodingSystem.cxx TranslateCodingSystem.cxx \
Big5CodingSystem.cxx SearchResultMessageArg.cxx SOEntityCatalog.cxx \
CodingSystemKit.cxx OutputByteStream.cxx xentmgr_inst.cxx
PARSER_SRCS=ContentState.cxx ParserState.cxx parser_inst.cxx parseSd.cxx Parser.cxx \
parseInstance.cxx parseMode.cxx parseAttribute.cxx \
LinkProcess.cxx Lpd.cxx parseDecl.cxx ShortReferenceMap.cxx \
parseParam.cxx parseCommon.cxx SgmlParser.cxx \
Entity.cxx Attribute.cxx OpenElement.cxx Notation.cxx NotationStorage.cxx ParserOptions.cxx Dtd.cxx \
Undo.cxx Param.cxx TokenMessageArg.cxx Group.cxx \
CharsetDecl.cxx CharsetRegistry.cxx ExternalId.cxx \
TrieBuilder.cxx Sd.cxx Syntax.cxx Partition.cxx ModeInfo.cxx Recognizer.cxx \
Markup.cxx Text.cxx ContentToken.cxx ElementType.cxx Event.cxx \
InternalInputSource.cxx OutputState.cxx ParserMessages.cxx \
SdText.cxx NumericCharRefOrigin.cxx Id.cxx StringVectorMessageArg.cxx
APP_SRCS=ErrorCountEventHandler.cxx MessageEventHandler.cxx MessageFormatter.cxx \
MessageReporter.cxx MessageTable.cxx OutputCharStream.cxx ConsoleOutput.cxx \
CmdLineApp.cxx EntityApp.cxx ParserApp.cxx app_inst.cxx \
ArcEngine.cxx arc_inst.cxx
GENERIC_SRCS=ParserEventGeneratorKit.cxx SGMLApplication.cxx EventGenerator.cxx \
GenericEventHandler.cxx
DPSRCS=version.h entmgr_inst.cxx \
xentmgr_inst.cxx EntityManagerMessages.h CatalogMessages.h \
PosixStorageMessages.h URLStorageMessages.h StdioStorageMessages.h \
ParserMessages.h parser_inst.cxx app_inst.cxx \
ParserAppMessages.h CmdLineAppMessages.h \
ArcEngineMessages.h arc_inst.cxx MessageReporterMessages.h \
MessageFormatterMessages.h
SRCS=$(COMMON_SRCS) $(ENTMGR_SRCS) $(XENTMGR_SRCS) $(PARSER_SRCS) $(APP_SRCS) \
$(GENERIC_SRCS)
${.CURDIR}/version.h: ${.CURDIR}/../VERSION ${.CURDIR}/mkversion.pl
rm -f $@
${PERL} -w ${.CURDIR}/mkversion.pl ${.CURDIR}/../VERSION >$@
chmod -w $@
.include <bsd.lib.mk>

1
textproc/sp/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (sp-1.2.1.tar.gz) = 060da115320cb5397167c8cd1d725afe

View File

@ -0,0 +1,10 @@
PROG= nsgmls
SRCS= nsgmls.cxx SgmlsEventHandler.cxx RastEventHandler.cxx
SRCS+= StringSet.cxx nsgmls_inst.o
LDADD= ${CPPLIB} -L${.CURDIR}/../lib -lsp
NOMAN= noman
DPSRCS= nsgmls_inst.cxx NsgmlsMessages.h RastEventHandlerMessages.h
.include <bsd.prog.mk>

View File

@ -0,0 +1,7 @@
PROG= sgmlnorm
SRCS= SGMLGenerator.cxx sgmlnorm.cxx
LDADD= ${CPPLIB} -L${.CURDIR}/../lib -lsp
NOMAN= noman
.include <bsd.prog.mk>

View File

@ -0,0 +1,9 @@
PROG= spam
SRCS= spam.cxx CopyEventHandler.cxx MarkupEventHandler.cxx spam_inst.cxx
LDADD= ${CPPLIB} -L${.CURDIR}/../lib -lsp
NOMAN= noman
DPSRCS= spam_inst.cxx SpamMessages.h
.include <bsd.prog.mk>

View File

@ -0,0 +1,7 @@
PROG= spent
SRCS= spent.cxx
LDADD= ${CPPLIB} -L${.CURDIR}/../lib -lsp
NOMAN= noman
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
*** include/config.h.orig Wed Jun 12 11:56:06 1996
--- include/config.h Tue Oct 15 17:08:09 1996
***************
*** 7,12 ****
--- 7,18 ----
#define SP_INCLUDE_UNISTD_H
#define SP_POSIX_FILENAMES
+ #if (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__))
+ #define SP_HAVE_LOCALE
+ #define SP_HAVE_SOCKET
+ #define SP_MULTI_BYTE
+ #endif
+
#ifdef __GNUG__
// It's not missing, but it pulls in libg++
#define SP_NEW_H_MISSING

View File

@ -0,0 +1,19 @@
*** lib/instmac.m4.orig Sun Jul 6 20:20:04 1997
--- lib/instmac.m4 Sun Jul 6 20:20:54 1997
***************
*** 75,81 ****
__undefine(`undefine')__dnl
__undefine(`undivert')__dnl
__undefine(`unix')__dnl
! __dnl __changequote(,)__dnl disable quoting
#ifdef SP_NAMESPACE
}
--- 75,81 ----
__undefine(`undefine')__dnl
__undefine(`undivert')__dnl
__undefine(`unix')__dnl
! __dnl __changequote(,)__dnl
#ifdef SP_NAMESPACE
}

1
textproc/sp/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
A free, object-oriented toolkit for SGML parsing and entity management

16
textproc/sp/pkg/DESCR Normal file
View File

@ -0,0 +1,16 @@
A free, object-oriented toolkit for SGML parsing and entity management
Features summary
* Includes nsgmls
* Provides access to all information about SGML document
* Supports almost all optional SGML features
* Sophisticated entity manager
* Supports multi-byte character sets
* Object-oriented
* Written in C++ from scratch
* Fast
* Portable
* Production quality
* Free

164
textproc/sp/pkg/PLIST Normal file
View File

@ -0,0 +1,164 @@
bin/nsgmls
bin/sgmlnorm
bin/spam
bin/spent
include/sp/Allocator.h
include/sp/ArcEngine.h
include/sp/Attribute.h
include/sp/Attributed.h
include/sp/Big5CodingSystem.h
include/sp/Boolean.h
include/sp/CharMap.cxx
include/sp/CharMap.h
include/sp/CharsetDecl.h
include/sp/CharsetInfo.h
include/sp/CharsetRegistry.h
include/sp/CmdLineApp.h
include/sp/CodingSystem.h
include/sp/CodingSystemKit.h
include/sp/ConsoleOutput.h
include/sp/ContentState.h
include/sp/ContentToken.h
include/sp/CopyOwner.cxx
include/sp/CopyOwner.h
include/sp/DescriptorManager.h
include/sp/Dtd.h
include/sp/EUCJPCodingSystem.h
include/sp/ElementType.h
include/sp/Entity.h
include/sp/EntityApp.h
include/sp/EntityCatalog.h
include/sp/EntityDecl.h
include/sp/EntityManager.h
include/sp/ErrnoMessageArg.h
include/sp/ErrorCountEventHandler.h
include/sp/Event.h
include/sp/EventGenerator.h
include/sp/EventsWanted.h
include/sp/ExtendEntityManager.h
include/sp/ExternalId.h
include/sp/Fixed2CodingSystem.h
include/sp/GenericEventHandler.h
include/sp/Hash.h
include/sp/HashTable.cxx
include/sp/HashTable.h
include/sp/HashTableItemBase.cxx
include/sp/HashTableItemBase.h
include/sp/IList.h
include/sp/IListBase.h
include/sp/IListIter.h
include/sp/IListIterBase.h
include/sp/IQueue.cxx
include/sp/IQueue.h
include/sp/ISet.cxx
include/sp/ISet.h
include/sp/ISetIter.h
include/sp/IdentityCodingSystem.h
include/sp/InputSource.h
include/sp/InternalInputSource.h
include/sp/Link.h
include/sp/LinkProcess.h
include/sp/List.cxx
include/sp/List.h
include/sp/ListIter.h
include/sp/LiteralStorage.h
include/sp/Location.h
include/sp/Lpd.h
include/sp/Markup.h
include/sp/Message.h
include/sp/MessageArg.h
include/sp/MessageBuilder.h
include/sp/MessageEventHandler.h
include/sp/MessageFormatter.h
include/sp/MessageReporter.h
include/sp/MessageTable.h
include/sp/Mode.h
include/sp/NCVector.h
include/sp/NCVector.sed
include/sp/Named.h
include/sp/NamedResource.h
include/sp/NamedResourceTable.h
include/sp/NamedTable.h
include/sp/Notation.h
include/sp/NotationStorage.h
include/sp/OpenElement.h
include/sp/Options.cxx
include/sp/Options.h
include/sp/OutputByteStream.h
include/sp/OutputCharStream.h
include/sp/Owner.cxx
include/sp/Owner.h
include/sp/OwnerTable.cxx
include/sp/OwnerTable.h
include/sp/ParserApp.h
include/sp/ParserEventGeneratorKit.h
include/sp/ParserOptions.h
include/sp/PointerTable.cxx
include/sp/PointerTable.h
include/sp/PosixStorage.h
include/sp/Ptr.cxx
include/sp/Ptr.h
include/sp/RangeMap.cxx
include/sp/RangeMap.h
include/sp/Resource.h
include/sp/RewindStorageObject.h
include/sp/SGMLApplication.h
include/sp/SJISCodingSystem.h
include/sp/SOEntityCatalog.h
include/sp/Sd.h
include/sp/SdText.h
include/sp/SearchResultMessageArg.h
include/sp/SgmlParser.h
include/sp/ShortReferenceMap.h
include/sp/StdioStorage.h
include/sp/StorageManager.h
include/sp/StringC.h
include/sp/StringOf.cxx
include/sp/StringOf.h
include/sp/StringResource.h
include/sp/SubstTable.cxx
include/sp/SubstTable.h
include/sp/Syntax.h
include/sp/Text.h
include/sp/TranslateCodingSystem.h
include/sp/TypeId.h
include/sp/URLStorage.h
include/sp/UTF8CodingSystem.h
include/sp/UnicodeCodingSystem.h
include/sp/UnivCharsetDesc.h
include/sp/Vector.cxx
include/sp/Vector.h
include/sp/Win32CodingSystem.h
include/sp/WinInetStorage.h
include/sp/WinApp.h
include/sp/XcharMap.cxx
include/sp/XcharMap.h
include/sp/config.h
include/sp/constant.h
include/sp/macros.h
include/sp/rtti.h
include/sp/sptchar.h
include/sp/types.h
include/sp/xnew.h
lib/libsp.a
@comment lib/libsp.so.1.4
share/doc/sp/archform.htm
share/doc/sp/build.htm
share/doc/sp/catalog.htm
share/doc/sp/charset.htm
share/doc/sp/features.htm
share/doc/sp/generic.htm
share/doc/sp/ideas.htm
share/doc/sp/index.htm
share/doc/sp/new.htm
share/doc/sp/nsgmls.htm
share/doc/sp/sgmldecl.htm
share/doc/sp/sgmlnorm.htm
share/doc/sp/sgmlsout.htm
share/doc/sp/spam.htm
share/doc/sp/spent.htm
share/doc/sp/sysdecl.htm
share/doc/sp/sysid.htm
@comment @exec /sbin/ldconfig -m %D/lib
@dirrm include/sp
@dirrm share/doc/sp

16
textproc/sp/scripts/configure vendored Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
cd $WRKSRC
# Move the all directory out of the way; it messes with the all target
if [ -e all ]; then
mv all xall
fi
# Copy the bmake files into place
install -c $FILESDIR/Makefile Makefile
install -c $FILESDIR/Makefile.inc Makefile.inc
for i in doc generic include lib nsgmls sgmlnorm spam spent; do
install -c $FILESDIR/$i-Makefile $i/Makefile
done