recipes

packages recipes for the <noname> package manager
Log | Files | Refs

commit 42f4396e503ed0a37da1a07acef45624556460a0
parent 91785c39e14e4c9d6c7b3e40d253cfeac1bd8500
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 21 Jan 2019 02:09:46 +0100

bootstrapping yacc/flex...

Diffstat:
Mbison/default/dependencies | 2+-
Cbison/default/dependencies -> flex/default/dependencies | 0
Aom4/Makefile | 35+++++++++++++++++++++++++++++++++++
Mom4/default/build | 13+++++++++++--
Mom4/default/dependencies | 3++-
5 files changed, 49 insertions(+), 4 deletions(-)

diff --git a/bison/default/dependencies b/bison/default/dependencies @@ -1 +1 @@ -b:om4 +b:gm4 diff --git a/bison/default/dependencies b/flex/default/dependencies diff --git a/om4/Makefile b/om4/Makefile @@ -0,0 +1,35 @@ +# This Makefile automatically generated by configure. + +CC = cc +CFLAGS = -DEXTENDED -I. -w -D_GNU_SOURCE +PREFIX = /usr/local +MANDIR = /usr/local/man +PROG = om4 + +OBJS = eval.o expr.o look.o main.o misc.o gnum4.o trace.o tokenizer.o \ + parser.o ohash.o reallocarray.o strlcpy.o strtonum.o + +all: ${PROG} + +${PROG}: ${OBJS} + ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} -lm + +parser.c parser.h: parser.y + yacc -d parser.y && mv y.tab.c parser.c && mv y.tab.h parser.h + +tokenizer.o: parser.h + +install: + install -d ${DESTDIR}${PREFIX}/bin + install -d ${DESTDIR}${MANDIR}/man1 + install -c -s -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin + install -c -m 644 om4.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1 + +test: + echo "No tests" + +clean: + rm -f ${PROG} ${OBJS} parser.c parser.h + +distclean: clean + rm -f Makefile config.h diff --git a/om4/default/build b/om4/default/build @@ -1,8 +1,17 @@ #!/bin/sh -ex -./configure --enable-static --prefix="$PREFIX" +./configure \ + --prefix="$PREFIX" \ + --enable-static cp m4.1 om4.1 -make +for x in *.h; do + sed -r '/__(BEGIN|END)_DECLS/ d' "$x" >$$ + mv "$$" "$x" +done + +make LEX=reflex make install + +ln -s om4 "$PREFIX/bin/m4" diff --git a/om4/default/dependencies b/om4/default/dependencies @@ -1 +1,2 @@ -b:flex +b:reflex +b:oyacc