summaryrefslogtreecommitdiff
path: root/recipes/geda/geda-gattrib_1.4.3.bb
blob: 02f96b069780025e7ff85db7d044bef350a6a53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LICENSE = "GPLv2"
HOMEPAGE = "http://www.gpleda.org/"
FILES_${PN} += "${datadir}/gEDA ${datadir}/icons"
PR = "r1"

DEPENDS = "gtk+ libgeda"

SRC_URI = "http://geda.seul.org/release/v1.4/${PV}/${P}.tar.gz"
inherit autotools pkgconfig

EXTRA_OECONF = "--disable-update-desktop-database"

do_patch_prepend() {
        import bb
        if bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1) and
        bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[0] <= '2' and 
        bb.data.getVar('PREFERRED_VERSION_gtk+', d, 1).split('.')[1] < '18':
            SRC_URI_append = "file://gattrib-gtk218.patch;patch=1"
}