diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb b/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb index 71d76d1c6a4..25c237795bb 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-5.9.eb @@ -26,21 +26,34 @@ checksums = [ # need to use -P preprocessor option for recent GCC versions (cfr. https://gcc.gnu.org/gcc-5/porting_to.html) preconfigopts = "export CPPFLAGS='-P' && " +_config = { + # options to build shared librares and separate libtinfo + 'default': "--with-shared --with-termlib ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread ", +} + configopts = [ - # default build - '--with-shared --enable-overwrite', - # the UTF-8 enabled version (ncursesw) - '--with-shared --enable-overwrite --enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/' + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses5-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.0.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.0.eb index f17cb5fb125..f8722d462cb 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.0.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.0.eb @@ -18,32 +18,38 @@ checksums = [ 'f82003be6ce6b87c3dc8a91d97785aab1a76a9e8544c3a3c02283c01dd41aede', # ncurses-6.0_gcc-5.patch ] -local_common_configopts = "--with-shared --enable-overwrite --without-ada " +_config = { + # options to build shared librares, separate libtinfo and without Ada95 + 'default': "--with-shared --with-termlib --without-ada ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} + configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] # need to take care of $CFLAGS ourselves with dummy toolchain # we need to add -fPIC, but should also include -O* option to avoid compiling with -O0 (default for GCC) buildopts = 'CFLAGS="-O2 -fPIC"' -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" -] - -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.1.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.1.eb index 9e75f70cd1d..5a4fe9c0c72 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.1.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.1.eb @@ -14,32 +14,38 @@ source_urls = [GNU_SOURCE] sources = [SOURCE_TAR_GZ] checksums = ['aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17'] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} + configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] # need to take care of $CFLAGS ourselves with dummy toolchain # we need to add -fPIC, but should also include -O* option to avoid compiling with -O0 (default for GCC) buildopts = 'CFLAGS="-O2 -fPIC"' -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" -] - -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.2.0.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.2.0.eb index 5044d91b4c5..3f5959071d7 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.2.0.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.2.0.eb @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'] builddependencies = [('binutils', '2.35')] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " -configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", -] +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" +configopts = [ + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.3.0.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.3.0.eb index 07bfbcd9e14..065776c66d1 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.3.0.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-10.3.0.eb @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'] builddependencies = [('binutils', '2.36.1')] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " -configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", -] +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" +configopts = [ + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-11.2.0.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-11.2.0.eb index 61c14fe5a04..309687b03b6 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-11.2.0.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-11.2.0.eb @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'] builddependencies = [('binutils', '2.37')] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " -configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", -] +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" +configopts = [ + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-9.3.0.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-9.3.0.eb index 18dcd5668cf..19a0b094bff 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-9.3.0.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.2-GCCcore-9.3.0.eb @@ -20,28 +20,34 @@ checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'] builddependencies = [('binutils', '2.34')] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " -configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", -] +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" +configopts = [ + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel' diff --git a/easybuild/easyconfigs/n/ncurses/ncurses-6.2.eb b/easybuild/easyconfigs/n/ncurses/ncurses-6.2.eb index 5df1d2c1038..80f4c70b2b9 100644 --- a/easybuild/easyconfigs/n/ncurses/ncurses-6.2.eb +++ b/easybuild/easyconfigs/n/ncurses/ncurses-6.2.eb @@ -14,32 +14,38 @@ source_urls = [GNU_SOURCE] sources = [SOURCE_TAR_GZ] checksums = ['30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d'] -local_common_configopts = "--with-shared --enable-overwrite --without-ada --enable-symlinks " +_config = { + # options to build shared librares, separate libtinfo, without Ada95 and enable symlinks for tic + 'default': "--with-shared --with-termlib --without-ada --enable-symlinks ", + # options to enable UTF-8 + 'utf8': "--enable-ext-colors --enable-widec ", + # options to enable multi-threading + 'mt': "--with-pthread --enable-reentrant ", +} + configopts = [ - # default build - local_common_configopts, - # the UTF-8 enabled version (ncursesw) - local_common_configopts + "--enable-ext-colors --enable-widec --includedir=%(installdir)s/include/ncursesw/", + # build ncurses: default build overwriting curses (-lcurses) + _config['default'] + '--enable-overwrite', + # build ncursesw: the UTF-8 version + _config['default'] + _config['utf8'] + '--includedir=%(installdir)s/include/ncursesw/', + # build ncursest: the multi-threaded version + _config['default'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursest/', + # build ncursestw: the multi-threaded UTF-8 version + _config['default'] + _config['utf8'] + _config['mt'] + '--includedir=%(installdir)s/include/ncursestw/', ] # need to take care of $CFLAGS ourselves with dummy toolchain # we need to add -fPIC, but should also include -O* option to avoid compiling with -O0 (default for GCC) buildopts = 'CFLAGS="-O2 -fPIC"' -# Symlink libtinfo to libncurses (since it can handle the API) so it doesn't get picked up from the OS -postinstallcmds = [ - "(cd %(installdir)s/lib && ln -s libncurses.so libtinfo.so)", - "(cd %(installdir)s/lib && ln -s libncurses.a libtinfo.a)" -] - -local_libs = ["form", "menu", "ncurses", "panel"] +local_libs = ['form', 'menu', 'ncurses', 'panel', 'tinfo'] sanity_check_paths = { 'files': ['bin/%s' % x for x in ["captoinfo", "clear", "infocmp", "infotocap", "ncurses%(version_major)s-config", "reset", "tabs", "tic", "toe", "tput", "tset"]] + - ['lib/lib%s%s.a' % (x, y) for x in local_libs for y in ['', '_g', 'w', 'w_g']] + - ['lib/lib%s%s.%s' % (x, y, SHLIB_EXT) for x in local_libs for y in ['', 'w']] + - ['lib/libncurses++%s.a' % x for x in ['', 'w']], - 'dirs': ['include', 'include/ncursesw'], + ['lib/lib%s%s%s.a' % (x, y, z) for x in local_libs for y in ['', 'w', 't', 'tw'] for z in ['', '_g']] + + ['lib/lib%s%s.so' % (x, y) for x in local_libs for y in ['', 'w', 't', 'tw']] + + ['lib/libncurses++%s.a' % x for x in ['', 'w', 't', 'tw']], + 'dirs': ['include', 'include/ncursesw', 'include/ncursest', 'include/ncursestw'], } moduleclass = 'devel'