mirror of git://git.2f30.org/morpheus.git
Convert sbase with inline building instructions
For packages in base, we will ignore make/autoconf. We can just use inlined build instructions in the mk recipe.
This commit is contained in:
parent
bd3026cc3d
commit
dc78d5d7c9
22
pkgs/sbase
22
pkgs/sbase
|
@ -1,7 +1,23 @@
|
|||
git="git://git.2f30.org/sbase"
|
||||
|
||||
build: crossmusl
|
||||
set -x
|
||||
cd src/sbase
|
||||
make clean
|
||||
make -j$nprocs CC=$CC LDFLAGS="$LDFLAGS"
|
||||
make PREFIX="$root" install
|
||||
for f in util/*.c; do
|
||||
$CC -c $f -o "${f%%.c}.o" $CFLAGS
|
||||
done
|
||||
for f in util/*.o; do
|
||||
ar -r -c util.a $f
|
||||
done
|
||||
ranlib util.a
|
||||
for f in *.c; do
|
||||
$CC -c $f $CFLAGS
|
||||
done
|
||||
for f in *.o; do
|
||||
$CC -o "${f%.*}" $f util.a $LDFLAGS
|
||||
done
|
||||
mkdir -p "$root/share/man/man1"
|
||||
for f in *.o; do
|
||||
cp "${f%.*}" "$root/bin"
|
||||
cp "${f%%.o}.1" "$root/share/man/man1"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue