2010-11-18 23:43:33 +00:00
|
|
|
SUMMARY = "File classification tool"
|
2006-11-20 15:26:57 +00:00
|
|
|
DESCRIPTION = "File attempts to classify files depending \
|
|
|
|
on their contents and prints a description if a match is found."
|
2010-07-01 08:50:09 +00:00
|
|
|
HOMEPAGE = "http://www.darwinsys.com/file/"
|
2006-11-20 15:26:57 +00:00
|
|
|
SECTION = "console/utils"
|
2010-07-01 08:50:09 +00:00
|
|
|
|
|
|
|
# two clause BSD
|
|
|
|
LICENSE = "BSD"
|
2010-08-17 02:58:15 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188"
|
2010-07-01 08:50:09 +00:00
|
|
|
|
2015-10-16 22:02:26 +00:00
|
|
|
DEPENDS = "zlib file-replacement-native"
|
2012-10-27 08:48:17 +00:00
|
|
|
DEPENDS_class-native = "zlib-native"
|
2006-11-20 15:26:57 +00:00
|
|
|
|
2015-11-11 15:15:09 +00:00
|
|
|
# Blacklist a bogus tag in upstream check
|
|
|
|
UPSTREAM_CHECK_GITTAGREGEX = "FILE(?P<pver>(?!6_23).+)"
|
|
|
|
|
2015-07-14 05:08:01 +00:00
|
|
|
SRC_URI = "git://github.com/file/file.git \
|
|
|
|
file://debian-742262.patch \
|
|
|
|
file://0001-Add-P-prompt-into-Usage-info.patch \
|
|
|
|
"
|
|
|
|
|
2017-03-21 22:16:33 +00:00
|
|
|
SRCREV = "79814950aafb81ecd6a910c2a8a3b8ec12f3e4a6"
|
2015-07-14 05:08:01 +00:00
|
|
|
S = "${WORKDIR}/git"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools
|
2006-11-20 15:26:57 +00:00
|
|
|
|
2015-10-16 22:02:26 +00:00
|
|
|
EXTRA_OEMAKE_append_class-target = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"
|
|
|
|
EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"
|
|
|
|
|
2016-09-07 11:20:05 +00:00
|
|
|
CFLAGS_append = " -std=c99"
|
|
|
|
|
2010-08-17 02:58:15 +00:00
|
|
|
FILES_${PN} += "${datadir}/misc/*.mgc"
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
do_install_append_class-native() {
|
2011-02-26 00:18:50 +00:00
|
|
|
create_cmdline_wrapper ${D}/${bindir}/file \
|
|
|
|
--magic-file ${datadir}/misc/magic.mgc
|
|
|
|
}
|
|
|
|
|
2014-10-11 08:59:22 +00:00
|
|
|
do_install_append_class-nativesdk() {
|
|
|
|
create_cmdline_wrapper ${D}/${bindir}/file \
|
|
|
|
--magic-file ${datadir}/misc/magic.mgc
|
|
|
|
}
|
|
|
|
|
2013-10-17 13:59:44 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2015-10-16 22:02:26 +00:00
|
|
|
PROVIDES_append_class-native = " file-replacement-native"
|
|
|
|
# Don't use NATIVE_PACKAGE_PATH_SUFFIX as that hides libmagic from anyone who
|
|
|
|
# depends on file-replacement-native.
|
|
|
|
bindir_append_class-native = "/file-native"
|