[packages/x265] - pass relative LIB_INSTALL_DIR to get correct libdir in .pc file - use out of source build
qboosh
qboosh at pld-linux.org
Tue Aug 26 21:38:08 CEST 2014
commit 7b54826743ba96968dc9ed9ca740dddcd9dd1374
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Aug 26 21:38:22 2014 +0200
- pass relative LIB_INSTALL_DIR to get correct libdir in .pc file
- use out of source build
x265.spec | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/x265.spec b/x265.spec
index 2b76766..ce782f7 100644
--- a/x265.spec
+++ b/x265.spec
@@ -73,16 +73,17 @@ Statyczna biblioteka x265.
%patch1 -p1
%build
-cd source
-%cmake \
- -DLIB_INSTALL_DIR=%{_libdir} \
- .
+install -d source/build
+cd source/build
+%cmake .. \
+ -DLIB_INSTALL_DIR=%{_lib}
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} -C source install \
+%{__make} -C source/build install \
DESTDIR=$RPM_BUILD_ROOT
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/x265.git/commitdiff/7b54826743ba96968dc9ed9ca740dddcd9dd1374
More information about the pld-cvs-commit
mailing list