ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/ncurses/Makefile
Revision: 12
Committed: Sat Jun 20 21:46:00 2026 UTC (4 weeks, 2 days ago) by operz
File size: 1689 byte(s)
Log Message:
ncurses: add post-install libncurses.so->libncursesw.so symlinks; fix .DEFAULT_GOAL

File Contents

# Content
1 # vim: ft=make ts=4 sw=4 noet
2 .DEFAULT_GOAL := all
3
4 NAME = ncurses
5 VERSION = 6.5
6 GARTYPE = v2
7
8 MASTER_SITES = http://invisible-island.net/archives/ncurses/
9 DISTFILES += $(DISTNAME).tar.gz
10
11 LICENSE = COPYING
12
13 PACKAGES += OZSWncurses
14 SPKG_DESC_OZSWncurses = GNU ncurses terminal library
15 CATALOGNAME_OZSWncurses = ncurses
16
17 # Keep static libs (many packages link ncurses statically)
18 MERGE_EXCLUDE_STATICLIBS =
19
20 EXTRA_CONFIGURE_ARGS += --with-shared
21 EXTRA_CONFIGURE_ARGS += --without-debug
22 EXTRA_CONFIGURE_ARGS += --enable-pc-files
23 EXTRA_CONFIGURE_ARGS += --with-pkg-config-libdir=$(libdir)/pkgconfig
24 # Wide-char support (libncursesw) — needed by modern readline/bash
25 EXTRA_CONFIGURE_ARGS += --enable-widec
26 # Avoid conflicting with Solaris /usr/lib/libcurses
27 EXTRA_CONFIGURE_ARGS += --without-ada
28 # Solaris: use unsigned for ospeed type
29 EXTRA_CONFIGURE_ARGS += --with-ospeed=unsigned
30
31 # Fix libtool ECHO="print -r --" (ksh93 builtin, fails under bash)
32 post-configure:
33 @if [ -f $(WORKSRC)/libtool ]; then \
34 find $(WORKSRC) -name "libtool" -type f -exec \
35 gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \; ; \
36 fi
37 @$(MAKECOOKIE)
38
39 # Create libncurses.so -> libncursesw.so symlinks so packages can link with
40 # -lncurses and get libncursesw transparently. The system libcurses.so.1
41 # is intentionally NOT aliased here — it must remain accessible as-is.
42 post-install:
43 cd $(DESTDIR)$(libdir) && \
44 for suffix in "" ".6" ".6.5"; do \
45 ln -sf libncursesw.so$$suffix libncurses.so$$suffix; \
46 done && \
47 ln -sf libpanelw.so libpanel.so && \
48 ln -sf libpanelw.so.6 libpanel.so.6
49 @$(MAKECOOKIE)
50
51 include gar/category.mk