Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SECTION = "libs" |
| 2 | SUMMARY = "OSM/Motif implementation" |
| 3 | LICENSE = "OGPL" |
| 4 | DEPENDS = "xbitmaps virtual/libx11 libxt libxft xproto" |
| 5 | |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=14f692c82491db3d52419929d2f3b343" |
| 7 | |
| 8 | PR = "r3" |
| 9 | |
| 10 | PNBLACKLIST[openmotif] ?= "BROKEN: doesn't build with B!=S" |
| 11 | |
| 12 | SRC_URI = "http://motif.ics.com/sites/default/files/openmotif-2.3.3.tar.gz \ |
| 13 | file://configure.patch;patch=1" |
| 14 | |
| 15 | SRC_URI[md5sum] = "fd27cd3369d6c7d5ef79eccba524f7be" |
| 16 | SRC_URI[sha256sum] = "c85f5545e218fa0c59a3789192132d472fc5a33e914a221a568eee4fc10cd103" |
| 17 | |
| 18 | inherit autotools |
| 19 | |
| 20 | PACKAGECONFIG ??= "" |
| 21 | PACKAGECONFIG[jpeg] = "--enable-jpeg,--disable-jpeg,jpeg" |
| 22 | PACKAGECONFIG[png] = "--enable-png,--disable-png,libpng" |
| 23 | |
| 24 | EXTRA_OECONF = "X_CFLAGS=-I${STAGING_INCDIR} --disable-printing" |
| 25 | |
| 26 | PACKAGES += "${PN}-bin" |
| 27 | |
| 28 | FILES_${PN}-bin = "${bindir}" |
| 29 | |
| 30 | do_compile() { |
| 31 | ( |
| 32 | # HACK: build a native binaries need during the build |
| 33 | unset CC LD CXX CCLD CFLAGS |
| 34 | oe_runmake -C config/util CC="${BUILD_CC}" LD="${BUILD_LD}" CXX="${BUILD_CXX}" LIBS="" makestrs |
| 35 | ) |
| 36 | if [ "$?" != "0" ]; then |
| 37 | exit 1 |
| 38 | fi |
| 39 | oe_runmake -C lib |
| 40 | oe_runmake -C include |
| 41 | } |
| 42 | |
| 43 | do_install() { |
| 44 | oe_runmake DESTDIR=${D} -C lib install |
| 45 | oe_runmake DESTDIR=${D} -C include install |
| 46 | } |
| 47 | |
| 48 | LEAD_SONAME = "libXm.so.4" |