summaryrefslogtreecommitdiff
path: root/sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch')
-rw-r--r--sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch b/sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch
new file mode 100644
index 00000000000..5597b1c3f80
--- /dev/null
+++ b/sys-auth/pam-face-authentication/files/pam-face-authentication-0.3-opencv.patch
@@ -0,0 +1,23 @@
+Fixes build with newer versions of OpenCV.
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -88,7 +88,7 @@
+
+ INCLUDE_DIRECTORIES( "${CMAKE_SOURCE_DIR}/include" )
+ INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
+-INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
++INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
+ INCLUDE_DIRECTORIES(${PAM_INCLUDE_DIR})
+ ADD_LIBRARY(pam_face_authentication SHARED ${PAM_FACE_AUTHENTICATE_SRCS})
+ SET_TARGET_PROPERTIES( pam_face_authentication PROPERTIES PREFIX "")
+@@ -96,8 +96,8 @@
+ TARGET_LINK_LIBRARIES( xwindowFaceAuth ${X11_LIBRARIES})
+
+ ADD_EXECUTABLE( qt-facetrainer ${QT_FACETRAINER_SRCS} ${QT_FACETRAINER_MOC_SRCS} ${QT_FACETRAINER_RC_SRCS} ${QT_FACETRAINER_UI_HDRS} )
+-TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OPENCV_LIBRARIES})
+-TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OPENCV_LIBRARIES})
++TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OpenCV_LIBS})
++TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OpenCV_LIBS})
+
+ if( UNIX AND NOT APPLE )
+ if( NOT DESKTOP_ENTRY )