mkports

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

commit 5ca21b71ef836aa3594292fc6254d4bb4bf5f7c2
parent 9def9ecd8692eccfdaecce72c6af48d5750bc635
Author: z3bra <willyatmailoodotorg>
Date:   Sun Jan 17 15:46:28 2016

binutils: use default targets

Diffstat:
 binutils/mkfile | 13 ++-----------
 default.mk      |  5 ++++-
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/binutils/mkfile b/binutils/mkfile @@ -2,16 +2,7 @@ pkg = binutils ver = 2.25 url = ftp://ftp.gnu.org/gnu/$pkg/$pkg-$ver.tar.bz2 +LDFLAGS="${LDFLAGS} -all-static" + <../config.mk <../default.mk - -build:QV: fetch patch - mkdir -p $pkg-$ver/build - cd $pkg-$ver/build - ../configure $CONFIGURE_OPT - make tooldir= CC=$CC LDFLAGS="$LDFLAGS" - -install:QV: build - mkdir -p $destdir - cd $pkg-$ver/build - make tooldir= DESTDIR=$destdir install diff --git a/default.mk b/default.mk @@ -42,7 +42,10 @@ fetch-git:QV: # content to a directory named $pkg-$ver fetch-archive:QV: if [ -n "$url" ]; then - out=$(curl -LOw %{filename_effective} $url) + out=$(basename $url) + if [ ! -f $out ]; then + out=$(curl -LOw %{filename_effective} $url) + fi src=$(tar -xvf $out|sed -n 1p|cut -f1 -d/) if [ "$src" != "$pkg-$ver" ]; then pwd