1*4882a593SmuzhiyunSUMMARY = "GTK+2 standard themes"
2*4882a593SmuzhiyunHOMEPAGE = "http://ftp.gnome.org/pub/GNOME/sources/gnome-themes-standard/"
3*4882a593SmuzhiyunBUGTRACKER = "https://bugzilla.gnome.org/"
4*4882a593SmuzhiyunSECTION = "x11/gnome"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunLICENSE = "LGPL-2.1-only"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
8*4882a593Smuzhiyun
9*4882a593Smuzhiyuninherit gnomebase gettext gtk-icon-cache upstream-version-is-even features_check
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunDEPENDS += "intltool-native gtk+"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# PV is 3.28 not 3.28.0, so the gnomebase SRC_URI isn't right.
16*4882a593SmuzhiyunSRC_URI = "${GNOME_MIRROR}/${BPN}/${PV}/${BPN}-${PV}.tar.xz;name=archive"
17*4882a593SmuzhiyunSRC_URI[archive.md5sum] = "f9f2c6c521948da427f702372e16f826"
18*4882a593SmuzhiyunSRC_URI[archive.sha256sum] = "7c4ba0bff001f06d8983cfc105adaac42df1d1267a2591798a780bac557a5819"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunEXTRA_OECONF = "--disable-gtk3-engine"
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_install:append() {
23*4882a593Smuzhiyun        # Only building Adwaita, remove highcontrast files
24*4882a593Smuzhiyun        rm -rf ${D}${prefix}/share/themes/HighContrast \
25*4882a593Smuzhiyun               ${D}${prefix}/share/icons
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun	# The libtool archive file is unneeded with shared libs on modern Linux
28*4882a593Smuzhiyun	rm -rf ${D}${libdir}/gtk-2.0/2.10.0/engines/libadwaita.la
29*4882a593Smuzhiyun}
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun# There could be gnome-theme-highcontrast as well but that requires
32*4882a593Smuzhiyun# gtk+3 and includes lots of icons (is also broken with B != S).
33*4882a593SmuzhiyunPACKAGES += "gnome-theme-adwaita \
34*4882a593Smuzhiyun             gnome-theme-adwaita-dark \
35*4882a593Smuzhiyun             "
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunFILES:gnome-theme-adwaita = "${prefix}/share/themes/Adwaita \
38*4882a593Smuzhiyun                              ${libdir}/gtk-2.0/2.10.0/engines/libadwaita.so"
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunFILES:gnome-theme-adwaita-dark = "${prefix}/share/themes/Adwaita-dark"
41*4882a593SmuzhiyunRDEPENDS:gnome-theme-adwaita-dark = "gnome-theme-adwaita"
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun# gnome-themes-standard is empty and doesn't exist
44*4882a593SmuzhiyunRDEPENDS:${PN}-dev = ""
45