1 #############################################################
5 #############################################################
6 GNUPATCH_SOURCE
:=patch_2.5
.9.orig.
tar.gz
7 GNUPATCH_SITE
:=http
://ftp.debian.org
/debian
/pool
/main
/p
/patch
9 GNUPATCH_DIR
:=$(BUILD_DIR
)/patch-2.5
.9
10 GNUPATCH_BINARY
:=patch
11 GNUPATCH_TARGET_BINARY
:=usr
/bin
/patch
13 $(DL_DIR
)/$(GNUPATCH_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(GNUPATCH_SITE
)/$(GNUPATCH_SOURCE
)
16 patch-source
: $(DL_DIR
)/$(GNUPATCH_SOURCE
)
18 $(GNUPATCH_DIR
)/.unpacked
: $(DL_DIR
)/$(GNUPATCH_SOURCE
)
19 $(GNUPATCH_CAT
) $(DL_DIR
)/$(GNUPATCH_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
20 touch
$(GNUPATCH_DIR
)/.unpacked
22 $(GNUPATCH_DIR
)/.configured
: $(GNUPATCH_DIR
)/.unpacked
23 (cd
$(GNUPATCH_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
34 --libexecdir
=/usr
/lib \
36 --datadir=/usr
/share \
37 --localstatedir
=/var \
41 $(DISABLE_LARGEFILE
) \
43 touch
$(GNUPATCH_DIR
)/.configured
45 $(GNUPATCH_DIR
)/$(GNUPATCH_BINARY
): $(GNUPATCH_DIR
)/.configured
46 $(MAKE
) CC
=$(TARGET_CC
) -C
$(GNUPATCH_DIR
)
48 $(TARGET_DIR
)/$(GNUPATCH_TARGET_BINARY
): $(GNUPATCH_DIR
)/$(GNUPATCH_BINARY
)
49 rm -f
$(TARGET_DIR
)/$(GNUPATCH_TARGET_BINARY
)
50 cp
-a
$(GNUPATCH_DIR
)/$(GNUPATCH_BINARY
) $(TARGET_DIR
)/$(GNUPATCH_TARGET_BINARY
)
52 patch
: uclibc
$(TARGET_DIR
)/$(GNUPATCH_TARGET_BINARY
)
55 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(GNUPATCH_DIR
) uninstall
56 -$(MAKE
) -C
$(GNUPATCH_DIR
) clean
59 rm -rf
$(GNUPATCH_DIR
)
This page took 0.050484 seconds and 5 git commands to generate.