mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit 3e72d0a7b5183d9fd7cca1e663cfd49a1a53791e
parent 5f6e742ca2259cf2183014c5821f33643ac2777e
Author: z3bra <contactatz3bradotorg>
Date:   Fri Dec  2 13:48:04 +0100

awk: the one true awk(1)

Diffstat:
awk/mkfile | 20++++++++++++++++++++
awk/patches/yacc-flags.diff | 14++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/awk/mkfile b/awk/mkfile @@ -0,0 +1,20 @@ +pkg = awk +ver = 20121220 +url = http://www.cs.princeton.edu/~bwk/btl.mirror/$pkg.tar.gz + +<../default.mk + +YACC = bison -d -y + +fetch-archive:QV: $WORK/$archive + mkdir -p $WORK/$pkg-$ver + cd $WORK/$pkg-$ver + tar xf ../$pkg.tar.gz + +install:QV: build + cd $WORK/$pkg-$ver + mkdir -p $destdir + mkdir -p $destdir/bin + mkdir -p $destdir/man/man1 + cp a.out $destdir/bin/awk + cp awk.1 $destdir/man/man1/awk.1 diff --git a/awk/patches/yacc-flags.diff b/awk/patches/yacc-flags.diff @@ -0,0 +1,14 @@ +diff -urN a/makefile b/makefile +--- a/makefile 2012-12-20 14:58:45.000000000 +0100 ++++ b/makefile 2016-12-02 13:41:53.107079416 +0100 +@@ -31,9 +31,7 @@ + CC = gcc -g -Wall -pedantic + CC = gcc -O4 -Wall -pedantic -fno-strict-aliasing + +-YACC = bison -d -y +-YACC = yacc -d -S +-#YFLAGS = -d -S ++YFLAGS = -d -y + # -S uses sprintf in yacc parser instead of sprint + + OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o