diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2010-09-21 16:32:13 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-22 00:03:00 +0100 |
commit | 23bfe02542e83c14948d791f45ff04159244a4b5 (patch) | |
tree | f18818d971b321639b7003557a04d4fe2ec00caa | |
parent | 3c5984a5ba8cde2171e0cfb62803c5e6a7bf35e6 (diff) | |
download | openembedded-core-23bfe02542e83c14948d791f45ff04159244a4b5.tar.gz openembedded-core-23bfe02542e83c14948d791f45ff04159244a4b5.tar.bz2 openembedded-core-23bfe02542e83c14948d791f45ff04159244a4b5.zip |
[#BUG298]:Fix some bugs during compiling based on x86_64
fix a problem that compliation failed for groff on machine x86_64
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
-rw-r--r-- | meta/recipes-extended/groff/groff_1.18.1.4.bb | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/meta/recipes-extended/groff/groff_1.18.1.4.bb b/meta/recipes-extended/groff/groff_1.18.1.4.bb index a215745ce4..b78cbfa02d 100644 --- a/meta/recipes-extended/groff/groff_1.18.1.4.bb +++ b/meta/recipes-extended/groff/groff_1.18.1.4.bb @@ -3,44 +3,39 @@ SECTION = "console/utils" PRIORITY = "required" HOMEPAGE = "ftp://ftp.gnu.org/gnu/groff/" LICENSE = "GPLv2" -PR = "r0" +PR = "r1" LIC_FILE_CHKSUM = "file://CORYING;md5=e43fc16fccd8519fba405f0a0ff6e8a3" -SRC_URI = "ftp://ftp.gnu.org/gnu/groff/groff-1.18.1.4.tar.gz \ +SRC_URI = "ftp://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \ file://groff-1.18.1.4-remove-mom.patch;striplevel=1 \ - file://man-local.patch;patch=1 \ - file://mdoc-local.patch;patch=1" + file://man-local.patch \ + file://mdoc-local.patch" inherit autotools -EXTRA_OEMAKE =+ "-f Makefile mandir=${D}${mandir}" +EXTRA_OECONF="--without-x --prefix=${D} --exec-prefix=${D} --bindir=${D}${bindir} --datadir=${D}${datadir} --mandir=${D}${datadir}/man --infodir=${D}${datadir}info --with-appresdir=${D}${datadir}" +PARALLEL_MAKE = "" + -localdir=/usr/local/ do_configure (){ - mkdir -p ${D}/usr/local - ${S}/configure --prefix=${D}/usr/local + oe_runconf } - -fakeroot do_install(){ - mkdir -p ${D}/usr/local/man/man1 - mkdir -p ${D}/usr/local/man/man5 - mkdir -p ${D}/usr/local/man/man7 - oe_runmake install DESTDIR=${D} +do_install_prepend() { + install -m 0755 -d ${D} } + do_install_append() { - mv ${D}/usr/local/bin ${D}/usr - mkdir -p ${D}${sysconfdir}/groff - cp -rf ${D}/usr/local/share/groff/site-tmac/* ${D}/usr/local/share/groff/1.18.1.4/tmac/ - cp -rf ${D}/usr/local/share/groff/site-tmac/* ${D}${sysconfdir}/groff/ + mkdir -p ${D}${sysconfdir}/groff + cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${sysconfdir}/groff/ + cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${datadir}/groff/${PV}/tmac/ } pkg_postinst_${PN}() { ln -s ${bindir}/tbl ${bindir}/gtbl - echo "export GROFF_FONT_PATH=/usr/local/share/groff/1.18.1.4/font" >> ${sysconfdir}/profile - echo "export GROFF_TMAC_PATH=/usr/local/share/groff/1.18.1.4/tmac" >> ${sysconfdir}/profile + echo "export GROFF_FONT_PATH=/usr/share/groff/${PV}/font" >> ${sysconfdir}/profile + echo "export GROFF_TMAC_PATH=/usr/share/groff/${PV}/tmac" >> ${sysconfdir}/profile } -FILES_${PN} += "${localdir}/" |