New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79930


Ignore:
Timestamp:
06/29/11 10:26:39 (4 years ago)
Author:
jeremyhu@…
Message:

ffmpeg-devel: Use fetch.type git rather than reinventing the wheel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/ffmpeg-devel/Portfile

    r79910 r79930  
    77name            ffmpeg-devel 
    88conflicts       ffmpeg 
    9 set rev         9e17d051ac9b113b70980373b8489ca469505f3f 
    109version         20110628 
    1110license         nonfree GPL-2+ LGPL-2.1+ 
     
    1312maintainers     devans openmaintainer 
    1413 
     14fetch.type      git 
     15git.url         git://git.videolan.org/ffmpeg.git 
     16git.branch      9e17d051ac9b113b70980373b8489ca469505f3f 
     17 
    1518description     FFmpeg is a complete solution to play, record, convert and \ 
    1619                stream audio and video. 
     
    4649platforms       darwin 
    4750homepage        http://www.ffmpeg.org/ 
    48 master_sites 
    49 distfiles 
    50  
    51 worksrcdir      ffmpeg 
    52  
    53 depends_fetch   bin:git:git-core 
    5451 
    5552depends_build   port:pkgconfig \ 
     
    7269                port:zlib 
    7370 
    74  
    75 pre-fetch { 
    76     if {[file isdirectory ${distpath}/${rev}]} { 
    77         if {![file exists ${distpath}/${rev}/.complete]} { 
    78              file delete -force ${distpath}/${rev} 
    79         } 
    80     } 
    81 } 
    82  
    83 fetch { 
    84     if {![file isdirectory ${distpath}/${rev}]} { 
    85         file mkdir ${distpath}/${rev}/ffmpeg 
    86         system "git clone --depth 1000 git://git.videolan.org/ffmpeg.git ${distpath}/${rev}/ffmpeg" 
    87         system "cd ${distpath}/${rev}/ffmpeg && git checkout -f ${rev}" 
    88         system "touch ${distpath}/${rev}/.complete" 
    89     } 
    90 } 
    91  
    92 # 
    9371# enable auto configure of mmx and related Intel optimizations by default 
    9472# requires Xcode 3.1 or better on Leopard 
    9573# 
    9674minimum_xcodeversions {9 3.1} 
    97  
    98 extract { 
    99     file copy ${distpath}/${rev}/ffmpeg ${worksrcpath} 
    100 } 
    10175 
    10276configure.cflags-append    -DHAVE_LRINTF ${configure.cppflags} 
Note: See TracChangeset for help on using the changeset viewer.