1 | PortSystem 1.0 |
---|
2 | name libmpeg2 |
---|
3 | version 0.3.1 |
---|
4 | categories graphics |
---|
5 | maintainers daved@nostrum.com |
---|
6 | distname mpeg2dec-${version} |
---|
7 | platforms darwin |
---|
8 | master_sites http://libmpeg2.sourceforge.net/files/ |
---|
9 | checksums md5 e9f899d232eee5e7282c9c96ffde8016 |
---|
10 | homepage http://libmpeg2.sourceforge.net/ |
---|
11 | description A free library for decoding mpeg-2 and \ |
---|
12 | mpeg-1 video streams. |
---|
13 | long_description libmpeg2 is a free library for decoding \ |
---|
14 | mpeg-2 and mpeg-1 video streams. The main \ |
---|
15 | goals in libmpeg2 development are \ |
---|
16 | conformance, speed, portability, and \ |
---|
17 | reuseability. |
---|
18 | depends_lib lib:libSDL:libsdl |
---|
19 | configure.args --enable-shared |
---|
20 | |
---|
21 | patch { |
---|
22 | reinplace "s|@INCLUDES@|@INCLUDES@ -I\$(prefix)/include|" \ |
---|
23 | ${workdir}/${worksrcdir}/src/Makefile.in |
---|
24 | reinplace "37s|^|#include <SDL/SDL.h>|" \ |
---|
25 | ${workdir}/${worksrcdir}/src/mpeg2dec.c |
---|
26 | } |
---|
27 | |
---|
28 | variant darwin { |
---|
29 | configure.env CPPFLAGS="-no-cpp-precomp" |
---|
30 | contents-append lib/libmpeg2.0.0.0.dylib \ |
---|
31 | lib/libmpeg2.0.dylib \ |
---|
32 | lib/libmpeg2.dylib |
---|
33 | } |
---|
34 | |
---|
35 | variant freebsd { |
---|
36 | contents-append lib/libmpeg2.so \ |
---|
37 | lib/libmpeg2.so.0 |
---|
38 | } |
---|
39 | |
---|
40 | contents bin/extract_mpeg2 \ |
---|
41 | bin/mpeg2dec \ |
---|
42 | include/mpeg2dec/convert.h \ |
---|
43 | include/mpeg2dec/mpeg2.h \ |
---|
44 | include/mpeg2dec \ |
---|
45 | lib/libmpeg2.a \ |
---|
46 | lib/libmpeg2.la \ |
---|
47 | lib/pkgconfig/libmpeg2.pc \ |
---|
48 | man/man1/extract_mpeg2.1 \ |
---|
49 | man/man1/mpeg2dec.1 |
---|