tbinutils: use default targets - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 5ca21b71ef836aa3594292fc6254d4bb4bf5f7c2
(DIR) parent 9def9ecd8692eccfdaecce72c6af48d5750bc635
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Sun, 17 Jan 2016 15:46:28 +0100
binutils: use default targets
Diffstat:
M binutils/mkfile | 13 ++-----------
M default.mk | 5 ++++-
2 files changed, 6 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/binutils/mkfile b/binutils/mkfile
t@@ -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
(DIR) diff --git a/default.mk b/default.mk
t@@ -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