diff options
author | jtb <jtb@pkgsrc.org> | 2001-01-19 22:26:59 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2001-01-19 22:26:59 +0000 |
commit | 700155153db9e7e31b0e2a02cfe67e1d1b4c08ca (patch) | |
tree | da604e1284a9971980a0e8e9ac8acee79bd5796a /lang | |
parent | 66c752478a2425fa44361bbc63f162a27b8b18b8 (diff) | |
download | pkgsrc-700155153db9e7e31b0e2a02cfe67e1d1b4c08ca.tar.gz |
Initial import of new "pforth" package:
Portable ANS-like Forth written in ANSI C
Diffstat (limited to 'lang')
-rw-r--r-- | lang/pforth/Makefile | 45 | ||||
-rw-r--r-- | lang/pforth/files/md5 | 3 | ||||
-rw-r--r-- | lang/pforth/files/patch-sum | 4 | ||||
-rw-r--r-- | lang/pforth/patches/patch-aa | 58 | ||||
-rw-r--r-- | lang/pforth/patches/patch-ab | 13 | ||||
-rw-r--r-- | lang/pforth/pkg/COMMENT | 1 | ||||
-rw-r--r-- | lang/pforth/pkg/DESCR | 18 | ||||
-rw-r--r-- | lang/pforth/pkg/PLIST | 52 |
8 files changed, 194 insertions, 0 deletions
diff --git a/lang/pforth/Makefile b/lang/pforth/Makefile new file mode 100644 index 00000000000..99d4f1716b5 --- /dev/null +++ b/lang/pforth/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/01/19 22:26:59 jtb Exp $ + +DISTNAME= pfthunix19 +PKGNAME= pforth-19 +CATEGORIES= lang +MASTER_SITES= http://www.softsynth.com/pforth/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= jtb@netbsd.org +HOMEPAGE= http://www.softsynth.com/pforth/ + +WRKSRC= ${WRKDIR}/pforth +USE_GMAKE= YES +MAKEFILE= ${WRKSRC}/makefile + +post-extract: + ${MKDIR} ${WRKSRC}/objects + +post-patch: + @for i in ${WRKSRC}/csrc/pf_main.c; do \ + ${SED} -e 's:@PREFIX@:${PREFIX}:g' \ + < $$i > $$i.tmp && ${MV} -f $$i.tmp $$i; \ + done + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pforth ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/lib/pforth + ${INSTALL_DATA} ${WRKSRC}/pforth.dic ${PREFIX}/lib/pforth + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pforth + @for d in ${WRKSRC}/readme.txt ${WRKSRC}/docs/*; do \ + c="${INSTALL_DATA} $$d ${PREFIX}/share/doc/pforth/"; \ + ${ECHO} $$c; $$c; \ + done + ${INSTALL_DATA_DIR} ${PREFIX}/share/pforth + @for f in ${WRKSRC}/*.fth; do \ + c="${INSTALL_DATA} $$f ${PREFIX}/share/pforth/"; \ + ${ECHO} $$c; $$c; \ + done + ${INSTALL_DATA_DIR} ${PREFIX}/share/pforth/utils + @for u in ${WRKSRC}/utils/*.fth; do \ + c="${INSTALL_DATA} $$u ${PREFIX}/share/pforth/utils/"; \ + ${ECHO} $$c; $$c; \ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/pforth/files/md5 b/lang/pforth/files/md5 new file mode 100644 index 00000000000..f0a33df2db3 --- /dev/null +++ b/lang/pforth/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $ + +MD5 (pfthunix19.tar.Z) = 7ce1027fe9c893a46d684a1fa48e8677 diff --git a/lang/pforth/files/patch-sum b/lang/pforth/files/patch-sum new file mode 100644 index 00000000000..9f57177b03d --- /dev/null +++ b/lang/pforth/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $ + +MD5 (patch-aa) = 09718ac7a7352999c63f79e37e9d5d84 +MD5 (patch-ab) = 23260d6d198a4edb297c6bc46899ca32 diff --git a/lang/pforth/patches/patch-aa b/lang/pforth/patches/patch-aa new file mode 100644 index 00000000000..10bcda41781 --- /dev/null +++ b/lang/pforth/patches/patch-aa @@ -0,0 +1,58 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $ + +--- makefile.orig Tue Apr 7 00:43:01 1998 ++++ makefile +@@ -27,7 +27,7 @@ + -Wmissing-declarations + + CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS) +-COMPILER = gcc ++COMPILER = $(CC) + + EMBCCOPTS = -DPF_NO_INIT -DPF_NO_MALLOC -DPF_NO_FILEIO \ + -DPF_NO_CLIB -DPF_STATIC_DIC +@@ -44,10 +44,10 @@ + COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS) + + ${OBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c +- $(COMPILE) -O -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c +- ++ $(COMPILE) $(CFLAGS) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c ++ + ${EMBOBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c ${SOURCEDIR}/pfdicdat.h +- $(COMPILE) -O -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS) ++ $(COMPILE) $(CFLAGS) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS) + + all: pforth pforth.dic + +@@ -62,26 +62,26 @@ + echo ${PFOBJS} + echo "EMBEDDED OBJECT FILES ------------------" + echo ${PFEMBOBJS} +- ++ + # build pforth by compiling 'C' source + pforth: $(PFINCLUDES) $(PFOBJS) + $(COMPILER) $(PFOBJS) -lm -o pforth + + # build basic dictionary by running newly built pforth and including system.fth + pforth.dic: pforth +- pforth -i system.fth ++ ./pforth -i system.fth + + ${SOURCEDIR}/pfdicdat.h: pforth pforth.dic + @(echo 'INCLUDE utils/savedicd.fth'; \ + echo 'SDAD'; \ + echo 'bye') | \ +- pforth -dpforth.dic ++ ./pforth -dpforth.dic + cp pfdicdat.h ${SOURCEDIR} + + + pfemb: $(PFINCLUDES) $(PFEMBOBJS) + $(COMPILER) $(PFEMBOBJS) -lm -o pfemb +- ++ + clean: + rm -f $(PFOBJS) $(PFEMBOBJS) pforth *.dic core ${SOURCEDIR}/pfdicdat.h pfemb + diff --git a/lang/pforth/patches/patch-ab b/lang/pforth/patches/patch-ab new file mode 100644 index 00000000000..91f7cc61ef6 --- /dev/null +++ b/lang/pforth/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/01/19 22:27:00 jtb Exp $ + +--- csrc/pf_main.c.orig Fri Jan 19 21:03:56 2001 ++++ csrc/pf_main.c +@@ -42,7 +42,7 @@ + + int main( int argc, char **argv ) + { +- const char *DicName = "pforth.dic"; ++ const char *DicName = "@PREFIX@/lib/pforth/pforth.dic"; + const char *SourceName = NULL; + char IfInit = FALSE; + char *s; diff --git a/lang/pforth/pkg/COMMENT b/lang/pforth/pkg/COMMENT new file mode 100644 index 00000000000..b8ce18ac5c3 --- /dev/null +++ b/lang/pforth/pkg/COMMENT @@ -0,0 +1 @@ +Portable ANS-like Forth written in ANSI C diff --git a/lang/pforth/pkg/DESCR b/lang/pforth/pkg/DESCR new file mode 100644 index 00000000000..3b1002d8279 --- /dev/null +++ b/lang/pforth/pkg/DESCR @@ -0,0 +1,18 @@ +PForth is an ANSI style Forth designed to be portable across many +platforms. The 'P' in pForth stands for "Portable". PForth is based +on a Forth kernel written in ANSI standard 'C'. + +PForth has been designed with portability as the primary design +goal. As a result, pForth avoids any fancy UNIX calls. pForth also +avoids using any clever and original ways of constructing the Forth +dictionary. It just compiles its kernel from ANSI compatible 'C' code +then loads ANS compatible Forth code to build the dictionary. Very +boring but very likely to work on almost any platform. + +The pForth software code is dedicated to the public domain, and any +third party may reproduce, distribute and modify the pForth software +code or any derivative works thereof without any compensation or +license. The pForth software code is provided on an "as is" basis +without any warranty of any kind, including, without limitation, the +implied warranties of merchantability and fitness for a particular +purpose and their equivalents under the laws of any jurisdiction. diff --git a/lang/pforth/pkg/PLIST b/lang/pforth/pkg/PLIST new file mode 100644 index 00000000000..6781fed7e43 --- /dev/null +++ b/lang/pforth/pkg/PLIST @@ -0,0 +1,52 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/19 22:26:59 jtb Exp $ +bin/pforth +lib/pforth/pforth.dic +share/doc/pforth/pf_ref.htm +share/doc/pforth/pf_todo.txt +share/doc/pforth/pf_tut.htm +share/doc/pforth/pfmanual.txt +share/doc/pforth/readme.txt +share/pforth/ansilocs.fth +share/pforth/bench.fth +share/pforth/bloop.fth +share/pforth/c_struct.fth +share/pforth/case.fth +share/pforth/catch.fth +share/pforth/condcomp.fth +share/pforth/coretest.fth +share/pforth/filefind.fth +share/pforth/floats.fth +share/pforth/forget.fth +share/pforth/loadp4th.fth +share/pforth/locals.fth +share/pforth/math.fth +share/pforth/member.fth +share/pforth/misc1.fth +share/pforth/misc2.fth +share/pforth/numberio.fth +share/pforth/private.fth +share/pforth/quit.fth +share/pforth/see.fth +share/pforth/siev.fth +share/pforth/smart_if.fth +share/pforth/strings.fth +share/pforth/system.fth +share/pforth/t_alloc.fth +share/pforth/t_corex.fth +share/pforth/t_floats.fth +share/pforth/t_locals.fth +share/pforth/t_strings.fth +share/pforth/t_tools.fth +share/pforth/tester.fth +share/pforth/trace.fth +share/pforth/tut.fth +share/pforth/utils/clone.fth +share/pforth/utils/dump_s~1.fth +share/pforth/utils/load_f~1.fth +share/pforth/utils/make_a~1.fth +share/pforth/utils/savedicd.fth +share/pforth/wordslik.fth +@dirrm share/pforth/utils +@dirrm share/pforth +@dirrm share/doc/pforth +@dirrm lib/pforth |