xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/fontforge/fontforge_20190801.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "A font editor"
2HOMEPAGE = "http://fontforge.github.io/en-US/"
3LICENSE = "BSD-3-Clause & GPL-3.0-only"
4LIC_FILES_CHKSUM = " \
5    file://COPYING.gplv3;md5=d32239bcb673463ab874e80d47fae504 \
6    file://LICENSE;md5=d042f3d2a8fd7208b704a499168e3c89 \
7"
8
9DEPENDS = "python3 glib-2.0 pango giflib tiff libxml2 jpeg libtool uthash gettext-native"
10DEPENDS:append:class-target = " libxi"
11
12inherit autotools pkgconfig python3native features_check gettext gtk-icon-cache mime mime-xdg
13
14REQUIRED_DISTRO_FEATURES:append:class-target = " x11"
15
16# tag 20190801
17SRCREV = "ac635b818e38ddb8e7e2e1057330a32b4e25476e"
18SRC_URI = "git://github.com/${BPN}/${BPN}.git;branch=master;protocol=https \
19           file://0001-include-sys-select-on-non-glibc-platforms.patch \
20"
21S = "${WORKDIR}/git"
22
23EXTRA_OECONF += "--without-libuninameslist  --enable-python-scripting --enable-python-extension"
24EXTRA_OECONF:append:class-native = " with_x=no"
25
26LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
27BUILD_LDFLAGS += "-lpython${PYTHON_BASEVERSION}${PYTHON_ABI}"
28
29#do_configure:prepend() {
30# uthash sources are expected in uthash/src
31#    mkdir -p ${S}/uthash/src
32#    cp ${STAGING_INCDIR}/ut*.h ${S}/uthash/src
33#}
34
35PACKAGES =+ "${PN}-python"
36
37FILES:${PN} += " \
38    ${datadir}/appdata \
39    ${datadir}/metainfo \
40    ${datadir}/mime \
41"
42
43FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR} ${datadir}/${BPN}/python"
44RDEPENDS:${PN}-python = "python3"
45
46# for e.g kde's oxygen-fonts
47BBCLASSEXTEND = "native"
48