aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-02-19 11:40:01 +0300
committerCem Keylan <cem@ckyln.com>2021-02-19 11:40:24 +0300
commit5c300e363a3d2b7bf5baac2418192e21a79e77d1 (patch)
tree7f6669b39b5ac92ce99dd8a1ede2be0bdebc3685
parentd841603afab7ca017abf72fa095b42329e72413a (diff)
downloadrepository-5c300e363a3d2b7bf5baac2418192e21a79e77d1.tar.gz
libbsd: build libmd into the library
-rwxr-xr-xextra/libbsd/build20
-rw-r--r--extra/libbsd/checksums1
-rw-r--r--extra/libbsd/depends1
-rw-r--r--extra/libbsd/sources3
-rw-r--r--extra/libbsd/version2
5 files changed, 24 insertions, 3 deletions
diff --git a/extra/libbsd/build b/extra/libbsd/build
index 6daf22f8..ffbfa88f 100755
--- a/extra/libbsd/build
+++ b/extra/libbsd/build
@@ -1,7 +1,27 @@
#!/bin/sh -e
+tmp_dir=$PWD/tmp
+
+(
+cd libmd
+
+./configure \
+ --prefix=/ \
+ --disable-shared
+
+make
+make DESTDIR="$tmp_dir" install
+)
+
+(
+cd libbsd
+
+export CFLAGS="$CFLAGS -I$tmp_dir/include"
+export LIBS=$tmp_dir/lib/libmd.a
+
./configure \
--prefix=/usr
make
make DESTDIR="$1" install
+)
diff --git a/extra/libbsd/checksums b/extra/libbsd/checksums
index 98f7d48a..22685000 100644
--- a/extra/libbsd/checksums
+++ b/extra/libbsd/checksums
@@ -1 +1,2 @@
ff95cf8184151dacae4247832f8d4ea8800fa127dbd15033ecfe839f285b42a1 libbsd-0.11.3.tar.xz
+5a02097f95cc250a3f1001865e4dbba5f1d15554120f95693c0541923c52af4a libmd-1.0.3.tar.xz
diff --git a/extra/libbsd/depends b/extra/libbsd/depends
deleted file mode 100644
index bad26870..00000000
--- a/extra/libbsd/depends
+++ /dev/null
@@ -1 +0,0 @@
-libmd
diff --git a/extra/libbsd/sources b/extra/libbsd/sources
index dc981369..582b3a61 100644
--- a/extra/libbsd/sources
+++ b/extra/libbsd/sources
@@ -1 +1,2 @@
-https://libbsd.freedesktop.org/releases/libbsd-0.11.3.tar.xz
+https://libbsd.freedesktop.org/releases/libbsd-0.11.3.tar.xz libbsd
+https://libbsd.freedesktop.org/releases/libmd-1.0.3.tar.xz libmd
diff --git a/extra/libbsd/version b/extra/libbsd/version
index eb89ea93..296aeb54 100644
--- a/extra/libbsd/version
+++ b/extra/libbsd/version
@@ -1 +1 @@
-0.11.3 1
+0.11.3 2