Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [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" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | DEPENDS = "glib-2.0 glib-2.0-native pango gtk+3 menu-cache intltool-native libexif libfm-extra" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | |
| 14 | SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.xz \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | file://0001-Correctly-check-the-stamp-file-that-indicates-if-we-.patch \ |
| 16 | file://0001-Enclose-text-in-programlisting-into-CDATA.patch \ |
| 17 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | |
| 19 | SRC_URI[md5sum] = "a1ba9ae5e920f38b647dd511edd6c807" |
| 20 | SRC_URI[sha256sum] = "c706bb1020cf5f2d6f5a9226f692ce1985947134dcf2bde64278bd0420779b5a" |
| 21 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | inherit autotools pkgconfig gtk-doc gettext distro_features_check |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 24 | |
| 25 | EXTRA_OECONF = "--with-gtk=3" |
| 26 | |
| 27 | do_configure[dirs] =+ "${S}/m4" |
| 28 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 29 | PACKAGES =+ "libfm-gtk" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | PACKAGES += "${PN}-mime" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 49 | rm -f ${D}${includedir}/libfm |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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 | } |