a056eca19b
Thanks Vadim, landry@ OK landry@
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Modules_FindMPEG_cmake,v 1.6 2012/11/15 08:43:25 dcoppa Exp $
|
|
--- Modules/FindMPEG.cmake.orig Tue Nov 6 20:41:36 2012
|
|
+++ Modules/FindMPEG.cmake Mon Nov 12 14:02:22 2012
|
|
@@ -20,25 +20,21 @@
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
# License text for the above reference.)
|
|
|
|
-find_path(MPEG_INCLUDE_DIR mpeg2dec/include/video_out.h
|
|
- /usr/local/livid
|
|
+find_path(MPEG_INCLUDE_DIR mpeg2dec/mpeg2.h
|
|
+ ${LOCALBASE}/include
|
|
)
|
|
|
|
find_library(MPEG_mpeg2_LIBRARY mpeg2
|
|
- /usr/local/livid/mpeg2dec/libmpeg2/.libs
|
|
+ ${LOCALBASE}/lib
|
|
)
|
|
|
|
-find_library( MPEG_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(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY MPEG_vo_LIBRARY)
|
|
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPEG DEFAULT_MSG MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY)
|
|
|
|
if(MPEG_FOUND)
|
|
- set( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} ${MPEG_vo_LIBRARY} )
|
|
+ set( MPEG_LIBRARIES ${MPEG_mpeg2_LIBRARY} )
|
|
endif()
|
|
|
|
-mark_as_advanced(MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY MPEG_vo_LIBRARY)
|
|
+mark_as_advanced(MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY)
|