4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2023, Franklin Ronald <franklin@wiselabs.com.br>
27 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_NAME
= multitail
30 COMPONENT_VERSION
= 7.1.5
31 COMPONENT_SUMMARY
= Tail multiple files on console with ncurses
32 COMPONENT_PROJECT_URL
= https
://www.vanheusden.com
/multitail
/
33 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
35 COMPONENT_ARCHIVE_URL
= https
://github.com
/folkertvanheusden
/multitail
/archive
/refs
/tags/$(COMPONENT_VERSION
).
tar.gz
36 COMPONENT_ARCHIVE_HASH
= sha256
:b0c92bf5f504b39591bf3e2e30a1902925c11556e14b89a07cfa7533f9bd171b
37 COMPONENT_FMRI
= file
/multitail
38 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
39 COMPONENT_LICENSE
= Apache
2.0
40 COMPONENT_LICENSE_FILE
= LICENSE
42 TEST_TARGET
= $(NO_TESTS
)
43 include $(WS_MAKE_RULES
)/common.mk
45 CMAKE_OPTIONS
+= -DUTF8_SUPPORT
=Yes
-DCURSES_INCLUDE_PATH
=/usr
/include
47 COMPONENT_POST_INSTALL_ACTION
= \
48 /usr
/bin
/elfedit
-e
'dyn:value -s RUNPATH "/usr/gnu/lib/$(MACH64)"' "$(PROTO_DIR)/usr/bin/multitail"; \
49 /usr
/bin
/elfedit
-e
'dyn:value -s RPATH "/usr/gnu/lib/$(MACH64)"' "$(PROTO_DIR)/usr/bin/multitail"; \
50 rm -Rf
"$(PROTO_DIR)/usr/etc/multitail/conversion-scripts"; \
51 mv
"$(PROTO_DIR)/usr/share/doc/$(COMPONENT_NAME)-VERSION=$(COMPONENT_VERSION)" "$(PROTO_DIR)/usr/share/doc/multitail"; \
52 rm -Rf
"$(PROTO_DIR)/etc"; \
53 mkdir
-p
"$(PROTO_DIR)/etc"; \
54 mv
"$(PROTO_DIR)/usr/etc/multitail.conf.new" "$(PROTO_DIR)/etc/multitail.conf.sample";
56 # The native Makefile invites patching to set the following, but doing it here
57 # instead will keep it working if the build system changes.
58 COMPONENT_BUILD_ARGS
+= CC
="$(CC)"
59 COMPONENT_BUILD_ARGS
+= CFLAGS
="$(CC_BITS) $(CFLAGS)"
60 COMPONENT_BUILD_ARGS
+= LDFLAGS
="$(LDFLAGS)"
61 COMPONENT_INSTALL_ARGS
+= BINDIR
=$(PROTOUSRBINDIR
)
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES
+= library
/ncurses
65 REQUIRED_PACKAGES
+= system
/library
66 REQUIRED_PACKAGES
+= system
/library
/math