aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libbsd
diff options
context:
space:
mode:
Diffstat (limited to 'package/libs/libbsd')
-rw-r--r--package/libs/libbsd/Makefile10
-rw-r--r--package/libs/libbsd/patches/001-fix-libpath.patch13
2 files changed, 20 insertions, 3 deletions
diff --git a/package/libs/libbsd/Makefile b/package/libs/libbsd/Makefile
index 26e05f79a16..3c42d64aba6 100644
--- a/package/libs/libbsd/Makefile
+++ b/package/libs/libbsd/Makefile
@@ -1,18 +1,21 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libbsd
-PKG_VERSION:=0.10.0
+PKG_VERSION:=0.11.8
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
-PKG_HASH:=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887
+PKG_HASH:=55fdfa2696fb4d55a592fa9ad14a9df897c7b0008ddb3b30c419914841f85f33
PKG_LICENSE:=BSD-4-Clause
PKG_LICENSE_FILES:=COPYING
+PKG_CPE_ID:=cpe:/a:freedesktop:libbsd
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS := libmd
+PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
@@ -27,6 +30,8 @@ define Package/libbsd/description
This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems, thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.
endef
+TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
+
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
@@ -42,4 +47,3 @@ define Package/libbsd/install
endef
$(eval $(call BuildPackage,libbsd))
-
diff --git a/package/libs/libbsd/patches/001-fix-libpath.patch b/package/libs/libbsd/patches/001-fix-libpath.patch
new file mode 100644
index 00000000000..ec72f776240
--- /dev/null
+++ b/package/libs/libbsd/patches/001-fix-libpath.patch
@@ -0,0 +1,13 @@
+do not use host path to fix cross compiling
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -230,7 +230,7 @@ if NEED_TRANSPARENT_LIBMD
+ (echo '/* GNU ld script'; \
+ echo ' * The MD5 functions are provided by the libmd library. */'; \
+ cat format.ld; \
+- echo "GROUP($(runtimelibdir)/$$soname AS_NEEDED($(MD5_LIBS)))"; \
++ echo "GROUP($$soname AS_NEEDED($(MD5_LIBS)))"; \
+ )>$(DESTDIR)$(libdir)/libbsd.so
+ else
+ if [ "$(libdir)" != "$(runtimelibdir)" ]; then \