source: trunk/dports/audio/mpeg4ip/Portfile

Last change on this file was 142169, checked in by khindenburg@…, 21 months ago

mpeg4ip: add patch to allow building on recent OS versions #42149 (note this software is unmaintained)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
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# $Id: Portfile 142169 2015-11-05 14:27:55Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            mpeg4ip
7version         1.5.0.1
8revision        3
9categories      audio multimedia
10platforms       darwin
11maintainers     orthogonalspace.ca:reid
12homepage        https://web.archive.org/web/20140923132542/http://sourceforge.net/projects/mpeg4ip/
13description     Mpeg4 library and tools from mpeg4ip
14
15long_description \
16    The MPEG4IP project provides a standards-based system for encoding, \
17    streaming, and playing encoded audio, video and text.
18
19master_sites    http://www.ryandesign.com/macports/distfiles/mpeg4ip/
20
21checksums       md5 f53b06c62e914ab724bda9d9af041e08 \
22                sha1 1271de695ed65284d9c39aa91bf26c5494603fd3 \
23                rmd160 fee5c21c17a470e6de349e07d233a1eb46b2064a
24
25depends_build   port:libtool \
26                port:automake \
27                port:autoconf
28
29depends_lib     port:libsdl
30
31depends_run     path:lib/libmp4v2.dylib:mp4v2
32
33patchfiles      patch-bootstrap.diff \
34                patch-common-video-iso-mpeg4-include-globals_hpp.diff \
35                patch-common-video-iso-mpeg4-include-vlc_hpp.diff \
36                patch-common-video-iso-mpeg4-src-sys_decoder_vopsedec_cpp.diff \
37                patch-common-video-iso-mpeg4-src-sys_tps_bfshape_cpp.diff \
38                patch-common-video-iso-mpeg4-src-sys_tps_enhcbuf_cpp.diff \
39                patch-common-video-iso-mpeg4-src-tools_entropy_bitstrm_cpp.diff \
40                patch-common-video-iso-mpeg4-src-type_basic_cpp.diff \
41                patch-common-video-iso-mpeg4-src-type_svd_cpp.diff \
42                patch-common-video-iso-mpeg4-src-type_typeapi_cpp.diff \
43                patch-common-video-iso-mpeg4-src-type_yuvac_cpp.diff \
44                patch-common-video-iso-mpeg4-src-type_yuvai_cpp.diff \
45                patch-common-video-iso-mpeg4-src-vtc_main_computePSNR_cpp.diff \
46                patch-common-video-iso-mpeg4-src-vtc_main_read_image_cpp.diff \
47                patch-common-video-iso-mpeg4-src-vtc_main_seg_cpp.diff \
48                patch-common-video-iso-mpeg4-src-vtc_main_vtcdec_cpp.diff \
49                patch-common-video-iso-mpeg4-src-vtc_main_vtcenc_cpp.diff \
50                patch-common-video-iso-mpeg4-src-vtc_main_wavelet_cpp.diff \
51                patch-common-video-iso-mpeg4-src-vtc_main_write_image_cpp.diff \
52                patch-common-video-iso-mpeg4-src-vtc_shape_BinArCodec_cpp.diff \
53                patch-common-video-iso-mpeg4-src-vtc_shape_ShapeDecoding_cpp.diff \
54                patch-common-video-iso-mpeg4-src-vtc_shape_ShapeEncoding_cpp.diff \
55                patch-common-video-iso-mpeg4-src-vtc_wavelet_download_filter_cpp.diff \
56                patch-common-video-iso-mpeg4-src-vtc_zte_ac_cpp.diff \
57                patch-common-video-iso-mpeg4-src-vtc_zte_bitpack_cpp.diff \
58                patch-common-video-iso-mpeg4-src-vtc_zte_ztscanUtil_cpp.diff \
59                patch-common-video-iso-mpeg4-src-vtc_zte_ztscan_dec_cpp.diff \
60                patch-common-video-iso-mpeg4-src-vtc_zte_ztscan_enc_cpp.diff \
61                patch-common-video-iso-mpeg4-src-vtc_ztq_QMInit_cpp.diff \
62                patch-common-video-iso-mpeg4-src-vtc_ztq_QMUtils_cpp.diff \
63                patch-common-video-iso-mpeg4-src-vtc_ztq_decQM_cpp.diff \
64                patch-common-video-iso-mpeg4-src-vtc_ztq_encQM_cpp.diff \
65        mpeg4ip-1.5.0.1-gcc43.patch
66
67configure.cmd   ./bootstrap \
68                --disable-player \
69                --mandir=${prefix}/share/man
70
71use_parallel_build      no
72
73configure.cflags-append -std=gnu89 -Wno-error=return-type
74
75variant universal {
76    post-configure {
77        reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" \
78            ${worksrcpath}/common/video/iso-mpeg4/libtool \
79            ${worksrcpath}/lib/rtp/libtool \
80            ${worksrcpath}/libtool
81    }
82}
83
84post-patch {
85    # Code with this many issue should not be shipped with -Werror by default
86    reinplace "s|-Werror||" \
87        ${worksrcpath}/player/lib/audio/faad/Makefile.in \
88        ${worksrcpath}/lib/rtp/Makefile.in \
89        ${worksrcpath}/lib/gnu/Makefile.in \
90        ${worksrcpath}/common/video/iso-mpeg4/src/Makefile.in
91
92    reinplace "s|-Wall -Werror|-Wall|" \
93        ${worksrcpath}/lib/rtp/configure \
94        ${worksrcpath}/common/video/iso-mpeg4/configure \
95        ${worksrcpath}/configure
96}
97
98#
99# delete files from destroot that conflict with port libmp4v2
100#
101
102post-destroot {
103    file delete -force \
104        ${destroot}${prefix}/bin/mp4art \
105        ${destroot}${prefix}/bin/mp4dump \
106        ${destroot}${prefix}/bin/mp4extract \
107        ${destroot}${prefix}/bin/mp4info \
108        ${destroot}${prefix}/bin/mp4tags \
109        ${destroot}${prefix}/bin/mp4trackdump \
110        ${destroot}${prefix}/include/mp4.h \
111        ${destroot}${prefix}/lib/libmp4v2.a \
112        ${destroot}${prefix}/lib/libmp4v2.dylib \
113        ${destroot}${prefix}/lib/libmp4v2.la \
114        ${destroot}${prefix}/share/man/manm/api.mpt \
115        ${destroot}${prefix}/share/man/man3
116   file mkdir ${destroot}${prefix}/share/man/man3
117}
118
119build.target
120
121#
122# disable livecheck as this code is no longer under development / being maintained.
123#
124
125livecheck.type  none
Note: See TracBrowser for help on using the repository browser.