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 (c) 2014 Rouven Wachhaus
13 # Copyright (c) 2020 Michal Nowak
14 # Copyright (c) 2019 Solene Rapenne
15 # Copyright (c) 2021, 2022 Nona Hansel
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 8.2
22 COMPONENT_SUMMARY
= GNU implementation of nano
, a text editor emulating pico
23 COMPONENT_PROJECT_URL
= https
://www.nano-editor.org
/
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
26 COMPONENT_ARCHIVE_HASH
= sha256
:d5ad07dd862facae03051c54c6535e54c7ed7407318783fcad1ad2d7076fffeb
27 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/pub
/gnu
/nano
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= editor
/nano
29 COMPONENT_CLASSIFICATION
=System
/Text Tools
30 COMPONENT_LICENSE
= GPLv3
32 TEST_TARGET
= $(NO_TESTS
)
33 include $(WS_MAKE_RULES
)/common.mk
35 PATH
= $(GNUBIN64
):$(PATH.gnu
)
37 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
38 CONFIGURE_OPTIONS
+= --enable-color
39 CONFIGURE_OPTIONS
+= --enable-multibuffer
40 CONFIGURE_OPTIONS
+= --enable-utf8
41 # magic does not identify files given their content
42 CONFIGURE_OPTIONS
+= --disable-libmagic
43 CONFIGURE_OPTIONS
+= get_wch
=getwch
45 CPPFLAGS
+= -I
$(USRINCDIR
)/ncurses
46 CFLAGS
+= -I
$(USRINCDIR
)/ncurses
48 COMPONENT_POST_INSTALL_ACTION
= \
49 $(INSTALL
) -D
-m
0644 $(BUILD_DIR
)/$(MACH64
)/doc
/sample.nanorc
$(PROTO_DIR
)$(ETCDIR
)/nanorc
51 # Auto-generated dependencies
52 REQUIRED_PACKAGES
+= library
/ncurses
53 REQUIRED_PACKAGES
+= system
/library