Magellan Linux

Annotation of /branches/magellan-next/core/libmp4v2/libmp4v2-1.5.0.1-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6591 - (hide annotations) (download)
Mon Sep 6 17:47:04 2010 UTC (13 years, 9 months ago) by niro
File size: 1933 byte(s)
auto added: ver bump to 1.5.0.1-r7
1 niro 6591 # $Id: libmp4v2-1.5.0.1-r6.smage2 3501 2009-10-22 21:51:42Z niro $
2    
3     PNAME="libmp4v2"
4     PVER="1.5.0.1"
5     PBUILD="r7"
6    
7     PCATEGORIE="media-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="MPEG-4/H.261/MPEG-2/H.263 MP3/AAC/AMR streaming library."
11     HOMEPAGE="http://mpeg4ip.sourceforge.net/"
12    
13     DEPEND=""
14    
15     SRCFILE="mpeg4ip-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/mpeg4ip-${PVER}"
17    
18     sminclude mtools
19    
20     SRC_URI=(
21     sourceforge://mpeg4ip/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd_sourceforge mpeg4ip"
26    
27     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}
31    
32     # fixes build with nasm-2
33     sed -e 's:nasm -r:nasm -v:g' -i configure || die "sed nasm"
34    
35     mlibtoolize || die
36     }
37    
38     src_compile()
39     {
40     cd ${SRCDIR}
41    
42     touch bootstrapped || die
43    
44     # we only want to compile the library
45     mconfigure \
46     --disable-warns-as-err \
47     --disable-server \
48     --disable-player \
49     --disable-mp4live \
50     --disable-id3tags \
51     --disable-xvid \
52     --disable-a52dec \
53     --disable-mad \
54     --disable-mpeg2dec \
55     --disable-srtp \
56     --disable-mp3lame \
57     --disable-faac \
58     --disable-ffmpeg \
59     --disable-x264 \
60     || die
61    
62     sed -i 's:SUBDIRS = . test util:SUBDIRS = .:' ${SRCDIR}/lib/mp4v2/Makefile || die
63     mmake LIBTOOL=libtool -C ${SRCDIR}/lib/mp4v2 || die
64     }
65    
66     src_install()
67     {
68     cd ${SRCDIR}
69    
70     # needed directories
71     minstalldir /usr/include/libmp4v2 || die
72    
73     mmake LIBTOOL=libtool -C ${SRCDIR}/lib/mp4v2 DESTDIR=${BINDIR} install || die
74    
75     # install includes
76     minstallfile include/mpeg4ip.h /usr/include/libmp4v2 || die
77     minstallfile include/mpeg4ip_version.h /usr/include/libmp4v2 || die
78     minstallfile mpeg4ip_config.h /usr/include/libmp4v2 || die
79    
80     # fix some includes
81     sed -i 's:"mpeg4ip.h":<libmp4v2/mpeg4ip.h>:' ${BINDIR}/usr/include/mp4.h || die
82     sed -i -e 's:mpeg4ip_config.h:libmp4v2/mpeg4ip_config.h:' \
83     -e 's:"mpeg4ip_version.h":<libmp4v2/mpeg4ip_version.h>:' \
84     ${BINDIR}/usr/include/libmp4v2/mpeg4ip.h || die
85    
86     minstalldocs README INTERNALS API_CHANGES TODO || die
87     }