summaryrefslogtreecommitdiff
path: root/packages/media-libs/audiofile/audiofile-0.3.6-r1.exheres-0
blob: 74243d9720a68111b4ce3567d4e7be19011a0c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2008 Anders Ossowicki <arkanoid@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

SUMMARY="A uniform API for accessing a variety of audio file formats"
HOMEPAGE="https://${PN}.68k.org"
DOWNLOADS="${HOMEPAGE}/${PNV}.tar.gz"

LICENCES="GPL-2 LGPL-2.1"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="flac"

# tests use bundled gtest
RESTRICT="test"

DEPENDENCIES="
    build:
        virtual/pkg-config
    build+run:
        flac? ( media-libs/flac[>=1.2.1] )
"

DEFAULT_SRC_PREPARE_PATCHES+=(
    "${FILES}"/49103e386808042f830c18365976ad40875923ea.patch
    "${FILES}"/${PNV}-Fix-undefined-behavior-in-sign-conversion.patch
)

DEFAULT_SRC_CONFIGURE_PARAMS=(
    --enable-docs
    --disable-examples
    --disable-static
)
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( flac )

src_test() {
    emake "${DEFAULT_SRC_TEST_PARAMS[@]}" check
}