189 | | file copy $f ${destroot}${prefix}/share/doc/ffmpeg |
| 206 | file copy $f ${destroot}${prefix}/share/doc/ffmpeg-${compat_version} |
| 207 | } |
| 208 | # install suffix-less symlinks to the suffixed shared libraries, |
| 209 | # unwanted symlinks will be cleaned up below |
| 210 | foreach f [glob -nocomplain ${destroot}${prefix}/lib/lib*-${compat_version}*.dylib] { |
| 211 | set dst [file tail ${f}] |
| 212 | set lf [strsed ${dst} "s/-${compat_version}//"] |
| 213 | ln -s ${dst} ${destroot}${prefix}/lib/${lf} |
| 214 | } |
| 215 | if {${subport} ne "${name}-${compat_version}"} { |
| 216 | # if we're not installing as a legacy port, install symlinks that hide the fact that we're using |
| 217 | # a suffix |
| 218 | foreach m [glob -nocomplain ${destroot}${prefix}/share/doc/ffmpeg-${compat_version}/man/*] { |
| 219 | set md [file tail ${m}] |
| 220 | foreach f [glob -nocomplain ${m}/*] { |
| 221 | set dst [file tail ${f}] |
| 222 | file delete -force ${destroot}${prefix}/share/man/${md}/${dst} |
| 223 | ln -s ../../doc/ffmpeg-${compat_version}/man/${md}/${dst} ${destroot}${prefix}/share/man/${md}/${dst} |
| 224 | } |
| 225 | } |
| 226 | foreach f [glob -nocomplain ${destroot}${prefix}/bin/*-${compat_version}] { |
| 227 | set dst [file tail ${f}] |
| 228 | set lf [strsed ${dst} "s/-${compat_version}//"] |
| 229 | ln -s ${dst} ${destroot}${prefix}/bin/${lf} |
| 230 | } |
| 231 | foreach f [glob -nocomplain ${destroot}${prefix}/lib/pkgconfig/*-${compat_version}.pc] { |
| 232 | set dst [file tail ${f}] |
| 233 | set lf [strsed ${dst} "s/-${compat_version}//"] |
| 234 | ln -s ${dst} ${destroot}${prefix}/lib/pkgconfig/${lf} |
| 235 | } |
| 236 | foreach f [glob -nocomplain ${destroot}${prefix}/lib/lib*-${compat_version}*.a] { |
| 237 | set dst [file tail ${f}] |
| 238 | set lf [strsed ${dst} "s/-${compat_version}//"] |
| 239 | ln -s ${dst} ${destroot}${prefix}/lib/${lf} |
| 240 | } |
| 241 | } else { |
| 242 | # legacy mode: remove symlinked shared libraries that shouldn't be there (= only leave the runtime libraries) |
| 243 | foreach f {libavcodec libavdevice libavfilter libavformat libavresample libavutil libpostproc libswresample libswscale} { |
| 244 | set lf ${destroot}${prefix}/lib/${f} |
| 245 | if {[file exists ${lf}]} { |
| 246 | file delete -force ${lf} |
| 247 | } |
| 248 | } |
271 | | platform darwin { |
272 | | if {${os.major} > 8 && [variant_isset gpl2] && ![variant_isset universal]} { |
273 | | variant libx265 description {Build with support for encoding HEVC video using libx265} { |
274 | | configure.args-append --enable-libx265 |
275 | | depends_lib-append port:x265 |
276 | | } |
| 330 | # there is either no need to check for darwin before considering supporting a libx265 variant |
| 331 | # or else one should test for "!darwin OR os.major > 8". |
| 332 | # platform darwin { |
| 333 | if { (${os.platform} ne "darwin" || ${os.major} > 8) && [variant_isset gpl2] && ![variant_isset universal]} { |
| 334 | variant libx265 description {Build with support for encoding HEVC video using libx265} { |
| 335 | configure.args-append --enable-libx265 |
| 336 | depends_lib-append port:x265 |