mkports

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

commit 9def9ecd8692eccfdaecce72c6af48d5750bc635
parent 2805da23f634a7f300d3894647d9353c796a9e35
Author: z3bra <willyatmailoodotorg>
Date:   Sat Jan 16 14:18:08 2016

Change ports to use $destdir

Diffstat:
 dash/mkfile |  6 +++---
 mkfile      |  1 +
 musl/mkfile | 10 +++++-----
 pm/mkfile   |  2 +-
 4 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/dash/mkfile b/dash/mkfile @@ -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 diff --git a/mkfile b/mkfile @@ -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 diff --git a/musl/mkfile b/musl/mkfile @@ -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 diff --git a/pm/mkfile b/pm/mkfile @@ -3,4 +3,4 @@ ver = 6145d57 git=git://z3bra.org/pm <../config.mk -<../mk.build +<../default.mk