$OpenBSD: patch-Modules_FindMPEG2_cmake,v 1.7 2016/11/28 09:15:13 dcoppa Exp $
--- Modules/FindMPEG2.cmake.orig	Fri Nov 11 15:37:13 2016
+++ Modules/FindMPEG2.cmake	Fri Nov 25 22:31:44 2016
@@ -23,27 +23,21 @@
 #   MPEG2_vo_LIBRARY, where to find the vo library.
 
 find_path(MPEG2_INCLUDE_DIR
-  NAMES mpeg2.h mpeg2dec/mpeg2.h
-  PATHS /usr/local/livid
+  NAMES mpeg2dec/mpeg2.h
+  PATHS ${LOCALBASE}/include
 )
 
 find_library(MPEG2_mpeg2_LIBRARY mpeg2
-  /usr/local/livid/mpeg2dec/libmpeg2/.libs
+  ${LOCALBASE}/lib
 )
 
-find_library( MPEG2_vo_LIBRARY vo
-  /usr/local/livid/mpeg2dec/libvo/.libs
-)
-
-
 # handle the QUIETLY and REQUIRED arguments and set MPEG2_FOUND to TRUE if
 # all listed variables are TRUE
 include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG2 DEFAULT_MSG MPEG2_mpeg2_LIBRARY MPEG2_INCLUDE_DIR)
 
 if(MPEG2_FOUND)
-  set( MPEG2_LIBRARIES ${MPEG2_mpeg2_LIBRARY}
-                        ${MPEG2_vo_LIBRARY})
+  set( MPEG2_LIBRARIES ${MPEG2_mpeg2_LIBRARY})
 
   #some native mpeg2 installations will depend
   #on libSDL, if found, add it in.
@@ -53,4 +47,4 @@ if(MPEG2_FOUND)
   endif()
 endif()
 
-mark_as_advanced(MPEG2_INCLUDE_DIR MPEG2_mpeg2_LIBRARY MPEG2_vo_LIBRARY)
+mark_as_advanced(MPEG2_INCLUDE_DIR MPEG2_mpeg2_LIBRARY)
