1 #############################################################
5 #############################################################
6 LESS_SOURCE
=less-381.
tar.gz
7 LESS_SITE
=http
://www.greenwoodsoftware.com
/less
8 LESS_DIR
=$(BUILD_DIR
)/less-381
10 LESS_TARGET_BINARY
=usr
/bin
/less
12 $(DL_DIR
)/$(LESS_SOURCE
):
13 $(WGET
) -P
$(DL_DIR
) $(LESS_SITE
)/$(LESS_SOURCE
)
15 $(LESS_DIR
)/.source
: $(DL_DIR
)/$(LESS_SOURCE
)
16 zcat
$(DL_DIR
)/$(LESS_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
17 touch
$(LESS_DIR
)/.source
19 $(LESS_DIR
)/.configured
: $(LESS_DIR
)/.source
21 $(TARGET_CONFIGURE_OPTS
) \
23 --target
=$(GNU_TARGET_NAME
) \
24 --host
=$(GNU_TARGET_NAME
) \
25 --build
=$(GNU_HOST_NAME
) \
29 touch
$(LESS_DIR
)/.configured
;
31 $(LESS_DIR
)/$(LESS_BINARY
): $(LESS_DIR
)/.configured
32 $(MAKE
) CC
=$(TARGET_CC
) -C
$(LESS_DIR
)
34 $(TARGET_DIR
)/$(LESS_TARGET_BINARY
): $(LESS_DIR
)/$(LESS_BINARY
)
35 $(MAKE
) prefix=$(TARGET_DIR
)/usr
-C
$(LESS_DIR
) install
36 rm -Rf
$(TARGET_DIR
)/usr
/man
38 less
: uclibc
$(TARGET_DIR
)/$(LESS_TARGET_BINARY
)
40 less-source
: $(DL_DIR
)/$(LESS_SOURCE
)
43 $(MAKE
) prefix=$(TARGET_DIR
)/usr
-C
$(LESS_DIR
) uninstall
44 -$(MAKE
) -C
$(LESS_DIR
) clean