Index: lib/Makefile
--- lib/Makefile.orig	2019-08-15 13:59:59.000000000 +0200
+++ lib/Makefile	2020-01-05 10:17:37.565039000 +0100
@@ -155,11 +155,7 @@
 INCLUDEDIR  ?= $(prefix)/include
 includedir  ?= $(INCLUDEDIR)
 
-  ifneq (,$(filter $(TARGET_OS),OpenBSD FreeBSD NetBSD DragonFly MidnightBSD))
-PKGCONFIGDIR ?= $(prefix)/libdata/pkgconfig
-  else
 PKGCONFIGDIR ?= $(libdir)/pkgconfig
-  endif
 pkgconfigdir ?= $(PKGCONFIGDIR)
 
 liblz4.pc: liblz4.pc.in Makefile
Index: programs/Makefile
--- programs/Makefile.orig	2019-08-15 13:59:59.000000000 +0200
+++ programs/Makefile	2020-01-05 10:18:54.026976000 +0100
@@ -138,7 +138,7 @@
 exec_prefix ?= $(EXEC_PREFIX)
 BINDIR      ?= $(exec_prefix)/bin
 bindir      ?= $(BINDIR)
-DATAROOTDIR ?= $(prefix)/share
+DATAROOTDIR ?= $(prefix)
 datarootdir ?= $(DATAROOTDIR)
 MANDIR      ?= $(datarootdir)/man
 mandir      ?= $(MANDIR)
