Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [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] = "02a024714d51e0d37afc7bd596a44f3b" |
| 20 | SRC_URI[sha256sum] = "18d06f7996ce1cf8947df6e106bc0338c6ae0c4138c316f2501f6f6f435c7c72" |
| 21 | |
| 22 | inherit autotools pkgconfig gtk-doc gettext distro_features_check |
| 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 | } |