summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-03-20 01:21:42 -0700
committerKhem Raj <raj.khem@gmail.com>2022-03-21 08:25:11 -0700
commit1c23fd7f8b58636983fd0b233c2043e34d3bc3b3 (patch)
treebec8d14f608f62f917b17897e2e295c37e180ace
parente22d8a1a8912b67b1db5611d6e359a63d236b25f (diff)
downloadmeta-openembedded-1c23fd7f8b58636983fd0b233c2043e34d3bc3b3.tar.gz
libsquish: Define LIBDIR knob
this is to avoid assuming /lib for library path Enable compile with altivec when in machine features Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch36
-rw-r--r--meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb3
2 files changed, 38 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch b/meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch
new file mode 100644
index 000000000..c6eb7ac57
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch
@@ -0,0 +1,36 @@
1From 4fd08c0446ca02917014b63f9080c4205958a130 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 20 Mar 2022 01:15:32 -0700
4Subject: [PATCH] makefile: Add LIBDIR
5
6Avoid hardcoding /lib
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 Makefile | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/Makefile b/Makefile
15index 1c01f89..2b1df5b 100644
16--- a/Makefile
17+++ b/Makefile
18@@ -11,12 +11,12 @@ all : $(LIB) squish.pc
19
20 install : $(LIB) squish.pc
21 install squish.h $(INSTALL_DIR)/include
22- install libsquish.a $(INSTALL_DIR)/lib
23- install squish.pc $(INSTALL_DIR)/lib/pkgconfig
24+ install libsquish.a $(INSTALL_DIR)/$(LIBDIR)
25+ install squish.pc $(INSTALL_DIR)/$(LIBDIR)/pkgconfig
26
27 uninstall:
28 $(RM) $(INSTALL_DIR)/include/squish.h
29- $(RM) $(INSTALL_DIR)/lib/libsquish.a
30+ $(RM) $(INSTALL_DIR)/$(LIBDIR)/libsquish.a
31
32 $(LIB) : $(OBJ)
33 $(AR) cr $@ $?
34--
352.35.1
36
diff --git a/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb b/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb
index cb42d943f..b69d30d25 100644
--- a/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb
+++ b/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb
@@ -10,7 +10,8 @@ SRC_URI = "git://github.com/OpenELEC/libsquish.git;protocol=https;branch=master"
10 10
11S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
12 12
13EXTRA_OEMAKE = "INSTALL_DIR=${D}${prefix}" 13EXTRA_OEMAKE = "INSTALL_DIR=${D}${prefix} LIBDIR=${base_libdir} \
14 ${@bb.utils.contains('TUNE_FEATURES', 'altivec', 'USE_ALTIVEC=1', '', d)}"
14 15
15do_install() { 16do_install() {
16 install -d ${D}${includedir} 17 install -d ${D}${includedir}