8b1b17cff8
"This is good, commit." espie@
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
$OpenBSD: patch-Modules_FindMPEG2_cmake,v 1.1 2010/05/28 20:21:48 dcoppa Exp $
|
|
--- Modules/FindMPEG2.cmake.orig Mon Apr 26 11:51:05 2010
|
|
+++ Modules/FindMPEG2.cmake Mon Apr 26 11:52:13 2010
|
|
@@ -21,17 +21,14 @@
|
|
# 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
|
|
@@ -40,8 +37,7 @@ INCLUDE(FindPackageHandleStandardArgs)
|
|
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 +47,4 @@ IF(MPEG2_FOUND)
|
|
ENDIF(SDL_FOUND)
|
|
ENDIF(MPEG2_FOUND)
|
|
|
|
-MARK_AS_ADVANCED(MPEG2_INCLUDE_DIR MPEG2_mpeg2_LIBRARY MPEG2_vo_LIBRARY)
|
|
+MARK_AS_ADVANCED(MPEG2_INCLUDE_DIR MPEG2_mpeg2_LIBRARY)
|