mkports

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

commit d1876262c9d257ec48acbe691dd8b196699c2c36
parent 0d7a483cb622ae404c957d3896866cf385a4ae2e
Author: root <root@doom.z3bra.org>
Date:   Wed May 31 06:29:07 +0000

libdb: new port

Diffstat:
libdb/mkfile | 13+++++++++++++
libdb/patches/000-config-musl.diff | 22++++++++++++++++++++++
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/libdb/mkfile b/libdb/mkfile @@ -0,0 +1,13 @@ +pkg = libdb +ver = 5.3.28 +url = http://download.oracle.com/berkeley-db/db-$ver.tar.gz +<../default.mk + +CLENAUP = docs + +build:V: fetch patch + #cd $WORK/$pkg-$ver/build_unix + #../dist/configure $CONFIGURE + cd $WORK/$pkg-$ver + ./dist/configure $CONFIGURE + make -j${NPROC} CC="$CC" ${MAKEFLAGS} diff --git a/libdb/patches/000-config-musl.diff b/libdb/patches/000-config-musl.diff @@ -0,0 +1,22 @@ +diff -urN a/dist/config.sub b/dist/config.sub +--- a/dist/config.sub 2013-09-09 15:35:02.000000000 +0000 ++++ b/dist/config.sub 2017-05-31 06:19:24.073323700 +0000 +@@ -124,7 +124,7 @@ + # Here we must recognize all the valid KERNEL-OS combinations. + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` + case $maybe_os in +- nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ ++ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-musl | linux-newlib* | \ + linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ +@@ -1384,6 +1384,9 @@ + -linux-dietlibc) + os=-linux-dietlibc + ;; ++ -linux-musl) ++ os=-linux-musl ++ ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;;