Magellan Linux

Contents of /smage/trunk/extras/flac/flac-1.2.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8446 - (show annotations) (download)
Thu Jan 28 10:43:20 2016 UTC (8 years, 4 months ago) by niro
File size: 1010 byte(s)
-alx-ify
1 # $Id$
2
3 PNAME="flac"
4 PVER="1.2.1"
5 PBUILD="r3"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="FLAC - Free Lossless Audio Codec."
10 HOMEPAGE="http://flac.sourceforge.net/"
11
12 DEPEND=">= virtual/glibc
13 >= media-libs/libogg-1.2
14 >= sys-libs/libstdc++-5.3"
15
16 ALX_DEV_DEPEND=">= media-libs/libogg-dev-1.2"
17
18 SDEPEND=">= dev-lang/nasm-2
19 >= sys-apps/gawk-3"
20
21 SRCFILE="${PNAME}-${PVER}.tar.gz"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*"
25 sminclude mbuild multilib
26 msetfeature "!check"
27
28 SRC_URI=(
29 sourceforge://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch
32 )
33
34 UP2SUBSTITUTE="flac-"
35 UP2DATE="updatecmd_sourceforge ${PNAME} ${PNAME}-src | sed 's:-src::'"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE}
40
41 # fix compilation with gcc-4.3
42 mpatch ${PNAME}-${PVER}-gcc43.patch || die
43 }
44
45 src_compile()
46 {
47 mconfigure \
48 --disable-static \
49 --disable-rpath \
50 --with-pic \
51 --enable-ogg \
52 --disable-xmms-plugin \
53 --disable-thorough-tests \
54 || die
55
56 mmake || die
57 }