openbsd-ports/devel/cmake/patches/patch-Modules_FindMPEG2_cmake
dcoppa 195d9f90cf Update to cmake-2.8.3
OK sthen@, landry@ (who also tested this in a bulk build)
2010-11-15 11:39:08 +00:00

41 lines
1.3 KiB
Plaintext

$OpenBSD: patch-Modules_FindMPEG2_cmake,v 1.2 2010/11/15 11:39:09 dcoppa Exp $
--- Modules/FindMPEG2.cmake.orig Wed Nov 3 20:58:27 2010
+++ Modules/FindMPEG2.cmake Wed Nov 10 09:01:25 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("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleSt
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)