Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 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" |
| 10 | DEPENDS_append_class-target = " libxi" |
| 11 | |
| 12 | inherit autotools pkgconfig pythonnative distro_features_check |
| 13 | |
| 14 | REQUIRED_DISTRO_FEATURES_append_class-target = " x11" |
| 15 | |
| 16 | SRC_URI = "git://github.com/${BPN}/${BPN}.git" |
| 17 | # tag 20150824 |
| 18 | SRCREV = "07d5ccff2704f8a56f1b3cc6695a4e31f85f88e6" |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
| 21 | EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting" |
| 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" |