aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/diffutils/diffutils_%.bbappend
blob: 284f8cb14f792053d20e8d280873a47a8c4667e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FILESEXTRAPATHS:prepend:mingw32 := "${THISDIR}/${BPN}:"

# Add some definitions for POSIX signals..
CFLAGS:append:mingw32 = " -DSIGALRM=14 -DSIGHUP=1 -DSIGQUIT=3 -DSIGPIPE=13 -DSIGTSTP=18 -DSIGSTOP=17 "

SRC_URI:append:mingw32 = "\
       file://0001-sdiff-Match-execvp-argument-types.patch \
       file://0002-Define-stricoll-as-_stricoll-on-mingw.patch"

do_configure:prepend:mingw32 () {
    # Remove building of "man" and "gnulib-tests". The tests don't
    # cross-compile for mingw, but we aren't using them anyway
    sed -i \
        -e 's:^SUBDIRS =\(.*\) man\>:SUBDIRS = \1 :g' \
        -e 's:^SUBDIRS =\(.*\) gnulib-tests\>:SUBDIRS = \1 :g' \
        ${S}/Makefile.am
}