diff options
author | Junfeng Dong <junfeng.dong@intel.com> | 2013-04-08 16:34:55 +0800 |
---|---|---|
committer | Junfeng Dong <junfeng.dong@intel.com> | 2013-04-08 16:34:55 +0800 |
commit | 4968119b61f3665e5254b277404a3b639475dee1 (patch) | |
tree | dab8342eb096577b6644b7d54b16ec6614f98310 | |
parent | 0c48e05d828d40f7a0f484f86a2de7da12046ba2 (diff) | |
download | audio-io-tizen_2.1.tar.gz audio-io-tizen_2.1.tar.bz2 audio-io-tizen_2.1.zip |
Fix for 64 bit compatibility.submit/tizen_2.2/20130714.143852submit/tizen_2.2/20130714.135146submit/tizen_2.1/20130424.230234accepted/tizen_2.1/20130425.0405332.2_release2.1b_releasetizen_2.1
- Fix hardcoding path.
- Use %cmake to set default paths.
Change-Id: I92ffb4a32b9b88b1a8ed62b4e53abdbf479af42c
-rwxr-xr-x | CMakeLists.txt | 6 | ||||
-rw-r--r-- | capi-media-audio-io.pc.in | 2 | ||||
-rw-r--r-- | packaging/capi-media-audio-io.spec | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b018af6..08a3278 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ ENDIF("${ARCH}" STREQUAL "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}) @@ -50,7 +50,7 @@ SET_TARGET_PROPERTIES(${fw_name} CLEAN_DIRECT_OUTPUT 1 ) -INSTALL(TARGETS ${fw_name} DESTINATION lib) +INSTALL(TARGETS ${fw_name} DESTINATION ${LIB_INSTALL_DIR}) INSTALL( DIRECTORY ${INC_DIR}/ DESTINATION include/media FILES_MATCHING @@ -68,7 +68,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-audio-io.pc.in b/capi-media-audio-io.pc.in index 5d02f8d..1997d91 100644 --- a/capi-media-audio-io.pc.in +++ b/capi-media-audio-io.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-audio-io.spec b/packaging/capi-media-audio-io.spec index 473a8f4..dde3293 100644 --- a/packaging/capi-media-audio-io.spec +++ b/packaging/capi-media-audio-io.spec @@ -30,7 +30,7 @@ An Audio Input & Audio Output library in Tizen Native API (DEV) %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} |