1 #############################################################
5 #############################################################
6 FILE_SOURCE
:=file-4.08.
tar.gz
7 FILE_SITE
:=ftp
://ftp.astron.com
/pub
/file
8 FILE_DIR
:=$(BUILD_DIR
)/file-4.08
11 FILE_TARGET_BINARY
:=usr
/bin
/file
13 $(DL_DIR
)/$(FILE_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(FILE_SITE
)/$(FILE_SOURCE
)
16 file-source
: $(DL_DIR
)/$(FILE_SOURCE
)
18 $(FILE_DIR
)/.unpacked
: $(DL_DIR
)/$(FILE_SOURCE
)
19 $(FILE_CAT
) $(DL_DIR
)/$(FILE_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
20 cat
$(SOURCE_DIR
)/file.patch | patch
-p1
-d
$(FILE_DIR
)
21 touch
$(FILE_DIR
)/.unpacked
23 $(FILE_DIR
)/.configured
: $(FILE_DIR
)/.unpacked
24 (cd
$(FILE_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share
/misc \
38 --localstatedir
=/var \
42 $(DISABLE_LARGEFILE
) \
43 --disable-fsect-man5 \
45 touch
$(FILE_DIR
)/.configured
47 $(FILE_DIR
)/$(FILE_BINARY
): $(FILE_DIR
)/.configured
48 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(FILE_DIR
)
50 $(TARGET_DIR
)/$(FILE_TARGET_BINARY
): $(FILE_DIR
)/$(FILE_BINARY
)
51 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) DESTDIR
=$(TARGET_DIR
) -C
$(FILE_DIR
) install
52 -($(STRIP
) $(TARGET_DIR
)/usr
/lib
/libmagic.so.
*.
* > /dev
/null
2>&1)
53 rm -rf
$(TARGET_DIR
)/share
/locale
$(TARGET_DIR
)/usr
/info \
54 $(TARGET_DIR
)/usr
/man
$(TARGET_DIR
)/usr
/share
/doc
56 file
: zlib uclibc
$(TARGET_DIR
)/$(FILE_TARGET_BINARY
)
59 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(FILE_DIR
) uninstall
60 -$(MAKE
) -C
$(FILE_DIR
) clean
This page took 0.048483 seconds and 5 git commands to generate.