Contents of /branches/magellan-0_10_0/core/libmp4v2/libmp4v2-1.5.0.1-r5.smage2
Parent Directory | Revision Log
Revision 3000 -
(show annotations)
(download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1970 byte(s)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1970 byte(s)
created branch 'magellan-0_10_0'
1 | # $Header: /magellan-cvs/smage/libmp4v2/libmp4v2-1.5.0.1-r4.smage2,v 1.2 2008/04/03 17:51:33 niro Exp $ |
2 | |
3 | PNAME="libmp4v2" |
4 | PVER="1.5.0.1" |
5 | PBUILD="r5" |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |