diff --git a/extra/libbsd/build b/extra/libbsd/build new file mode 100755 index 00000000..62a8c834 --- /dev/null +++ b/extra/libbsd/build @@ -0,0 +1,7 @@ +#!/bin/sh -e + +patch -p1 < largefile64.patch + +./configure --prefix=/usr +make +make DESTDIR="$1" install diff --git a/extra/libbsd/checksums b/extra/libbsd/checksums new file mode 100644 index 00000000..67ffedd0 --- /dev/null +++ b/extra/libbsd/checksums @@ -0,0 +1,2 @@ +97712f30a614595aade23a00fe2bbf0da82ad13941eaf67285ea28e4015d568f87 +b73a7182fb61985d3f5eb14b6529d440f65e18a2ba510f11419baa7b04b6b2ea4e diff --git a/extra/libbsd/depends b/extra/libbsd/depends new file mode 100644 index 00000000..bad26870 --- /dev/null +++ b/extra/libbsd/depends @@ -0,0 +1 @@ +libmd diff --git a/extra/libbsd/largefile64.patch b/extra/libbsd/largefile64.patch new file mode 100644 index 00000000..d9a850c0 --- /dev/null +++ b/extra/libbsd/largefile64.patch @@ -0,0 +1,14 @@ +Large file extensions are not exposed to funopen.c unless two macros are defined. +--- a/src/funopen.c ++++ b/src/funopen.c +@@ -24,6 +24,9 @@ + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#define _LARGEFILE64_SOURCE ++#define _FILE_OFFSET_BITS 64 ++ + #include + #include + #include + diff --git a/extra/libbsd/sources b/extra/libbsd/sources new file mode 100644 index 00000000..2661f73b --- /dev/null +++ b/extra/libbsd/sources @@ -0,0 +1,2 @@ +https://libbsd.freedesktop.org/releases/libbsd-0.11.7.tar.xz +./largefile64.patch diff --git a/extra/libbsd/version b/extra/libbsd/version new file mode 100644 index 00000000..eb8c0995 --- /dev/null +++ b/extra/libbsd/version @@ -0,0 +1 @@ +0.11.7 1