diff options
| -rw-r--r-- | meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch | 36 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb | 3 |
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 0000000000..c6eb7ac576 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/libsquish/libsquish/0001-makefile-Add-LIBDIR.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 4fd08c0446ca02917014b63f9080c4205958a130 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 20 Mar 2022 01:15:32 -0700 | ||
| 4 | Subject: [PATCH] makefile: Add LIBDIR | ||
| 5 | |||
| 6 | Avoid hardcoding /lib | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | Makefile | 6 +++--- | ||
| 12 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/Makefile b/Makefile | ||
| 15 | index 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 | -- | ||
| 35 | 2.35.1 | ||
| 36 | |||
diff --git a/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb b/meta-multimedia/recipes-multimedia/libsquish/libsquish_git.bb index cb42d943fc..b69d30d259 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 | ||
| 11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
| 12 | 12 | ||
| 13 | EXTRA_OEMAKE = "INSTALL_DIR=${D}${prefix}" | 13 | EXTRA_OEMAKE = "INSTALL_DIR=${D}${prefix} LIBDIR=${base_libdir} \ |
| 14 | ${@bb.utils.contains('TUNE_FEATURES', 'altivec', 'USE_ALTIVEC=1', '', d)}" | ||
| 14 | 15 | ||
| 15 | do_install() { | 16 | do_install() { |
| 16 | install -d ${D}${includedir} | 17 | install -d ${D}${includedir} |
