$OpenBSD: patch-Modules_FindMPEG2_cmake,v 1.5 2012/11/15 08:43:25 dcoppa Exp $
--- Modules/FindMPEG2.cmake.orig	Tue Nov  6 20:41:36 2012
+++ Modules/FindMPEG2.cmake	Mon Nov 12 14:02:50 2012
@@ -21,27 +21,21 @@
 #  License text for the above reference.)
 
 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.
@@ -51,4 +45,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)
