aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/openmotif/openmotif_2.3.3.bb
blob: 98882462f719527321367488bac0b7fb07f7565d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SECTION = "libs"
DESCRIPTION = "OSM/Motif implementation."
LICENSE = "OGPL"
DEPENDS = "xbitmaps virtual/libx11 libxt libxft xproto"

LIC_FILES_CHKSUM = "file://LICENSE;md5=14f692c82491db3d52419929d2f3b343"

PR = "r3"

SRC_URI = "http://fossies.org/unix/misc/openmotif-2.3.3.tar.gz \
           file://configure.patch;patch=1"

SRC_URI[md5sum] = "fd27cd3369d6c7d5ef79eccba524f7be"
SRC_URI[sha256sum] = "c85f5545e218fa0c59a3789192132d472fc5a33e914a221a568eee4fc10cd103"

inherit autotools

EXTRA_OECONF = "X_CFLAGS=-I${STAGING_INCDIR} --disable-printing"

PACKAGES += "${PN}-bin"

FILES_${PN}-bin = "${bindir}"

do_compile() {
	(
		# HACK: build a native binaries need during the build
		unset CC LD CXX CCLD CFLAGS
		oe_runmake -C config/util CC="${BUILD_CC}" LD="${BUILD_LD}" CXX="${BUILD_CXX}" LIBS="" makestrs
    )
    if [ "$?" != "0" ]; then
        exit 1
    fi
    oe_runmake -C lib
    oe_runmake -C include
}

do_install() {
    oe_runmake DESTDIR=${D} -C lib install
    oe_runmake DESTDIR=${D} -C include install
}

LEAD_SONAME = "libXm.so.4"