diff --git a/srcpkgs/nawk/template b/srcpkgs/nawk/template index 8cf94c0ff65..0a239c93a07 100644 --- a/srcpkgs/nawk/template +++ b/srcpkgs/nawk/template @@ -1,7 +1,7 @@ # Template file for 'nawk' pkgname=nawk version=20121220 -revision=4 +revision=5 create_wrksrc=yes hostmakedepends="bison" short_desc="The one, true implementation of AWK" @@ -17,9 +17,10 @@ alternatives=" awk:awk.1:/usr/share/man/man1/nawk.1" do_configure() { - sed -i '/maketab/s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/' makefile + sed -i '/maketab/{s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile sed -i '/YACC = yacc -d -S/ s|^|#|' makefile sed -n '/Copyright/,/THIS SOFTWARE\./p' README > LICENSE + sed -i 's/-lm/$(LDFLAGS) &/' makefile } do_build() { make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"