blob: b6f9df0c551fb46e3684a656b0597c379bbca2b2 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "Library for file management"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "LibFM provides file management functions built on top of Glib/GIO \
3giving a convenient higher-level API."
Brad Bishop19323692019-04-05 15:28:33 -04004HOMEPAGE = "http://pcmanfm.sourceforge.net/"
5
6LICENSE = "GPLv2+ & LGPLv2+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=4641e94ec96f98fabc56ff9cc48be14b \
8 file://src/fm.h;beginline=8;endline=21;md5=ef1f84da64b3c01cca447212f7ef6007 \
9 file://src/base/fm-config.h;beginline=10;endline=23;md5=ef1f84da64b3c01cca447212f7ef6007 \
10 file://src/fm-gtk.h;beginline=6;endline=19;md5=646baa4955c04fe768f2ca27b92ac8dd"
11
12
13SECTION = "x11/libs"
14DEPENDS = "glib-2.0 glib-2.0-native pango gtk+3 menu-cache intltool-native libexif libfm-extra"
15
16SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.xz \
17 file://0001-Correctly-check-the-stamp-file-that-indicates-if-we-.patch \
18 file://0001-Do-not-add-library-path-to-avoid-host-contamination.patch \
19 "
20
21SRC_URI[md5sum] = "c15ecd2c9317e2c385cd3f046d0b61ba"
22SRC_URI[sha256sum] = "96b1244bde41ca0eef0332cfb5c67bb16725dfd102128f3e6f74fadc13a1cfe4"
23
Andrew Geissler82c905d2020-04-13 13:39:40 -050024inherit autotools pkgconfig gtk-doc gettext features_check mime mime-xdg
Brad Bishop19323692019-04-05 15:28:33 -040025ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
26
27EXTRA_OECONF = "--with-gtk=3"
28
29do_configure[dirs] =+ "${S}/m4"
30
31PACKAGES =+ "libfm-gtk"
32PACKAGES += "${PN}-mime"
33FILES_libfm-gtk = " \
34 ${libdir}/libfm-gtk*so.* \
35 ${libdir}/libfm/modules/gtk* \
36 ${bindir}/libfm-pref-apps \
37 ${bindir}/lxshortcut \
38 ${datadir}/applications/libfm-pref-apps.desktop \
39 ${datadir}/applications/lxshortcut.desktop \
40 ${datadir}/libfm/images/folder.png \
41 ${datadir}/libfm/images/unknown.png \
42 ${datadir}/libfm/ui/*.ui \
43"
44FILES_${PN}-mime = "${datadir}/mime/"
45
46do_install_append () {
47 # remove files which are part of libfm-extra
48 rm -f ${D}${includedir}/libfm-1.0/fm-xml-file.h
49 rm -f ${D}${includedir}/libfm-1.0/fm-version.h
50 rm -f ${D}${includedir}/libfm-1.0/fm-extra.h
51 rm -f ${D}${includedir}/libfm
52 rm -f ${D}${libdir}/pkgconfig/libfm-extra.pc
53 rm -f ${D}${libdir}/libfm-extra.so*
54 rm -f ${D}${libdir}/libfm-extra.a
55 rm -f ${D}${libdir}/libfm-extra.la
56}