1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/ncurses/trunk/Makefile

Revision 16916, 6.9 KB (checked in by dmichelsen, 4 months ago)

WHOLE TREE: Explicitly set GARTYPE to current default 'v2'

  • Property svn:keywords set to Id
Line 
1# $Id$
2#
3# Things to keep in mind:
4# - Link to libtinfo5 in downstream packages if possible to avoid *w/*non-w bindings
5#   as described in this posting "Craig Small: ncurses library split - Planet Debian":
6#     https://plus.google.com/105567297772267099132/posts/Bv5GSTQvfzC
7
8NAME = ncurses
9VERSION = 5.9
10CATEGORIES = lib
11GARTYPE = v2
12
13define BLURB
14 The ncurses (new curses) library is a free software emulation of curses
15  in System V Release 4.0 and more. It uses terminfo format, supports pads
16  and color and multiple highlights and forms charcters and function-key
17  mapping, and has all the other SYSV-curses enhancements over BSD curses.
18  It should port easily to any ANSI/POSIX-conforming UNIX-like system.
19  On systems supporting libiconv, the library can be built to support
20  wide- and multibyte-character applications, e.g., UTF-8.
21endef
22
23MASTER_SITES = $(GNU_MIRROR)
24DISTFILES  = $(NAME)-$(VERSION).tar.gz
25
26LICENSE = README
27
28PACKAGES += CSWncurses
29SPKG_DESC_CSWncurses = A free software emulation of curses
30RUNTIME_DEP_PKGS_CSWncurses += CSWterminfo
31CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWterminfo
32RUNTIME_DEP_PKGS_CSWncurses += CSWlibncursesw5
33# These are legacy dependencies for packages still depending on CSWncurses
34# instead of the specific libraries
35RUNTIME_DEP_PKGS_CSWncurses += CSWlibncurses5
36CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibncurses5
37RUNTIME_DEP_PKGS_CSWncurses += CSWlibpanel5
38CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibpanel5
39RUNTIME_DEP_PKGS_CSWncurses += CSWlibpanelw5
40CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibpanelw5
41
42PACKAGES += CSWlibform5
43PKGFILES_CSWlibform5 += $(call pkgfiles_lib,libform.so.5)
44SPKG_DESC_CSWlibform5 += A free software emulation of curses, libform.so.5
45RUNTIME_DEP_PKGS_CSWlibform5 += CSWlibncurses5
46
47PACKAGES += CSWlibformw5
48PKGFILES_CSWlibformw5 += $(call pkgfiles_lib,libformw.so.5)
49SPKG_DESC_CSWlibformw5 += A free software emulation of curses, libformw.so.5
50RUNTIME_DEP_PKGS_CSWlibformw5 += CSWlibncursesw5
51
52PACKAGES += CSWlibmenu5
53PKGFILES_CSWlibmenu5 += $(call pkgfiles_lib,libmenu.so.5)
54SPKG_DESC_CSWlibmenu5 += A free software emulation of curses, libmenu.so.5
55RUNTIME_DEP_PKGS_CSWlibmenu5 += CSWlibncurses5
56
57PACKAGES += CSWlibmenuw5
58PKGFILES_CSWlibmenuw5 += $(call pkgfiles_lib,libmenuw.so.5)
59SPKG_DESC_CSWlibmenuw5 += A free software emulation of curses, libmenuw.so.5
60RUNTIME_DEP_PKGS_CSWlibmenuw5 += CSWlibncursesw5
61
62PACKAGES += CSWlibncurses5
63PKGFILES_CSWlibncurses5 += $(call pkgfiles_lib,libncurses.so.5)
64SPKG_DESC_CSWlibncurses5 += A free software emulation of curses, libncurses.so.5
65# If we access via libncurses we also need the terminal definitions (undetected by checkpkg)
66RUNTIME_DEP_PKGS_CSWlibncurses5 += CSWterminfo
67CHECKPKG_OVERRIDES_CSWlibncurses5 += surplus-dependency|CSWterminfo
68
69PACKAGES += CSWlibncursesw5
70PKGFILES_CSWlibncursesw5 += $(call pkgfiles_lib,libncursesw.so.5)
71SPKG_DESC_CSWlibncursesw5 += A free software emulation of curses, libncursesw.so.5
72# If we access via libncursesw we also need the terminal definitions (undetected by checkpkg)
73RUNTIME_DEP_PKGS_CSWlibncursesw5 += CSWterminfo
74CHECKPKG_OVERRIDES_CSWlibncursesw5 += surplus-dependency|CSWterminfo
75
76PACKAGES += CSWlibpanel5
77PKGFILES_CSWlibpanel5 += $(call pkgfiles_lib,libpanel.so.5)
78SPKG_DESC_CSWlibpanel5 += A free software emulation of curses, libpanel.so.5
79RUNTIME_DEP_PKGS_CSWlibpanel5 += CSWlibncurses5
80
81PACKAGES += CSWlibpanelw5
82PKGFILES_CSWlibpanelw5 += $(call pkgfiles_lib,libpanelw.so.5)
83SPKG_DESC_CSWlibpanelw5 += A free software emulation of curses, libpanelw.so.5
84RUNTIME_DEP_PKGS_CSWlibpanelw5 += CSWlibncursesw5
85
86PACKAGES += CSWlibncurses-dev
87SPKG_DESC_CSWlibncurses-dev = Development files for libncurses.so.5 and assorted libraries
88PKGFILES_CSWlibncurses-dev = $(PKGFILES_DEVEL)
89RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibncursesw5
90RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibmenuw5
91RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibncurses5
92RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibpanel5
93RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibformw5
94RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibform5
95RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibpanelw5
96RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibmenu5
97
98PACKAGES += CSWterminfo
99SPKG_DESC_CSWterminfo = Database of terminal information, part of ncurses
100ARCHALL_CSWterminfo = 1
101PKGFILES_CSWterminfo = $(datadir)/terminfo.*
102
103VENDOR_URL = http://www.gnu.org/software/ncurses/ncurses.html
104
105BUILD64 = 1
106
107EXTRA_MODULATORS = WIDEC
108MODULATIONS_WIDEC = disable enable
109
110EXTRA_CONFIGURE_WIDEC-disable = --disable-widec
111EXTRA_CONFIGURE_WIDEC-enable = --enable-widec
112
113# Switch to larger model or these kinds of errors occur:
114#   ld.so.1: tic: fatal: relocation error: R_AMD64_PC32: file /home/dam/mgar/pkg/ncurses/trunk/work/solaris9-i386/build-isa-amd64-widec-disable/ncurses-5.9/lib/libncurses.so.5: symbol putc: value 0x280010b35b0 does not fit
115# (only valid on 64 bit x86)
116# See for details
117#   http://developers.sun.com/solaris/articles/about_amd64_abi.html
118#EXTRA_CFLAGS-amd64 = -xmodel=medium
119EXTRA_CFLAGS-amd64 = -Kpic
120EXTRA_CFLAGS = $(EXTRA_CFLAGS-$(ISA))
121EXTRA_LDFLAGS = $(EXTRA_CFLAGS-$(ISA))
122
123CONFIGURE_ARGS = --prefix=$(prefix)
124CONFIGURE_ARGS += --bindir=$(bindir)
125CONFIGURE_ARGS += --libdir=$(libdir)
126CONFIGURE_ARGS += --mandir=$(mandir)
127CONFIGURE_ARGS += --without-libtool
128CONFIGURE_ARGS += --with-shared
129CONFIGURE_ARGS += --disable-overwrite
130CONFIGURE_ARGS += --without-ada
131CONFIGURE_ARGS += $(EXTRA_CONFIGURE_WIDEC-$(WIDEC))
132
133# Don't use capabilities HPA and VPA as Solaris xterm doesn't understand it.
134# See for details
135#   <http://opencsw.org/bugtrack/view.php?id=2961>
136#   <http://opencsw.org/bugtrack/view.php?id=2942>
137#   <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6569261>
138CONFIGURE_ARGS += --without-xterm-new
139
140TEST_TARGET = test
141
142MERGE_SCRIPTS_isa-default-widec-disable = copy-only copy-config-only
143   MERGE_DIRS_isa-default-widec-disable = $(libdir) $(includedir)
144MERGE_SCRIPTS_isa-extra-widec-disable = copy-relocated-only copy-config-only
145   MERGE_DIRS_isa-extra-widec-disable = $(libdir)
146
147 MERGE_SCRIPTS_isa-default-widec-enable = copy-all
148 MERGE_SCRIPTS_isa-extra-widec-enable = copy-relocated-only copy-config-only
149    MERGE_DIRS_isa-extra-widec-enable = $(libdir)
150
151# This is termcap location which defaults to
152#   /etc/termcap, /usr/share/misc/termcap and $HOME/.termcap
153# which I think is ok
154CHECKPKG_OVERRIDES_CSWlibncurses-dev += file-with-bad-content|/usr/share|root/opt/csw/share/man/man3/ncurses.3x
155
156# I *think* this is a default, but keep an eye on it
157CHECKPKG_OVERRIDES_CSWlibncurses-dev += file-with-bad-content|/usr/share|root/opt/csw/include/ncursesw/tic.h
158CHECKPKG_OVERRIDES_CSWlibncurses-dev += file-with-bad-content|/usr/share|root/opt/csw/include/ncurses/tic.h
159
160# I have no idea what this is. Inspect on problems.
161CHECKPKG_OVERRIDES_CSWterminfo += file-with-bad-content|/usr/share|root/opt/csw/share/terminfo/p/pcmw
162
163include gar/category.mk
164
165LDFLAGS := $(filter-out -L%,$(LDFLAGS))
Note: See TracBrowser for help on using the browser.