blob: 596408353fa02b3c40cf0baa03f0124c81a5fbaf [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Library for file management"
2HOMEPAGE = "http://pcmanfm.sourceforge.net/"
3
4LICENSE = "GPLv2+ & LGPLv2+"
5LIC_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
11SECTION = "x11/libs"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012DEPENDS = "glib-2.0 glib-2.0-native pango gtk+3 menu-cache intltool-native libexif libfm-extra"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013
14SRC_URI = "${SOURCEFORGE_MIRROR}/pcmanfm/libfm-${PV}.tar.xz \
Brad Bishop316dfdd2018-06-25 12:45:53 -040015 file://0001-Correctly-check-the-stamp-file-that-indicates-if-we-.patch \
16 file://0001-Enclose-text-in-programlisting-into-CDATA.patch \
17 "
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018
19SRC_URI[md5sum] = "a1ba9ae5e920f38b647dd511edd6c807"
20SRC_URI[sha256sum] = "c706bb1020cf5f2d6f5a9226f692ce1985947134dcf2bde64278bd0420779b5a"
21
Brad Bishop316dfdd2018-06-25 12:45:53 -040022inherit autotools pkgconfig gtk-doc gettext distro_features_check
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
24
25EXTRA_OECONF = "--with-gtk=3"
26
27do_configure[dirs] =+ "${S}/m4"
28
Brad Bishop316dfdd2018-06-25 12:45:53 -040029PACKAGES =+ "libfm-gtk"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030PACKAGES += "${PN}-mime"
Brad Bishop316dfdd2018-06-25 12:45:53 -040031FILES_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 Bishop6e60e8b2018-02-01 10:27:11 -050042FILES_${PN}-mime = "${datadir}/mime/"
43
44do_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 Bishopd7bf8c12018-02-25 22:55:05 -050049 rm -f ${D}${includedir}/libfm
Brad Bishop6e60e8b2018-02-01 10:27:11 -050050 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}