summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunfeng Dong <junfeng.dong@intel.com>2013-04-08 16:28:00 +0800
committerJunfeng Dong <junfeng.dong@intel.com>2013-04-08 16:28:00 +0800
commitcd50896b7fac67e67068f466533423c08bcd931d (patch)
tree0903fa551dd847c1a97aa632116ee3240c2192cb
parentfb7d9f3857cc935050174f4a77093d8c7cb5e1b4 (diff)
downloadvideo-util-tizen_2.1.tar.gz
video-util-tizen_2.1.tar.bz2
video-util-tizen_2.1.zip
- Fix hardcoding path. - Use %cmake to set default paths. Change-Id: Ic8141390ac06d4855e1089e06f14d7a1e9deb7fb
-rwxr-xr-xCMakeLists.txt6
-rwxr-xr-xcapi-media-video-util.pc.in2
-rwxr-xr-xpackaging/capi-media-video-util.spec4
3 files changed, 5 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e55fe27..6d68d25 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,7 +54,7 @@ ENDIF("${ARCH}" MATCHES "^arm.*")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ADD_DEFINITIONS("-DTIZEN_DEBUG")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
+SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
aux_source_directory(src SOURCES)
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
@@ -69,7 +69,7 @@ SET_TARGET_PROPERTIES(${fw_name}
)
-INSTALL(TARGETS ${fw_name} DESTINATION lib)
+INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR})
INSTALL(
DIRECTORY ${INC_DIR}/ DESTINATION include/${service}
FILES_MATCHING
@@ -86,7 +86,7 @@ CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc
@ONLY
)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
ADD_SUBDIRECTORY(test)
diff --git a/capi-media-video-util.pc.in b/capi-media-video-util.pc.in
index afda32e..1508489 100755
--- a/capi-media-video-util.pc.in
+++ b/capi-media-video-util.pc.in
@@ -3,7 +3,7 @@
prefix=@PREFIX@
exec_prefix=/usr
-libdir=/usr/lib
+libdir=@LIB_INSTALL_DIR@
includedir=/usr/include/media
Name: @PC_NAME@
diff --git a/packaging/capi-media-video-util.spec b/packaging/capi-media-video-util.spec
index 65cf7fc..f85b9c4 100755
--- a/packaging/capi-media-video-util.spec
+++ b/packaging/capi-media-video-util.spec
@@ -34,11 +34,10 @@ A Video Utility library in Tizen Native API (Developement)
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
-cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+%cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
mkdir -p %{buildroot}/%{_datadir}/license
cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
@@ -47,7 +46,6 @@ cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/
%postun
-
%files
%manifest capi-media-video-util.manifest
%{_libdir}/lib*.so.*