aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/pidgin/freeimage_3.17.0.bb
blob: e47dbe4aa8824821aa4700b21680cff848ba033b (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
SUMMARY = "FreeImage tool used by WhatsApp Purple"
SECTION = "webos/support"

#Due to issues with CRLF line endings in LibWebP now using our own fork, so we don't need to patch in OE which caused issues. In future we migth be able to go back to upstream 3.18.0 release directly for example.
SRC_URI = "git://github.com/webos-ports/FreeImage"

SRCREV = "60b253f7cd9e82fb730cff7aa46b4eaa855443f1"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = " \
    file://license-fi.txt;md5=7d2690b4d6d7dd53d69a773664bc4850 \
    file://license-gplv2.txt;md5=0440c487be0c0200c36caf975ab31174 \
    file://license-gplv3.txt;md5=e9661e0bea741d71a430b23475da519e \
"

S = "${WORKDIR}/git/"

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
}

INSANE_SKIP_${PN} = "already-stripped dev-so"

FILES_${PN} += "${libdir}"
FILES_SOLIBSDEV = "{libdir}/lib${BP}${SOLIBSDEV}"