mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-16 10:28:33 +00:00
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"
|
git="git://git.2f30.org/sbase"
|
||||||
|
|
||||||
build: crossmusl
|
build: crossmusl
|
||||||
|
set -x
|
||||||
cd src/sbase
|
cd src/sbase
|
||||||
make clean
|
for f in util/*.c; do
|
||||||
make -j$nprocs CC=$CC LDFLAGS="$LDFLAGS"
|
$CC -c $f -o "${f%%.c}.o" $CFLAGS
|
||||||
make PREFIX="$root" install
|
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
Block a user