diff options
author | Philip van der Hoeven <philip@vd-hoeven.nl> | 2016-08-04 18:50:31 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-04 18:50:31 +0700 |
commit | 3ddc72a78693994c4e30780b8689d1a5bcf2f936 (patch) | |
tree | 710ca7ed66d567bec99c019321e5300642d18aa4 /multimedia/OpenPHT/fribidi.patch | |
parent | 4ecd2ff5027a2f233aa12274ea2b8627061c814f (diff) |
multimedia/OpenPHT: Added (Plex client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/OpenPHT/fribidi.patch')
-rw-r--r-- | multimedia/OpenPHT/fribidi.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/multimedia/OpenPHT/fribidi.patch b/multimedia/OpenPHT/fribidi.patch new file mode 100644 index 0000000000000..3b135bdfc3ca3 --- /dev/null +++ b/multimedia/OpenPHT/fribidi.patch @@ -0,0 +1,47 @@ +--- a/plex/CMakeModules/FindFriBiDi.cmake ++++ b/plex/CMakeModules/FindFriBiDi.cmake +@@ -10,43 +10,9 @@ + # FRIBIDI_LIBRARY, where to find the FriBiDi library. + + include(CheckSymbolExists) ++include(FindPkgConfig) ++pkg_check_modules(FRIBIDI fribidi) + +-SET(FRIBIDI_FOUND "NO") +- +-# Set variable in temp var, otherwise FIND_PATH might fail +-# unset isn't present in the required version of cmake. +-FIND_PATH(xFRIBIDI_INCLUDE_DIR fribidi.h +- PATHS /usr/local/include +- /usr/include +- PATH_SUFFIXES fribidi +- ) +-set(FRIBIDI_INCLUDE_DIR ${xFRIBIDI_INCLUDE_DIR}) +- +-SET(FRIBIDI_NAMES ${FRIBIDI_NAMES} fribidi libfribidi) +-FIND_LIBRARY(FRIBIDI_LIBRARY +- NAMES ${FRIBIDI_NAMES} +- PATHS /usr/lib /usr/local/lib +- ) +- +-IF (FRIBIDI_LIBRARY AND FRIBIDI_INCLUDE_DIR) +- SET(CMAKE_REQUIRED_INCLUDES ${FRIBIDI_INCLUDE_DIR}) +- SET(CMAKE_REQUIRED_LIBRARIES ${FRIBIDI_LIBRARY}) +- CHECK_SYMBOL_EXISTS(fribidi_utf8_to_unicode fribidi.h FOUND_fribidi_utf8_to_unicode) +- CHECK_SYMBOL_EXISTS(fribidi_charset_to_unicode fribidi.h FOUND_fribidi_charset_to_unicode) +- if(FOUND_fribidi_charset_to_unicode) +- SET(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY}) +- SET(FRIBIDI_FOUND "YES") +- elseif(FOUND_fribidi_utf8_to_unicode) +- SET(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY}) +- SET(FRIBIDI_FOUND "YES") +- add_definitions(-DOLD_FRIBIDI) +- MESSAGE(STATUS "Legacy FriBiDi: ${FRIBIDI_LIBRARY}") +- else() +- SET(FRIBIDI_LIBRARIES "NOTFOUND") +- SET(FRIBIDI_INCLUDE_DIR "NOTFOUND") +- SET(FRIBIDI_FOUND "NO") +- endif() +-ENDIF (FRIBIDI_LIBRARY AND FRIBIDI_INCLUDE_DIR) + + IF (FRIBIDI_FOUND) |