Ticket #40844: Portfile.3

File Portfile.3, 4.9 KB (added by ctreleaven (Craig Treleaven), 10 years ago)

Works!

Line 
1PortSystem        1.0
2PortGroup         github 1.0
3PortGroup         app 1.0
4
5github.setup      mpv-player mpv 0.2.1 v
6
7categories        multimedia
8platforms         darwin
9maintainers       nomaintainer
10license           GPL-2+
11description       mpv is a command line movie player
12
13long_description  mpv is based on mplayer2, which in turn is based on the \
14                  original MPlayer (also called mplayer, mplayer-svn, \
15                  mplayer1). It is much more lightweight and fixes lots \
16                  of long-standing issues. For a complete list of changes, see \
17                  https://github.com/mpv-player/mpv/blob/master/DOCS/man/en/changes.rst
18
19homepage          http://mpv.io/
20
21checksums         rmd160 c7cd9e5254e49fae2672b85fa032151bf86afe2e \
22                  sha256 a1471b789d1ee613bb70536b84954d17f3ab764e9add624628cae982a5df5fe0
23
24depends_build     port:pkgconfig
25
26depends_lib       path:lib/libavcodec.dylib:ffmpeg \
27                  port:enca \
28                  port:gettext \
29                  port:jpeg \
30                  port:lcms2 \
31                  port:libbluray \
32                  port:libdvdread \
33                  port:libiconv \
34                  port:libmng \
35                  port:libsdl2 \
36                  port:ncurses \
37                  port:zlib
38
39configure.args          --prefix=${prefix}
40# Optional features
41configure.args-append   --disable-lua \
42                        --disable-libguess \
43                        --enable-termcap \
44                        --disable-termios \
45                        --enable-iconv \
46                        --disable-lirc \
47                        --disable-lircc \
48                        --disable-vm \
49                        --disable-xf86keysym \
50                        --disable-radio-v4l2 \
51                        --disable-tv \
52                        --disable-tv-v4l2 \
53                        --disable-pvr \
54                        --disable-smb \
55                        --disable-libquvi4 \
56                        --disable-libquvi9 \
57                        --enable-lcms2 \
58                        --enable-vcd \
59                        --enable-bluray \
60                        --enable-dvdread \
61                        --enable-enca \
62                        --enable-pthreads \
63                        --disable-libass \
64                        --disable-libass-osd \
65                        --disable-rpath \
66                        --enable-libpostproc \
67                        --enable-libavdevice \
68                        --enable-libavfilter \
69                        --disable-vf-lavfi \
70                        --disable-af-lavfi
71# Codecs
72configure.args-append   --enable-mng \
73                        --enable-jpeg \
74                        --disable-libcdio \
75                        --disable-ladspa \
76                        --disable-libbs2b \
77                        --disable-mpg123
78# Resampler
79configure.args-append   --disable-libavresample
80# Video output
81configure.args-append   --enable-gl \
82                        --disable-caca \
83                        --disable-direct3d \
84                        --disable-sdl \
85                        --enable-sdl2 \
86                        --disable-xv \
87                        --disable-vdpau \
88                        --disable-vda \
89                        --disable-vaapi \
90                        --disable-vm \
91                        --disable-xinerama \
92                        --disable-x11 \
93                        --disable-wayland \
94                        --disable-xss \
95                        --enable-corevideo \
96                        --enable-cocoa
97# Audio output
98configure.args-append   --disable-alsa \
99                        --disable-ossaudio \
100                        --disable-rsound \
101                        --disable-sndio \
102                        --disable-pulse \
103                        --disable-portaudio \
104                        --disable-jack \
105                        --disable-openal \
106                        --enable-coreaudio \
107                        --disable-dsound \
108                        --disable-wasapi \
109                        --disable-select
110# Miscellaneous
111configure.args-append   --cc=${configure.cc} \
112                        --disable-static \
113                        --extra-cflags=\"${configure.cppflags} ${configure.optflags} [get_canonical_archflags cc]\" \
114                        --extra-ldflags=\"${configure.ldflags} [get_canonical_archflags ld] -lass -lbluray -ldvdread -lenca -liconv -lintl -ljpeg -llcms2 -lncurses -lmng -lSDL2 -lz -lavutil -lavcodec -lavformat -lswscale -lpostproc\"
115
116                        # leave out libass, as configure doesn't handle it correctly
117                        # --enable-libass \
118
119universal_variant no
120
121platform darwin {
122    if {${os.major} < 11} {
123        pre-fetch {
124            ui_error "${name} ${version} requires OS X 10.7 or greater."
125            return -code error "incompatible OS X version"
126        }
127    }
128}
129