diff options
| -rw-r--r-- | meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb index fa7aa62eb3..355ed6a16e 100644 --- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | |||
| @@ -24,6 +24,10 @@ SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7 | |||
| 24 | 24 | ||
| 25 | inherit autotools-brokensep native | 25 | inherit autotools-brokensep native |
| 26 | 26 | ||
| 27 | # Statically link local libs to avoid gold link issue [YOCTO #2972] | ||
| 28 | PACKAGECONFIG ?= "static-only-libs" | ||
| 29 | PACKAGECONFIG[static-only-libs] = "--enable-static --disable-shared,--enable-static --enable-shared,," | ||
| 30 | |||
| 27 | EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \ | 31 | EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \ |
| 28 | --enable-splibdir=${STAGING_LIBDIR}" | 32 | --enable-splibdir=${STAGING_LIBDIR}" |
| 29 | 33 | ||
| @@ -57,14 +61,20 @@ do_compile_prepend () { | |||
| 57 | do_install() { | 61 | do_install() { |
| 58 | # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html | 62 | # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html |
| 59 | # for details. | 63 | # for details. |
| 60 | install -d ${D}${bindir} | 64 | install -d ${D}${bindir} ${D}${libdir} |
| 61 | install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade | 65 | if ${@bb.utils.contains('PACKAGECONFIG', 'static-only-libs', 'true', 'false', d)}; then |
| 66 | install -m 0755 jade/openjade ${D}${bindir}/openjade | ||
| 67 | oe_libinstall -a -C style libostyle ${D}${libdir} | ||
| 68 | oe_libinstall -a -C spgrove libospgrove ${D}${libdir} | ||
| 69 | oe_libinstall -a -C grove libogrove ${D}${libdir} | ||
| 70 | else | ||
| 71 | install -m 0755 jade/.libs/openjade ${D}${bindir}/openjade | ||
| 72 | oe_libinstall -a -so -C style libostyle ${D}${libdir} | ||
| 73 | oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir} | ||
| 74 | oe_libinstall -a -so -C grove libogrove ${D}${libdir} | ||
| 75 | fi | ||
| 62 | ln -sf openjade ${D}${bindir}/jade | 76 | ln -sf openjade ${D}${bindir}/jade |
| 63 | 77 | ||
| 64 | oe_libinstall -a -so -C style libostyle ${D}${libdir} | ||
| 65 | oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir} | ||
| 66 | oe_libinstall -a -so -C grove libogrove ${D}${libdir} | ||
| 67 | |||
| 68 | install -d ${D}${datadir}/sgml/openjade-${PV} | 78 | install -d ${D}${datadir}/sgml/openjade-${PV} |
| 69 | install -m 644 dsssl/catalog ${D}${datadir}/sgml/openjade-${PV} | 79 | install -m 644 dsssl/catalog ${D}${datadir}/sgml/openjade-${PV} |
| 70 | install -m 644 dsssl/*.dtd ${D}${datadir}/sgml/openjade-${PV} | 80 | install -m 644 dsssl/*.dtd ${D}${datadir}/sgml/openjade-${PV} |
