2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 Jim Klimov. All rights reserved.
15 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_VERSION
= 4.89
19 COMPONENT_PROJECT_URL
= http
://freecode.com
/projects
/util-linux
20 COMPONENT_SUMMARY
= LSOF
- lister of opened files
21 COMPONENT_SRC
= $(COMPONENT_NAME
)_
$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 # Theoretical upstream is ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
24 # but it is not available at the time of this writing
25 COMPONENT_ARCHIVE_URL
= https
://fossies.org
/linux
/misc
/$(COMPONENT_ARCHIVE
)
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:5d08da7ebe049c9d9a6472d6afb81aa5af54c4733a3f8822cbc22b57867633c9
29 include $(WS_MAKE_RULES
)/prep.mk
30 include $(WS_MAKE_RULES
)/justmake.mk
31 include $(WS_MAKE_RULES
)/ips.mk
33 # Snatched from espeak component
35 BINDIR
.64=/usr
/bin
/$(MACH64
)
38 LIBDIR
.64=/usr
/lib
/$(MACH64
)
40 COMPONENT_COMMON_ARGS
+= -C
$(BUILD_DIR_
$(BITS
))
41 COMPONENT_COMMON_ARGS
+= BINDIR
=$(BINDIR.
$(BITS
))
42 COMPONENT_COMMON_ARGS
+= LIBDIR
=$(LIBDIR.
$(BITS
))
44 COMPONENT_COMMON_ENV
+= CC
=$(CC
)
45 COMPONENT_COMMON_ENV
+= CXX
=$(CXX
)
46 COMPONENT_COMMON_ENV
+= CXXFLAGS
="$(CXXFLAGS)"
47 COMPONENT_COMMON_ENV
+= LDFLAGS
="$(LDFLAGS)"
49 COMPONENT_BUILD_ARGS
+= $(COMPONENT_COMMON_ARGS
)
50 COMPONENT_BUILD_ENV
+= $(COMPONENT_COMMON_ENV
)
51 COMPONENT_INSTALL_ARGS
+= $(COMPONENT_COMMON_ARGS
)
52 COMPONENT_INSTALL_ENV
+= $(COMPONENT_COMMON_ENV
)
54 COMPONENT_PREP_ACTION
= \
55 ( cd
$(SOURCE_DIR
) && tar xf
- < $(COMPONENT_SRC
)_src.
tar )
57 COMPONENT_PRE_BUILD_ACTION
= \
58 ( cd
$(@D
) && cp
-prf
"$(SOURCE_DIR)/$(COMPONENT_SRC)_src"/.
/ .
/ && \
59 yes
'' | SOLARIS_KERNBITS
=$(BITS
) .
/Configure solaris
)
61 build
: $(BUILD_32_and_64
)
63 # The p5m manifest directly pulls from source dirs (the "make install" action
64 # for Solaris in LSOF sources only prints hints what/how should be set up)
65 install: $(INSTALL_32_and_64
)
69 include $(WS_MAKE_RULES
)/depend.mk
71 REQUIRED_PACKAGES
+= SUNWcs
72 REQUIRED_PACKAGES
+= system
/library