# # 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 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.46 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:c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088 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