blob: 70bd3c45f014605bae546087e37dd96cfb0acc47 (
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
|
SUMMARY = "GUI toolkit for Mono"
DESCRIPTION = "GTK+ bindings for Mono"
SECTION = "devel/mono"
BUGTRACKER = "http://bugzilla.xamarin.com"
LICENSE = "LGPL-2.1"
RDEPENDS:${PN}-dev += "perl"
inherit autotools
inherit mono
# For some reason the URL template changes from version to version,
# therefore use some variables for the directory and extension
SRC_URI = "http://download.mono-project.com/sources/gtk-sharp${SDIRVER}/gtk-sharp-${PV}.tar.${SEXT}"
SDIRVER = "${@gtk_sharp_download_version(d)}"
SEXT ??= "bz2"
def gtk_sharp_download_version(d):
pvsplit = d.getVar('PV', True).split('.')
return pvsplit[0] + '' + pvsplit[1]
FILESPATH =. "${FILE_DIRNAME}/gtk-sharp-${PV}:"
FILES:${PN} += "\
${libdir}/*.so \
"
FILES:${PN}-dev = "\
${libdir}/*.la \
${libdir}/pkgconfig/* \
${libdir}/${PN}*/* \
${datadir}/* \
"
DIRFILES = "1"
do_install:append() {
find ${D} -name *.dll -exec chown -h root:root {} \;
}
|