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