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

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

Revision 19643, 6.8 KB (checked in by dmichelsen, 6 months ago)

WHOLE TREE: Remove default CATEGORIES

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