2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Jim Klimov
14 # Copyright 2020 Michal Nowak
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 # The primary component delivered here is libmagic.
21 # There is already the "file" utility with true Unix legacy in our OS,
22 # still, for the sake of completeness and to match GNU/Linux userland
23 # we also deliver "gfile" built from darwinsys sources, as a bonus.
25 COMPONENT_VERSION
= 5.46
26 COMPONENT_SUMMARY
= libmagic for recognizing the type of data contained in a computer file using magic numbers
27 COMPONENT_PROJECT_URL
= https
://www.darwinsys.com
/file
/
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
30 COMPONENT_ARCHIVE_HASH
= sha256
:c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088
31 COMPONENT_ARCHIVE_URL
= ftp
://ftp.astron.com
/pub
/file
/$(COMPONENT_ARCHIVE
)
32 COMPONENT_FMRI
= library
/magic
33 COMPONENT_CLASSIFICATION
= System
/Libraries
34 COMPONENT_LICENSE
= BSD
35 COMPONENT_LICENSE_FILE
= COPYING
37 include $(WS_MAKE_RULES
)/common.mk
39 COMPONENT_TEST_TRANSFORMS
+= \
41 '-e "/Running test/p"' \
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES
+= SUNWcs
46 REQUIRED_PACKAGES
+= compress
/bzip2
47 REQUIRED_PACKAGES
+= compress
/xz
48 REQUIRED_PACKAGES
+= compress
/zstd
49 REQUIRED_PACKAGES
+= library
/lzlib
50 REQUIRED_PACKAGES
+= library
/zlib
51 REQUIRED_PACKAGES
+= system
/library