tRemove libtool archives upon install - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit c5eb1e4294a9a3b07586e4726bc97dc733ca53a7
(DIR) parent f963992c3984b8e86adae80c01919b9b805b395c
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Sun, 17 Jan 2016 20:40:27 +0100
Remove libtool archives upon install
Diffstat:
M default.mk | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/default.mk b/default.mk
t@@ -1,7 +1,7 @@
-destdir = ${PWD}/$pkg-$ver/.rootfs
+destdir = `{printf '%s/%s/.rootfs' "$(pwd)" "$pkg-$ver"}
# create a pack from an chroot install (see the "install" target)
-$pkg\#$ver.tar.bz2:Q: $destdir
+$pkg\#$ver.tar.bz2:Q: install
cd $destdir
tar -c `ls` | bzip2 -c > ../../$pkg\#$ver.tar.bz2
t@@ -17,11 +17,12 @@ build:QV: fetch patch
# install the pack to a .rootfs directory
# this is where the "pack" target will chdir to create the pack
-$destdir:QV: build
+install:QV: build
if [ ! -d $destdir ]; then
mkdir -p $destdir
cd $pkg-$ver
make PREFIX= DESTDIR=$destdir install
+ find $destdir -name '*.la' -delete
fi
# patch your software using everything in ./patches
t@@ -52,9 +53,6 @@ fetch-archive:QV:
rm -rf $pkg-$ver
src=$(tar -xvf $out|sed -n 1p|cut -f1 -d/)
if [ "$src" != "$pkg-$ver" ]; then
- pwd
- ls -l
- echo mv "$src" "$pkg-$ver"
mv "$src" "$pkg-$ver"
fi
fi
t@@ -66,4 +64,4 @@ clean:V:
# remove the pack
distclean:V: clean
- rm -f $pkg:$ver.tar.bz2
+ rm -f $pkg#$ver.tar.bz2