Magellan Linux

Annotation of /branches/R11-unstable/extras/gpac/gpac-0.7.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32766 - (hide annotations) (download)
Mon Apr 29 13:37:52 2019 UTC (5 years ago) by niro
File size: 2143 byte(s)
-release branches/R11-unstable
1 niro 31384 # $Id$
2    
3     PNAME="gpac"
4     PVER="0.7.1"
5     PBUILD="r5"
6    
7     PCAT="media-video"
8    
9     DESCRIPTION="GPAC is a multimedia framework based on the MPEG-4 Systems standard (ISO/IEC 14496-1) developed from scratch in ANSI C."
10     HOMEPAGE="http://gpac.sourceforge.net/"
11    
12     DEPEND=">= virtual/opengl
13     >= dev-libs/openssl-1.1
14     >= x11-libs/libXt-1
15     >= x11-libs/libX11-1.6
16     >= x11-libs/libXext-1.3
17     >= dev-libs/libxml2-2.7
18     >= media-libs/libsdl-1.2
19     >= virtual/libjpeg
20     >= media-libs/libpng-1.5
21     >= media-libs/freetype-2.6
22     >= media-libs/libfaad2-2.7
23     >= media-video/ffmpeg-4.0
24     >= media-libs/libmad-0.15
25     >= media-libs/libogg-1.3
26     >= media-libs/libvorbis-1.3
27     >= media-libs/xvid-1.3
28     >= media-libs/x264-201806
29     >= media-sound/libpulse-10"
30    
31     # disabled upstream due to version incompatibilities
32     # see: applications/Makefile
33     # >= x11-libs/wxgtk-2.8
34    
35     SRCFILE="v${PVER}.tar.gz"
36     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
37    
38     SRC_URI=(
39     https://github.com/${PNAME}/${PNAME}/archive/${SRCFILE}
40     mirror://${PNAME}/${SRCFILE}
41     mirror://${PNAME}/${PNAME}-${PVER}-openssl-1.1.patch
42 niro 31386 mirror://${PNAME}/${PNAME}-${PVER}-ffmpeg-4.0.patch
43 niro 31384 )
44    
45     UP2SEPERATOR="v"
46     UP2DATE="updatecmd https://github.com/${PNAME}/${PNAME}/releases | highesttarball gz"
47    
48     src_prepare()
49     {
50     munpack ${SRCFILE} || die
51     cd ${SRCDIR}
52    
53     mpatch ${PNAME}-${PVER}-openssl-1.1.patch || die
54 niro 31386 mpatch ${PNAME}-${PVER}-ffmpeg-4.0.patch || die
55 niro 31384
56     # configure may be not executable
57     chmod +x configure || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63    
64     mconfigure \
65     --libdir=$(mlibdir) \
66     --enable-pic \
67     --enable-svg \
68     --enable-opengl \
69     --enable-ssl \
70     --disable-amr \
71     --disable-debug \
72     --disable-oss-audio \
73     --disable-jack=yes \
74     --enable-pulseaudio=yes \
75     --use-jpeg=system \
76     --use-png=system \
77     --use-ft=no \
78     --use-ogg=system \
79     --use-vorbis=system \
80     --use-ffmpeg=system \
81     --use-faad=system \
82     --use-mad=system \
83     --use-xvid=system \
84     --use-js=no \
85     --verbose \
86     || die
87    
88     mmake -j1 || die
89     }
90    
91     src_install()
92     {
93     cd ${SRCDIR}
94    
95     mmake STRIP="true" DESTDIR="${BINDIR}" install || die
96     mmake STRIP="true" DESTDIR="${BINDIR}" install-lib || die
97     minstalldocs AUTHORS BUGS Changelog README TODO doc/*.html doc/*.txt || die
98     }