| 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 | |
|---|
| 8 | NAME = ncurses |
|---|
| 9 | VERSION = 5.9 |
|---|
| 10 | GARTYPE = v2 |
|---|
| 11 | |
|---|
| 12 | define 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. |
|---|
| 20 | endef |
|---|
| 21 | |
|---|
| 22 | MASTER_SITES = $(GNU_MIRROR) |
|---|
| 23 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 24 | |
|---|
| 25 | LICENSE = README |
|---|
| 26 | |
|---|
| 27 | PACKAGES += CSWncurses |
|---|
| 28 | SPKG_DESC_CSWncurses = A free software emulation of curses |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWncurses += CSWterminfo |
|---|
| 30 | CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWterminfo |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWncurses += CSWlibncursesw5 |
|---|
| 32 | # These are legacy dependencies for packages still depending on CSWncurses |
|---|
| 33 | # instead of the specific libraries |
|---|
| 34 | RUNTIME_DEP_PKGS_CSWncurses += CSWlibncurses5 |
|---|
| 35 | CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibncurses5 |
|---|
| 36 | RUNTIME_DEP_PKGS_CSWncurses += CSWlibpanel5 |
|---|
| 37 | CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibpanel5 |
|---|
| 38 | RUNTIME_DEP_PKGS_CSWncurses += CSWlibpanelw5 |
|---|
| 39 | CHECKPKG_OVERRIDES_CSWncurses += surplus-dependency|CSWlibpanelw5 |
|---|
| 40 | |
|---|
| 41 | PACKAGES += CSWlibform5 |
|---|
| 42 | PKGFILES_CSWlibform5 += $(call pkgfiles_lib,libform.so.5) |
|---|
| 43 | SPKG_DESC_CSWlibform5 += A free software emulation of curses, libform.so.5 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWlibform5 += CSWlibncurses5 |
|---|
| 45 | |
|---|
| 46 | PACKAGES += CSWlibformw5 |
|---|
| 47 | PKGFILES_CSWlibformw5 += $(call pkgfiles_lib,libformw.so.5) |
|---|
| 48 | SPKG_DESC_CSWlibformw5 += A free software emulation of curses, libformw.so.5 |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWlibformw5 += CSWlibncursesw5 |
|---|
| 50 | |
|---|
| 51 | PACKAGES += CSWlibmenu5 |
|---|
| 52 | PKGFILES_CSWlibmenu5 += $(call pkgfiles_lib,libmenu.so.5) |
|---|
| 53 | SPKG_DESC_CSWlibmenu5 += A free software emulation of curses, libmenu.so.5 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWlibmenu5 += CSWlibncurses5 |
|---|
| 55 | |
|---|
| 56 | PACKAGES += CSWlibmenuw5 |
|---|
| 57 | PKGFILES_CSWlibmenuw5 += $(call pkgfiles_lib,libmenuw.so.5) |
|---|
| 58 | SPKG_DESC_CSWlibmenuw5 += A free software emulation of curses, libmenuw.so.5 |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWlibmenuw5 += CSWlibncursesw5 |
|---|
| 60 | |
|---|
| 61 | PACKAGES += CSWlibncurses5 |
|---|
| 62 | PKGFILES_CSWlibncurses5 += $(call pkgfiles_lib,libncurses.so.5) |
|---|
| 63 | SPKG_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) |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWlibncurses5 += CSWterminfo |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWlibncurses5 += surplus-dependency|CSWterminfo |
|---|
| 67 | |
|---|
| 68 | PACKAGES += CSWlibncursesw5 |
|---|
| 69 | PKGFILES_CSWlibncursesw5 += $(call pkgfiles_lib,libncursesw.so.5) |
|---|
| 70 | SPKG_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) |
|---|
| 72 | RUNTIME_DEP_PKGS_CSWlibncursesw5 += CSWterminfo |
|---|
| 73 | CHECKPKG_OVERRIDES_CSWlibncursesw5 += surplus-dependency|CSWterminfo |
|---|
| 74 | |
|---|
| 75 | PACKAGES += CSWlibpanel5 |
|---|
| 76 | PKGFILES_CSWlibpanel5 += $(call pkgfiles_lib,libpanel.so.5) |
|---|
| 77 | SPKG_DESC_CSWlibpanel5 += A free software emulation of curses, libpanel.so.5 |
|---|
| 78 | RUNTIME_DEP_PKGS_CSWlibpanel5 += CSWlibncurses5 |
|---|
| 79 | |
|---|
| 80 | PACKAGES += CSWlibpanelw5 |
|---|
| 81 | PKGFILES_CSWlibpanelw5 += $(call pkgfiles_lib,libpanelw.so.5) |
|---|
| 82 | SPKG_DESC_CSWlibpanelw5 += A free software emulation of curses, libpanelw.so.5 |
|---|
| 83 | RUNTIME_DEP_PKGS_CSWlibpanelw5 += CSWlibncursesw5 |
|---|
| 84 | |
|---|
| 85 | PACKAGES += CSWlibncurses-dev |
|---|
| 86 | SPKG_DESC_CSWlibncurses-dev = Development files for libncurses.so.5 and assorted libraries |
|---|
| 87 | PKGFILES_CSWlibncurses-dev = $(PKGFILES_DEVEL) |
|---|
| 88 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibncursesw5 |
|---|
| 89 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibmenuw5 |
|---|
| 90 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibncurses5 |
|---|
| 91 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibpanel5 |
|---|
| 92 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibformw5 |
|---|
| 93 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibform5 |
|---|
| 94 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibpanelw5 |
|---|
| 95 | RUNTIME_DEP_PKGS_CSWlibncurses-dev += CSWlibmenu5 |
|---|
| 96 | |
|---|
| 97 | PACKAGES += CSWterminfo |
|---|
| 98 | SPKG_DESC_CSWterminfo = Database of terminal information, part of ncurses |
|---|
| 99 | ARCHALL_CSWterminfo = 1 |
|---|
| 100 | PKGFILES_CSWterminfo = $(datadir)/terminfo.* |
|---|
| 101 | |
|---|
| 102 | VENDOR_URL = http://www.gnu.org/software/ncurses/ncurses.html |
|---|
| 103 | |
|---|
| 104 | BUILD64 = 1 |
|---|
| 105 | |
|---|
| 106 | EXTRA_MODULATORS = WIDEC |
|---|
| 107 | MODULATIONS_WIDEC = disable enable |
|---|
| 108 | |
|---|
| 109 | EXTRA_CONFIGURE_WIDEC-disable = --disable-widec |
|---|
| 110 | EXTRA_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 |
|---|
| 118 | EXTRA_CFLAGS-amd64 = -Kpic |
|---|
| 119 | EXTRA_CFLAGS = $(EXTRA_CFLAGS-$(ISA)) |
|---|
| 120 | EXTRA_LDFLAGS = $(EXTRA_CFLAGS-$(ISA)) |
|---|
| 121 | |
|---|
| 122 | CONFIGURE_ARGS = --prefix=$(prefix) |
|---|
| 123 | CONFIGURE_ARGS += --bindir=$(bindir) |
|---|
| 124 | CONFIGURE_ARGS += --libdir=$(libdir) |
|---|
| 125 | CONFIGURE_ARGS += --mandir=$(mandir) |
|---|
| 126 | CONFIGURE_ARGS += --without-libtool |
|---|
| 127 | CONFIGURE_ARGS += --with-shared |
|---|
| 128 | CONFIGURE_ARGS += --disable-overwrite |
|---|
| 129 | CONFIGURE_ARGS += --without-ada |
|---|
| 130 | CONFIGURE_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> |
|---|
| 137 | CONFIGURE_ARGS += --without-xterm-new |
|---|
| 138 | |
|---|
| 139 | TEST_TARGET = test |
|---|
| 140 | |
|---|
| 141 | MERGE_SCRIPTS_isa-default-widec-disable = copy-only copy-config-only |
|---|
| 142 | MERGE_DIRS_isa-default-widec-disable = $(libdir) $(includedir) |
|---|
| 143 | MERGE_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 |
|---|
| 153 | CHECKPKG_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 |
|---|
| 156 | CHECKPKG_OVERRIDES_CSWlibncurses-dev += file-with-bad-content|/usr/share|root/opt/csw/include/ncursesw/tic.h |
|---|
| 157 | CHECKPKG_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. |
|---|
| 160 | CHECKPKG_OVERRIDES_CSWterminfo += file-with-bad-content|/usr/share|root/opt/csw/share/terminfo/p/pcmw |
|---|
| 161 | |
|---|
| 162 | include gar/category.mk |
|---|
| 163 | |
|---|
| 164 | LDFLAGS := $(filter-out -L%,$(LDFLAGS)) |
|---|