diff options
Diffstat (limited to 'meta-oe/recipes-graphics/fontforge/fontforge_20170731.bb')
-rw-r--r-- | meta-oe/recipes-graphics/fontforge/fontforge_20170731.bb | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/fontforge/fontforge_20170731.bb b/meta-oe/recipes-graphics/fontforge/fontforge_20170731.bb new file mode 100644 index 000000000..d9f086749 --- /dev/null +++ b/meta-oe/recipes-graphics/fontforge/fontforge_20170731.bb | |||
@@ -0,0 +1,60 @@ | |||
1 | SUMMARY = "A font editor" | ||
2 | HOMEPAGE = "http://fontforge.github.io/en-US/" | ||
3 | LICENSE = "BSD-3-Clause & GPLv3" | ||
4 | LIC_FILES_CHKSUM = " \ | ||
5 | file://COPYING.gplv3;md5=d32239bcb673463ab874e80d47fae504 \ | ||
6 | file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ | ||
7 | " | ||
8 | |||
9 | DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash gnulib" | ||
10 | DEPENDS_append_class-target = " libxi" | ||
11 | |||
12 | inherit autotools pkgconfig pythonnative distro_features_check gettext | ||
13 | |||
14 | REQUIRED_DISTRO_FEATURES_append_class-target = " x11" | ||
15 | |||
16 | SRC_URI = "git://github.com/${BPN}/${BPN}.git" | ||
17 | # tag 20170731 | ||
18 | SRCREV = "b9149c13e8f9464fc21473f1f676b36a2130775d" | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | EXTRA_OECONF_append_class-native = " with_x=no" | ||
22 | |||
23 | do_configure_prepend() { | ||
24 | # uthash sources are expected in uthash/src | ||
25 | currdir=`pwd` | ||
26 | cd ${S} | ||
27 | |||
28 | mkdir -p uthash/src | ||
29 | cp ${STAGING_INCDIR}/ut*.h uthash/src | ||
30 | |||
31 | # avoid bootstrap cloning gnulib on every configure | ||
32 | cat >.gitmodules <<EOF | ||
33 | [submodule "gnulib"] | ||
34 | path = gnulib | ||
35 | url = git://git.sv.gnu.org/gnulib | ||
36 | EOF | ||
37 | cp -rf ${STAGING_DATADIR}/gnulib ${S} | ||
38 | |||
39 | # --force to avoid errors on reconfigure e.g if recipes changed we depend on | ||
40 | # | bootstrap: running: libtoolize --quiet | ||
41 | # | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite | ||
42 | # | ... | ||
43 | ./bootstrap --force | ||
44 | |||
45 | cd $currdir | ||
46 | } | ||
47 | |||
48 | PACKAGES =+ "${PN}-python-dbg ${PN}-python" | ||
49 | |||
50 | FILES_${PN} += " \ | ||
51 | ${datadir}/mime \ | ||
52 | ${datadir}/icons \ | ||
53 | " | ||
54 | |||
55 | FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR} ${datadir}/${PN}/python" | ||
56 | FILES_${PN}-python-dbg = "${PYTHON_SITEPACKAGES_DIR}/.debug" | ||
57 | RDEPENDS_${PN}-python = "python" | ||
58 | |||
59 | # for e.g kde's oxygen-fonts | ||
60 | BBCLASSEXTEND = "native" | ||