#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL"), version 1.0.
|
# You may only use this file in accordance with the terms of version
|
# 1.0 of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright 2016 Jim Klimov
|
# Copyright 2020 Michal Nowak
|
#
|
|
BUILD_BITS= 32_and_64
|
USE_COMMON_TEST_MASTER= no
|
include ../../../make-rules/shared-macros.mk
|
|
# The primary component delivered here is libmagic.
|
# There is already the "file" utility with true Unix legacy in our OS,
|
# still, for the sake of completeness and to match GNU/Linux userland
|
# we also deliver "gfile" built from darwinsys sources, as a bonus.
|
COMPONENT_NAME= file
|
COMPONENT_VERSION= 5.45
|
COMPONENT_SUMMARY= libmagic for recognizing the type of data contained in a computer file using magic numbers
|
COMPONENT_PROJECT_URL= https://www.darwinsys.com/file/
|
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
|
COMPONENT_ARCHIVE_HASH= sha256:fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82
|
COMPONENT_ARCHIVE_URL= ftp://ftp.astron.com/pub/file/$(COMPONENT_ARCHIVE)
|
COMPONENT_FMRI= library/magic
|
COMPONENT_CLASSIFICATION= System/Libraries
|
COMPONENT_LICENSE= BSD
|
COMPONENT_LICENSE_FILE= COPYING
|
|
include $(WS_MAKE_RULES)/common.mk
|
|
COMPONENT_TEST_TRANSFORMS += \
|
'-n' \
|
'-e "/Running test/p"' \
|
'-e "/\.testfile/p"'
|
|
# Auto-generated dependencies
|
REQUIRED_PACKAGES += SUNWcs
|
REQUIRED_PACKAGES += compress/bzip2
|
REQUIRED_PACKAGES += compress/xz
|
REQUIRED_PACKAGES += compress/zstd
|
REQUIRED_PACKAGES += library/lzlib
|
REQUIRED_PACKAGES += library/zlib
|
REQUIRED_PACKAGES += system/library
|