1 #############################################################
5 #############################################################
7 DASH_SOURCE
:=dash_
$(DASH_VERSION
).orig.
tar.gz
8 DASH_SITE
:=$(BR2_DEBIAN_MIRROR
)/debian
/pool
/main
/d
/dash
10 DASH_DIR
:=$(BUILD_DIR
)/dash-
$(DASH_VERSION
)
11 DASH_PATCH1
:=dash_
$(DASH_VERSION
)-7.diff.gz
13 DASH_TARGET_BINARY
:=bin
/dash
15 $(DL_DIR
)/$(DASH_SOURCE
):
16 $(WGET
) -P
$(DL_DIR
) $(DASH_SITE
)/$(DASH_SOURCE
)
18 $(DL_DIR
)/$(DASH_PATCH1
):
19 $(WGET
) -P
$(DL_DIR
) $(DASH_SITE
)/$(DASH_PATCH1
)
21 $(DASH_DIR
)/.unpacked
: $(DL_DIR
)/$(DASH_SOURCE
) $(DL_DIR
)/$(DASH_PATCH1
)
22 $(DASH_CAT
) $(DL_DIR
)/$(DASH_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
23 $(ZCAT
) $(DL_DIR
)/$(DASH_PATCH1
) | patch
-p1
-d
$(DASH_DIR
)
24 touch
$(DASH_DIR
)/.unpacked
26 $(DASH_DIR
)/.configured
: $(DASH_DIR
)/.unpacked
27 (cd
$(DASH_DIR
); rm -rf config.cache
; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 $(TARGET_CONFIGURE_ARGS
) \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
38 --libexecdir
=/usr
/lib \
40 --datadir=/usr
/share \
41 --localstatedir
=/var \
45 touch
$(DASH_DIR
)/.configured
47 $(DASH_DIR
)/$(DASH_BINARY
): $(DASH_DIR
)/.configured
48 $(MAKE1
) CC
=$(TARGET_CC
) CC_FOR_BUILD
="$(HOSTCC)" -C
$(DASH_DIR
)
49 touch
-c
$(DASH_DIR
)/$(DASH_BINARY
)
51 $(TARGET_DIR
)/$(DASH_TARGET_BINARY
): $(DASH_DIR
)/$(DASH_BINARY
)
52 cp
-a
$(DASH_DIR
)/$(DASH_BINARY
) $(TARGET_DIR
)/$(DASH_TARGET_BINARY
)
53 touch
-c
$(TARGET_DIR
)/$(DASH_TARGET_BINARY
)
55 dash
: $(TARGET_DIR
)/$(DASH_TARGET_BINARY
)
57 dash-source
: $(DL_DIR
)/$(DASH_SOURCE
) $(DL_DIR
)/$(DASH_PATCH1
)
60 $(MAKE1
) CC
=$(TARGET_CC
) -C
$(DASH_DIR
) clean
61 rm -f
$(TARGET_DIR
)/$(DASH_TARGET_BINARY
)
66 #############################################################
68 # Toplevel Makefile options
70 #############################################################
71 ifeq ($(BR2_PACKAGE_DASH
),y
)