distro

small linux distro experiment
Log | Files | Refs

commit f7ca8e9e8a879c207225aeee061bf1b28d06a61f
parent 45c1fc1bf16b6fd65cdcef2c6cbfad7658b198a7
Author: z3bra <contactatz3bradotorg>
Date:   Mon, 22 Oct 2018 08:08:51 +0200

awk: new port

Diffstat:
pkg/awk/mkfile | 5+++++
pkg/awk/patches/000-makefile-install.diff | 31+++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkg/awk/mkfile b/pkg/awk/mkfile @@ -0,0 +1,5 @@ +pkg = awk +ver = HEAD +git = git://github.com/onetrueawk/awk + +<../build.mk diff --git a/pkg/awk/patches/000-makefile-install.diff b/pkg/awk/patches/000-makefile-install.diff @@ -0,0 +1,31 @@ +diff --git a/makefile b/makefile +index ae80e4d..eafdcf2 100644 +--- a/makefile ++++ b/makefile +@@ -49,8 +49,14 @@ LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ + SHIP = README LICENSE FIXES $(SOURCE) ytab[ch].bak makefile \ + awk.1 + +-a.out: ytab.o $(OFILES) +- $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm ++awk: ytab.o $(OFILES) ++ $(CC) $(CFLAGS) $(LDFLAGS) ytab.o $(OFILES) $(ALLOC) -lm -o awk ++ ++install: awk awk.1 ++ mkdir -p $(DESTDIR)$(PREFIX)/bin ++ mkdir -p $(DESTDIR)$(MANPREFIX)/man1 ++ cp awk $(DESTDIR)$(PREFIX)/bin/awk ++ cp awk.1 $(DESTDIR)$(MANPREFIX)/man1/awk.1 + + $(OFILES): awk.h ytab.h proto.h + +@@ -97,7 +103,7 @@ names: + @echo $(LISTING) + + clean: +- rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c ++ rm -f awk *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c + + cleaner: +- rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda proctab.c ytab* ++ rm -f awk *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda proctab.c ytab*