/
Portfile
82 lines (64 loc) · 2.85 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
# The configure script checks endianness and bitness.
PortGroup muniversal 1.0
name XviD
version 1.3.7
revision 0
categories multimedia devel
platforms darwin sunos
maintainers nomaintainer
license GPL-2+
description High performance and high quality MPEG-4 video library
long_description The Xvid video codec implements MPEG-4 Simple Profile and Advanced \
Simple Profile standards. It permits compressing and decompressing \
digital video in order to reduce the required bandwidth of video \
data for transmission over computer networks or efficient storage on \
CDs or DVDs. Due to its unrivalled quality Xvid has gained great \
popularity and is used in many other GPLed applications, like e.g. \
Transcode, MEncoder, MPlayer, Xine and many more.
homepage https://labs.xvid.com/
master_sites https://downloads.xvid.com/downloads/
distname xvidcore-${version}
use_bzip2 yes
checksums rmd160 84d37c2b3b48fb6cde2b6a6a57c7e6c1bdf79556 \
sha256 aeeaae952d4db395249839a3bd03841d6844843f5a4f84c271ff88f7aa1acff7 \
size 698615
worksrcdir xvidcore/build/generic
patchfiles patch-Makefile.diff \
patch-CFLAGS.diff
use_autoreconf yes
configure.universal_args-delete --disable-dependency-tracking
set my_targets(ppc) powerpc
set my_targets(ppc64) powerpc
set my_targets(i386) i386
set my_targets(x86_64) x86_64
platform darwin {
if {![info exists universal_possible]} {
set universal_possible [expr {${os.universal_supported} && [llength ${configure.universal_archs}] >= 2}]
}
if {${universal_possible} && [variant_isset universal]} {
foreach arch ${configure.universal_archs} {
set merger_configure_args(${arch}) --build=$my_targets(${arch})-apple-darwin${os.major}
}
} else {
if {[info exists my_targets(${configure.build_arch})]} {
configure.args-append --build=$my_targets(${configure.build_arch})-apple-darwin${os.major}
}
}
}
platform darwin i386 {
configure.args-append --disable-assembly
}
build.args V=1
destroot.args V=1
post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath}/../.. AUTHORS ChangeLog LICENSE TODO \
${destroot}${docdir}
}
use_parallel_build no
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex xvidcore-(\[0-9.\]+)${extract.suffix}