blob: 057c73702936e841c4befba45755ad42b90841fc [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
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00006LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later"
Brad Bishop19323692019-04-05 15:28:33 -04007LIC_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
William A. Kennington IIIac69b482021-06-02 12:28:27 -070021SRC_URI[sha256sum] = "a5042630304cf8e5d8cff9d565c6bd546f228b48c960153ed366a34e87cad1e5"
Brad Bishop19323692019-04-05 15:28:33 -040022
Andrew Geissler82c905d2020-04-13 13:39:40 -050023inherit autotools pkgconfig gtk-doc gettext features_check mime mime-xdg
Brad Bishop19323692019-04-05 15:28:33 -040024ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
25
26EXTRA_OECONF = "--with-gtk=3"
27
28do_configure[dirs] =+ "${S}/m4"
29
30PACKAGES =+ "libfm-gtk"
31PACKAGES += "${PN}-mime"
Patrick Williams213cb262021-08-07 19:21:33 -050032FILES:libfm-gtk = " \
Brad Bishop19323692019-04-05 15:28:33 -040033 ${libdir}/libfm-gtk*so.* \
34 ${libdir}/libfm/modules/gtk* \
35 ${bindir}/libfm-pref-apps \
36 ${bindir}/lxshortcut \
37 ${datadir}/applications/libfm-pref-apps.desktop \
38 ${datadir}/applications/lxshortcut.desktop \
39 ${datadir}/libfm/images/folder.png \
40 ${datadir}/libfm/images/unknown.png \
41 ${datadir}/libfm/ui/*.ui \
42"
Patrick Williams213cb262021-08-07 19:21:33 -050043FILES:${PN}-mime = "${datadir}/mime/"
Brad Bishop19323692019-04-05 15:28:33 -040044
Patrick Williams213cb262021-08-07 19:21:33 -050045do_install:append () {
Brad Bishop19323692019-04-05 15:28:33 -040046 # remove files which are part of libfm-extra
47 rm -f ${D}${includedir}/libfm-1.0/fm-xml-file.h
48 rm -f ${D}${includedir}/libfm-1.0/fm-version.h
49 rm -f ${D}${includedir}/libfm-1.0/fm-extra.h
50 rm -f ${D}${includedir}/libfm
51 rm -f ${D}${libdir}/pkgconfig/libfm-extra.pc
52 rm -f ${D}${libdir}/libfm-extra.so*
53 rm -f ${D}${libdir}/libfm-extra.a
54 rm -f ${D}${libdir}/libfm-extra.la
55}