tChange ports to use $destdir - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 9def9ecd8692eccfdaecce72c6af48d5750bc635
(DIR) parent 2805da23f634a7f300d3894647d9353c796a9e35
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Sat, 16 Jan 2016 14:18:08 +0100
Change ports to use $destdir
Diffstat:
M dash/mkfile | 6 +++---
M mkfile | 1 +
M musl/mkfile | 10 +++++-----
M pm/mkfile | 2 +-
4 files changed, 10 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/dash/mkfile b/dash/mkfile
t@@ -6,7 +6,7 @@ url=http://gondor.apana.org.au/~herbert/dash/files/$pkg-$ver.tar.gz
<../default.mk
install:V: build
- mkdir -p $pkg-$ver/.rootfs
+ mkdir -p $destdir
cd $pkg-$ver
- make PREFIX= DESTDIR=`pwd`/.rootfs install
- ln -sf /bin/dash .rootfs/bin/sh
+ make PREFIX= DESTDIR=$destdir install
+ ln -sf /bin/dash $destdir/bin/sh
(DIR) diff --git a/mkfile b/mkfile
t@@ -3,5 +3,6 @@
clean:QV:
for p in ${ALL}; do (cd $p; mk clean); done
+
distclean:QV:
for p in ${ALL}; do (cd $p; mk distclean); done
(DIR) diff --git a/musl/mkfile b/musl/mkfile
t@@ -6,9 +6,9 @@ url=http://www.musl-libc.org/releases/$pkg-$ver.tar.gz
<../default.mk
install:QV: build
- mkdir -p $pkg-$ver/.rootfs/bin
+ mkdir -p $destdir/bin
cd $pkg-$ver
- make DESTDIR=$(pwd)/.rootfs install
- ln -sf /lib/ld-musl-x86_64.so.1 .rootfs/bin/ldd
- cp ../ldconfig .rootfs/bin/ldconfig
- chmod 755 .rootfs/bin/ldconfig
+ make DESTDIR=$destdir install
+ ln -sf /lib/ld-musl-x86_64.so.1 $destdir/bin/ldd
+ cp ../ldconfig $destdir/bin/ldconfig
+ chmod 755 $destdir/bin/ldconfig
(DIR) diff --git a/pm/mkfile b/pm/mkfile
t@@ -3,4 +3,4 @@ ver = 6145d57
git=git://z3bra.org/pm
<../config.mk
-<../mk.build
+<../default.mk