summaryrefslogtreecommitdiff
path: root/packages/media-libs/imlib2/imlib2-1.4.4.exheres-0
blob: 049b5ce540f507c78d4c013353f7a3235e304e22 (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
39
40
41
42
# Copyright 2008 Richard Brown
# Distributed under the terms of the GNU General Public License v2
# Based in part upon 'imlib2-1.4.0.ebuild' from Gentoo, which is:
#     Copyright 1999-2008 Gentoo Foundation

SUMMARY="Image Processing Library"
HOMEPAGE="http://docs.enlightenment.org/api/imlib2/html/pages.html"
DOWNLOADS="mirror://sourceforge/enlightenment/${PNV}.tar.bz2"

LICENCES="${PN}"
SLOT="0"
PLATFORMS="~amd64 ~ppc64 ~x86"
MYOPTIONS="gif tiff X x86_cpu_features: mmx"

DEPENDENCIES="
    build:
        X? ( x11-proto/xextproto )
    build+run:
        media-libs/freetype:=
        media-libs/jpeg
        media-libs/libpng
        gif? ( media-libs/giflib )
        tiff? ( media-libs/tiff )
    run:
        X? ( x11-libs/libXext )
"

DEFAULT_SRC_PREPARE_PATCHES=( -p0 "${FILES}"/${PNV}-libpng-1.5.patch )

# --enable-amd64 segfaults
DEFAULT_SRC_CONFIGURE_PARAMS=(
    --enable-visibility-hiding
    --disable-amd64
    --with-bzip2
    --with-jpeg
    --with-png
    --with-zlib
    --without-id3
)
DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( gif tiff "X x" )
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( x86_cpu_features:mmx )