1 #############################################################
5 #############################################################
6 UTIL-LINUX_SOURCE
:=util-linux_2.12.orig.
tar.gz
7 UTIL-LINUX_SITE
:=http
://ftp.debian.org
/debian
/pool
/main
/u
/util-linux
/
8 UTIL-LINUX_PATCH
:=util-linux_2.12
-6.diff.gz
10 UTIL-LINUX_DIR
:=$(BUILD_DIR
)/util-linux-2.12
11 UTIL-LINUX_BINARY
:=$(UTIL-LINUX_DIR
)/misc-utils
/mcookie
12 UTIL-LINUX_TARGET_BINARY
:=$(TARGET_DIR
)/usr
/bin
/mcookie
14 $(DL_DIR
)/$(UTIL-LINUX_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(UTIL-LINUX_SITE
)/$(UTIL-LINUX_SOURCE
)
17 $(DL_DIR
)/$(UTIL-LINUX_PATCH
):
18 $(WGET
) -P
$(DL_DIR
) $(UTIL-LINUX_SITE
)/$(UTIL-LINUX_PATCH
)
20 $(UTIL-LINUX_DIR
)/.unpacked
: $(DL_DIR
)/$(UTIL-LINUX_SOURCE
) $(DL_DIR
)/$(UTIL-LINUX_PATCH
)
21 $(UTIL-LINUX_CAT
) $(DL_DIR
)/$(UTIL-LINUX_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
22 $(UTIL-LINUX_CAT
) $(DL_DIR
)/$(UTIL-LINUX_PATCH
) | patch
-p1
-d
$(UTIL-LINUX_DIR
)
23 cat
$(SOURCE_DIR
)/util-linux.patch | patch
-p1
-d
$(UTIL-LINUX_DIR
)
24 touch
$(UTIL-LINUX_DIR
)/.unpacked
26 $(UTIL-LINUX_DIR
)/.configured
: $(UTIL-LINUX_DIR
)/.unpacked
27 (cd
$(UTIL-LINUX_DIR
); rm -rf config.cache
; \
28 $(TARGET_CONFIGURE_OPTS
) \
30 --target
=$(GNU_TARGET_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
44 $(SED
) "s,^INSTALLSUID=.*,INSTALLSUID=\\$$\(INSTALL\) -m \\$$\(BINMODE\)," \
45 $(UTIL-LINUX_DIR
)/MCONFIG
46 $(SED
) "s,^USE_TTY_GROUP=.*,USE_TTY_GROUP=no," $(UTIL-LINUX_DIR
)/MCONFIG
47 touch
$(UTIL-LINUX_DIR
)/.configured
49 $(UTIL-LINUX_BINARY
): $(UTIL-LINUX_DIR
)/.configured
50 $(MAKE
) ARCH
=$(ARCH
) CC
=$(TARGET_CC
) -C
$(UTIL-LINUX_DIR
)
52 $(UTIL-LINUX_TARGET_BINARY
): $(UTIL-LINUX_BINARY
)
53 $(MAKE
) DESTDIR
=$(TARGET_DIR
) USE_TTY_GROUP
=no
-C
$(UTIL-LINUX_DIR
) install
54 rm -rf
$(TARGET_DIR
)/share
/locale
$(TARGET_DIR
)/usr
/info \
55 $(TARGET_DIR
)/usr
/man
$(TARGET_DIR
)/usr
/share
/doc
57 util-linux
: uclibc
$(UTIL-LINUX_TARGET_BINARY
)
59 util-linux-source
: $(DL_DIR
)/$(UTIL-LINUX_SOURCE
)
62 #There is no working 'uninstall' target. Just skip it...
63 #$(MAKE) DESTDIR=$(TARGET_DIR) -C $(UTIL-LINUX_DIR) uninstall
64 -$(MAKE
) -C
$(UTIL-LINUX_DIR
) clean
67 rm -rf
$(UTIL-LINUX_DIR
)
This page took 0.048109 seconds and 5 git commands to generate.