Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Library for file management" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "LibFM provides file management functions built on top of Glib/GIO \ |
| 3 | giving a convenient higher-level API." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 4 | HOMEPAGE = "http://pcmanfm.sourceforge.net/" |
| 5 | |
| 6 | LICENSE = "GPLv2+ & LGPLv2+" |
| 7 | LIC_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 | |
| 13 | SECTION = "x11/libs" |
| 14 | DEPENDS = "glib-2.0 glib-2.0-native pango gtk+3 menu-cache intltool-native libexif libfm-extra" |
| 15 | |
| 16 | SRC_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 III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 21 | SRC_URI[sha256sum] = "a5042630304cf8e5d8cff9d565c6bd546f228b48c960153ed366a34e87cad1e5" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 22 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | inherit autotools pkgconfig gtk-doc gettext features_check mime mime-xdg |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 25 | |
| 26 | EXTRA_OECONF = "--with-gtk=3" |
| 27 | |
| 28 | do_configure[dirs] =+ "${S}/m4" |
| 29 | |
| 30 | PACKAGES =+ "libfm-gtk" |
| 31 | PACKAGES += "${PN}-mime" |
| 32 | FILES_libfm-gtk = " \ |
| 33 | ${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 | " |
| 43 | FILES_${PN}-mime = "${datadir}/mime/" |
| 44 | |
| 45 | do_install_append () { |
| 46 | # 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 | } |