summaryrefslogtreecommitdiff
path: root/packages/dev-dotnet/libgdiplus/libgdiplus-3.12.exheres-0
blob: d2cdd279cbdbaed7b4422219a69bfb367311f5de (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
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2009 Saleem Abdulrasool <compnerd@compnerd.org>
# Copyright 2013 Aleksandar Petrinic <petrinic@gmail.com>
# Distributed under the terms of the GNU General Public License v2

require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 ] ]

SUMMARY="An Open Source implementation of the GDI+ API"
HOMEPAGE="http://www.mono-project.org"
DOWNLOADS="http://download.mono-project.com/sources/${PN}/${PNV}.tar.gz"

LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
    exif
    gif
    tiff
"

DEPENDENCIES="
    build:
        virtual/pkg-config
    build+run:
        dev-libs/glib:2[>=2.2.3]
        media-libs/fontconfig
        media-libs/freetype:2
        media-libs/jpeg:=
        media-libs/libpng:=[>=1.5]
        x11-libs/cairo[>=1.6.5]
        x11-libs/libXrender
        x11-libs/pango[>=1.10]
        exif? ( media-libs/libexif )
        gif? ( media-libs/giflib:= )
        tiff? ( media-libs/tiff )
"

DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-giflib-5.patch )

DEFAULT_SRC_CONFIGURE_PARAMS=( --with-libjpeg )

DEFAULT_SRC_CONFIGURE_OPTION_WITHS=(
    'exif libexif'
    'gif libgif'
    'tiff libtiff'
)

src_prepare() {
    # Theoretically, overrides are possible - in practice, "pkg-config" is hardcoded...
    edo sed -i -e "s:pkg-config:$(exhost --tool-prefix)pkg-config:g" configure.ac

    autotools_src_prepare
}