blob: 918fe3ece703ba12512b3b18b88f5d6e46531128 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "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"
12DEPENDS = "glib-2.0 glib-2.0-native pango gtk+3 menu-cache intltool-native libexif libfm-extra"
13
14SRC_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
19SRC_URI[md5sum] = "c15ecd2c9317e2c385cd3f046d0b61ba"
20SRC_URI[sha256sum] = "96b1244bde41ca0eef0332cfb5c67bb16725dfd102128f3e6f74fadc13a1cfe4"
21
Brad Bishop6dbb3162019-11-25 09:41:34 -050022inherit autotools pkgconfig gtk-doc gettext features_check
Brad Bishop19323692019-04-05 15:28:33 -040023ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
24
25EXTRA_OECONF = "--with-gtk=3"
26
27do_configure[dirs] =+ "${S}/m4"
28
29PACKAGES =+ "libfm-gtk"
30PACKAGES += "${PN}-mime"
31FILES_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"
42FILES_${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
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}