mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
Add file (and file-native)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@408 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
include file_${PV}.bb
|
||||||
|
inherit native
|
||||||
|
|
||||||
|
# avoid dependency loop
|
||||||
|
DEPENDS = ""
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
|
SRC_URI += "file://native-fix.diff;patch=1"
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
DESCRIPTION = "File attempts to classify files depending \
|
||||||
|
on their contents and prints a description if a match is found."
|
||||||
|
SECTION = "console/utils"
|
||||||
|
LICENSE = "BSD-ADV"
|
||||||
|
DEPENDS = "file-native"
|
||||||
|
|
||||||
|
SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz"
|
||||||
|
S = "${WORKDIR}/file-${PV}"
|
||||||
|
|
||||||
|
inherit autotools
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
sed -i -e 's,$(top_builddir)/src/file,file,' ${S}/magic/Makefile.am
|
||||||
|
}
|
||||||
|
|
||||||
|
do_stage() {
|
||||||
|
autotools_stage_all
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: file-4.16/magic/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- file-4.16.orig/magic/Makefile.am 2005-08-18 17:20:49.000000000 +0200
|
||||||
|
+++ file-4.16/magic/Makefile.am 2006-03-08 17:01:13.000000000 +0100
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
if IS_CROSS_COMPILE
|
||||||
|
FILE_COMPILE = file
|
||||||
|
else
|
||||||
|
-FILE_COMPILE = $(top_builddir)/src/file
|
||||||
|
+FILE_COMPILE = ../src/file
|
||||||
|
endif
|
||||||
|
|
||||||
|
magic.mgc: magic
|
||||||
Reference in New Issue
Block a user