summaryrefslogtreecommitdiff
path: root/recipes/ogre/freeimage_3.11.0.bb
blob: 49b08484749bafac4b1dce203193a01466a82271 (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
LICENSE = "MIT"
do_unpack[depends] += "unzip-native:do_populate_staging"

PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/freeimage/FreeImage3110.zip"

S = "${WORKDIR}/FreeImage/"

TARGET_CC_ARCH += "${LDFLAGS}"

do_configure() {
    sed -i -e /^CC/d \
           -e /^CXX\ /d \
           -e /^AR/d \
           -e /^INCDIR\ /d \
           -e /^INSTALLDIR\ /d \
           -e s:'-o root -g root'::g \
           -e /ldconfig/d \
    ${S}/Makefile.gnu
}

do_install() {
	install -d ${D}${libdir}
	install -d ${D}${includedir}
	oe_runmake INSTALLDIR="${D}${libdir}" INCDIR="${D}${includedir}" install
}

do_stage() {
	install -d ${STAGING_LIBDIR}
	install -d ${STAGING_INCDIR}
	oe_runmake  INSTALLDIR="${STAGING_LIBDIR}" INCDIR="${STAGING_INCDIR}" install
}