~ubuntu-branches/debian/stretch/acoustid-fingerprinter/stretch

« back to all changes in this revision

Viewing changes to cmake/modules/FindFFmpeg.cmake

  • Committer: Package Import Robot
  • Author(s): Jerome Charaoui
  • Date: 2014-08-26 20:30:49 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140826203049-qg3pn0syyg01udl3
Tags: 0.6-4
Make package FFmpeg-friendly (Closes: #758323)
Patch provided by Andreas Cadhalpun.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                DOC "Location of FFMPEG Headers"
48
48
        )
49
49
 
50
 
    FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES
51
 
        NAMES ${shortname}
52
 
        PATHS
53
 
        ${FFMPEG_ROOT}/lib
54
 
        $ENV{FFMPEG_DIR}/lib
55
 
        ~/Library/Frameworks
56
 
        /Library/Frameworks
57
 
        /usr/local/lib
58
 
        /usr/local/lib64
59
 
        /usr/lib
60
 
        /usr/lib64
61
 
        /sw/lib
62
 
        /opt/local/lib
63
 
        /opt/csw/lib
64
 
        /opt/lib
65
 
        /usr/freeware/lib64
66
 
                NO_DEFAULT_PATH
67
 
        DOC "Location of FFMPEG Libraries"
68
 
    )
69
 
    FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES
70
 
        NAMES ${shortname}
71
 
        DOC "Location of FFMPEG Libraries"
72
 
    )
 
50
        pkg_check_modules(FFMPEG_${varname} lib${shortname})
73
51
 
74
52
    IF (FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS)
75
53
        SET(FFMPEG_${varname}_FOUND 1)