[packages/OpenAL] - added pc patch (support absolute CMAKE_INSTALL_*DIR); release 2
qboosh
qboosh at pld-linux.org
Thu Jul 25 05:27:32 CEST 2019
commit 60781cc70cc4e8845abb8b8abc94edd0f42e4bb8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 25 05:29:26 2019 +0200
- added pc patch (support absolute CMAKE_INSTALL_*DIR); release 2
OpenAL-pc.patch | 15 +++++++++++++++
OpenAL.spec | 4 +++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/OpenAL.spec b/OpenAL.spec
index ca17c4b..fc3084f 100644
--- a/OpenAL.spec
+++ b/OpenAL.spec
@@ -20,11 +20,12 @@ Summary: Open Audio Library
Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku
Name: OpenAL
Version: 1.19.1
-Release: 1
+Release: 2
License: LGPL v2+
Group: Libraries
Source0: http://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2
# Source0-md5: af6f148c342276a51ea9c33ebd303f78
+Patch0: %{name}-pc.patch
URL: http://www.openal.org/
%{?with_sdl:BuildRequires: SDL2-devel >= 2}
%{?with_alsa:BuildRequires: alsa-lib-devel}
@@ -94,6 +95,7 @@ Graficzny interfejs do konfiguracji biblioteki OpenAL.
%prep
%setup -q -n openal-soft-%{version}
+%patch0 -p1
%build
cd build
diff --git a/OpenAL-pc.patch b/OpenAL-pc.patch
new file mode 100644
index 0000000..dcfdcb7
--- /dev/null
+++ b/OpenAL-pc.patch
@@ -0,0 +1,15 @@
+--- openal-soft-1.19.1/CMakeLists.txt.orig 2018-10-12 00:05:31.000000000 +0200
++++ openal-soft-1.19.1/CMakeLists.txt 2019-07-25 05:26:21.124715068 +0200
+@@ -1350,9 +1350,9 @@
+ # Needed for openal.pc.in
+ SET(prefix ${CMAKE_INSTALL_PREFIX})
+ SET(exec_prefix "\${prefix}")
+-SET(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
+-SET(bindir "\${exec_prefix}/${CMAKE_INSTALL_BINDIR}")
+-SET(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
++SET(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
++SET(bindir "${CMAKE_INSTALL_FULL_BINDIR}")
++SET(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
+ SET(PACKAGE_VERSION "${LIB_VERSION}")
+ SET(PKG_CONFIG_CFLAGS )
+ SET(PKG_CONFIG_PRIVATE_LIBS )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/OpenAL.git/commitdiff/60781cc70cc4e8845abb8b8abc94edd0f42e4bb8
More information about the pld-cvs-commit
mailing list