FreeBSD Bugzilla – Attachment 229815 Details for
Bug 260079
graphics/leptonica: update to 1.82.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add FindLeptonica.cmake file
patch-cmake_FindLeptonica.cmake (text/plain), 1.64 KB, created by
Rainer Hurling
on 2021-11-30 19:36:25 UTC
(
hide
)
Description:
patch to add FindLeptonica.cmake file
Filename:
MIME Type:
Creator:
Rainer Hurling
Created:
2021-11-30 19:36:25 UTC
Size:
1.64 KB
patch
obsolete
>--- cmake/FindLeptonica.cmake.orig 2021-11-28 11:06:50 UTC >+++ cmake/FindLeptonica.cmake >@@ -0,0 +1,52 @@ >+# >+# Find Leptonica >+# >+# Exported variables: >+# Leptonica_FOUND >+# Leptonica_INCLUDE_DIRS >+# Leptonica_LIBRARIES >+# >+# Leptonica_VERSION >+# Leptonica_MAJOR_VERSION >+# Leptonica_MINOR_VERSION >+# >+ >+find_path(Leptonica_INCLUDE_DIR leptonica/allheaders.h >+ HINTS >+ /usr/include >+ /usr/local/include >+ /opt/include >+ /opt/local/include >+ ${Leptonica_DIR}/include >+) >+if(NOT "${Leptonica_INCLUDE_DIR}" EQUAL "Leptonica_INCLUDE_DIR-NOTFOUND") >+ set(Leptonica_INCLUDE_DIRS ${Leptonica_INCLUDE_DIR}/leptonica) >+ file(STRINGS ${Leptonica_INCLUDE_DIRS}/allheaders.h Leptonica_MAJOR_VERSION REGEX "LIBLEPT_MAJOR_VERSION") >+ file(STRINGS ${Leptonica_INCLUDE_DIRS}/allheaders.h Leptonica_MINOR_VERSION REGEX "LIBLEPT_MINOR_VERSION") >+ string(REGEX MATCH "[0-9]+" Leptonica_MAJOR_VERSION ${Leptonica_MAJOR_VERSION}) >+ string(REGEX MATCH "[0-9]+" Leptonica_MINOR_VERSION ${Leptonica_MINOR_VERSION}) >+ set(Leptonica_VERSION ${Leptonica_MAJOR_VERSION}.${Leptonica_MINOR_VERSION}) >+endif() >+ >+find_library(Leptonica_LIBRARY NAMES lept liblept >+ HINTS >+ /usr/lib >+ /usr/local/lib >+ /opt/lib >+ /opt/local/lib >+ ${Leptonica_DIR}/lib >+) >+set(Leptonica_LIBRARIES ${Leptonica_LIBRARY}) >+ >+include(FindPackageHandleStandardArgs) >+ >+find_package_handle_standard_args(Leptonica >+ REQUIRED_VARS >+ Leptonica_INCLUDE_DIRS >+ Leptonica_LIBRARIES >+ VERSION_VAR Leptonica_VERSION >+ FAIL_MESSAGE "Try to set Leptonica_DIR or Leptonica_ROOT" >+) >+ >+mark_as_advanced(Leptonica_INCLUDE_DIRS Leptonica_LIBRARIES) >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260079
:
229758
|
229788
|
229806
| 229815 |
229910
|
230746