4cd9f900fc
Tested in a bulk build by landry@. Lot of feedback from various people on ports@: thanks! OK landry@, sthen@
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Modules_FindMPEG_cmake,v 1.4 2011/03/13 18:23:02 dcoppa Exp $
|
|
--- Modules/FindMPEG.cmake.orig Tue Feb 15 18:47:27 2011
|
|
+++ Modules/FindMPEG.cmake Mon Mar 7 10:07:32 2011
|
|
@@ -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(MPEG_FOUND)
|
|
|
|
-MARK_AS_ADVANCED(MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY MPEG_vo_LIBRARY)
|
|
+MARK_AS_ADVANCED(MPEG_INCLUDE_DIR MPEG_mpeg2_LIBRARY)
|