Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Dec 1998 01:18:08 -0500
From:      W Gerald Hicks <wghicks@bellsouth.net>
To:        freebsd-small@FreeBSD.ORG
Cc:        sohara@mardil.elsevier.nl
Subject:   building ficl
Message-ID:  <36662D20.D96365C3@bellsouth.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
(don't know if this is the best place to put this, it's not quite ready to be in
ports yet)

Attached is a script^H^H^H^H^Hhack which will checkout the ficl sources from
anoncvs.freebsd.org and leave a directory named 'ficl' in the current directory.

Running a 'make install' from there will install userland versions of
/usr/local/bin/ficl and /usr/local/lib/libficl.a

I'm using 2.2.8-STABLE here, don't know if it builds for 3.0-*  

(Caveat Emptor!)

Cheers,

Jerry Hicks
wghicks@bellsouth.net
[-- Attachment #2 --]
#!/bin/sh

tmpdir=tmpFicl$$
mkdir $tmpdir
cd $tmpdir

CVSROOT=anoncvs@anoncvs.freebsd.org:/cvs /usr/bin/cvs checkout -r HEAD src/sys/boot/ficl

find . -name CVS | xargs rm -fr

mv src/sys/boot/ficl ..

cd ..

rm -fr $tmpdir

mv ficl/Makefile ficl/Makefile.orig
cat <<'END_OF_INPUT' > ficl/Makefile
# Makefile for ficl and libficl.a (userland version)
PROG=		ficl
LIBRARY=	libficl.a
SRCS=		testmain.c dict.c ficl.c math64.c stack.c sysdep.c softcore.c \
		vm.c words.c

BASE_OBJS=	dict.o ficl.o math64.o stack.o sysdep.o vm.o words.o

NOMAN=		YES
CLEANFILES=	.depend softcore.c libficl.a
DESTDIR?=	/usr/local/

PERL?=		/usr/bin/perl

# Standard softwords
SOFTWORDS=	softcore.fr jhlocal.fr marker.fr oo.fr classes.fr

.PATH:		${.CURDIR}/softwords
CFLAGS+=	-I${.CURDIR} -DTESTMAIN

${PROG}: testmain.o softcore.o libficl.a
	${CC} -o ${PROG} testmain.o softcore.o -L. -lficl

${LIBRARY}: ${BASE_OBJS}
	${AR} ${ARFLAGS} ${LIBRARY} ${BASE_OBJS}
	${RANLIB} ${LIBRARY}

softcore.c:	${SOFTWORDS} softcore.pl
	(cd ${.CURDIR}/softwords; ${PERL} softcore.pl ${SOFTWORDS}) > ${.TARGET}

install: ${PROG}
	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${INSTALLFLAGS} ${PROG} ${DESTDIR}bin
	${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
		${INSTALLFLAGS} ${LIBRARY} ${DESTDIR}lib

.include <bsd.prog.mk>
END_OF_INPUT

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36662D20.D96365C3>