Ticket #56417: Portfile.diff
File Portfile.diff, 4.3 KB (added by ajdudman, 6 years ago) |
---|
-
Portfile
old new 1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.0 4 5 5 6 name transcode 6 7 version 1.1.7 7 revision 218 revision 22 8 9 epoch 1 9 10 license GPL-2+ 10 11 categories multimedia … … 32 33 33 34 use_bzip2 yes 34 35 35 checksums md5 9bb25a796a8591fb764de46ee87ce505 \ 36 sha1 e35df68b960eb56ef0a59a4cdbed1491be56aee6 36 checksums transcode-1.1.7.tar.bz2 \ 37 rmd160 faa854acbbfd52faaa216505176f94d756d77841 \ 38 sha256 1e4e72d8e0dd62a80b8dd90699f5ca64c9b0cb37a5c9325c184166a9654f0a92 \ 39 size 2183627 \ 40 transcode-ffmpeg3.patch \ 41 rmd160 bac993cb3bbe6ce69c995b596bb76e75fb185fa2 \ 42 sha256 728ec3101039d98116275e36ea5cf0434a23a0bb82aca830ea9612fb9d16b062 \ 43 size 50234 \ 44 transcode-ffmpeg4.patch \ 45 rmd160 df5df5fb91b7051a580d697a52c3a6bd4d44e91a \ 46 sha256 2cc680666f705685a9fdc54b5a377e7728765bde6ed83c43b835634e27767721 \ 47 size 26970 \ 48 transcode-imagemagick7.patch \ 49 rmd160 af4e4214203f4879c359b772afa73ef928710347 \ 50 sha256 4ede15540ea6932954ac332c12dde130bf48e7e4773d1e04d3c3f23038c6ac51 \ 51 size 34353 37 52 38 53 depends_build port:pkgconfig 39 54 … … 45 60 46 61 platforms darwin 47 62 48 patchfiles patch-configure.diff \ 49 patch-avilib-avidump.c.diff \ 50 patch-ffmpeg-0.11.diff \ 51 patch-filter-filter_pp.c.diff \ 52 patch-encode-Makefile.in.diff \ 53 patch-ffmpeg-2.0.diff \ 54 patch-ffmpeg-2.4.diff \ 55 patch-freetype-2.5.1.diff \ 56 patch-ffmpeg-3.0.diff 63 patch.pre_args -p1 64 patch.args -b -V numbered 65 patchfiles \ 66 avilib-avidump.c.diff \ 67 configure.in.diff \ 68 filter-subtitler-load_font.c.diff 69 70 # https://www.archlinux.org/packages/community/x86_64/transcode/ 71 patch_sites https://git.archlinux.org/svntogit/community.git/plain/trunk/?h=packages/transcode 72 patchfiles-append \ 73 transcode-ffmpeg3.patch \ 74 transcode-ffmpeg4.patch 75 76 # Simple macports-base/src/port1.0/fetch_common.tcl does not parse query in url. 77 proc portfetch::assemble_url {site distfile} { 78 package require uri 79 set parts [uri::split $site] 80 if {[string index [dict get $parts path] end] ne "/"} { 81 set slash / 82 } else { 83 set slash "" 84 } 85 dict append parts path $slash [percent_encode ${distfile}] 86 set rval [uri::join {*}$parts] 87 return "$rval" 88 } 89 90 use_autoreconf yes 91 autoreconf.args -fiv 57 92 58 93 configure.args --disable-mmx \ 59 94 --enable-libmpeg2 \ 60 95 --enable-libmpeg2convert \ 61 96 --without-x 62 97 63 # Optional components 98 # With muniversal configure needs help. This configure's tests do not handle cross-compling, so we must set build and not just host alone. 99 platform darwin { 100 lappend merger_configure_args(i386) --build=i686-apple-${os.platform}${os.version} 101 } 102 103 default_variants +full +x11 64 104 65 universal_variant no 105 # Optional components 66 106 67 107 variant mmx description {enable mmx optimizations} { 68 108 configure.args-delete --disable-mmx … … 89 129 variant imagemagick description {enable support for the manipulation of still images} { 90 130 depends_lib-append port:ImageMagick 91 131 configure.args-append --enable-imagemagick --with-imagemagick-prefix=${prefix} 132 if {![catch {set vers [lindex [registry_active ImageMagick] 0]}] && [vercmp [lindex $vers 1] 7.0] >= 0 } { 133 patchfiles-append transcode-imagemagick7.patch 134 } 92 135 } 93 136 94 137 variant libdv description {enable support for the Digital Video format via libdv} { … … 174 217 configure.args-delete --without-x 175 218 } 176 219 177 default_variants +x11178 179 platform darwin {180 configure.args-append --build=${build_arch}-apple-darwin${os.major}181 }182 183 220 livecheck.type regex 184 livecheck.url ${master_sites}221 livecheck.url [lindex ${master_sites} 0] 185 222 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"