#!/bin/zsh set -e cd "$SRCDIR" ./configure \ --prefix=$PREFIX \ --build=$BUILD_TRIPLE \ --host=$BUILD_TRIPLE \ --with-shared \ --with-cxx-shared \ --without-debug \ --without-ada \ --enable-widec \ --enable-pc-files \ --with-pkg-config-libdir=$PREFIX/lib/pkgconfig \ --with-termlib \ --with-ticlib gmake -j${JOBS:-1} gmake install DESTDIR="$PKGDIR" # Create non-wide symlinks (libncurses.so -> libncursesw.so etc.) # Many programs look for -lncurses not -lncursesw cd "$PKGDIR$PREFIX/lib" for lib in ncurses form panel menu tinfo tic; do if [ -f "lib${lib}w.so" ]; then ln -sf "lib${lib}w.so" "lib${lib}.so" fi # Also link the .a files if [ -f "lib${lib}w.a" ]; then ln -sf "lib${lib}w.a" "lib${lib}.a" fi done # Symlink ncursesw headers as ncurses headers cd "$PKGDIR$PREFIX/include" if [ -d ncursesw ]; then ln -sf ncursesw ncurses # Also link headers directly for programs that use -I$PREFIX/include for h in ncursesw/*.h; do ln -sf "$h" . done fi --- configure.orig +++ configure @@ -6457,7 +6457,7 @@ (osf*|mls+*) LD_RPATH_OPT="-rpath " ;; - (solaris2*) + (solaris2*|hammerhead*) LD_RPATH_OPT="-R" ;; (*) @@ -7066,7 +7066,7 @@ MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@' test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel ;; - (solaris2*) + (solaris2*|hammerhead*) # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3 if test "$DFT_LWR_MODEL" = "shared" ; then @@ -26948,7 +26948,7 @@ (sco3.2v5*) CXXLDFLAGS="-u main" ;; - (solaris2*) + (solaris2*|hammerhead*) if test "$GXX" != yes ; then CXX_AR='$(CXX)' CXX_ARFLAGS='-xar -o' @@ -28833,7 +28833,7 @@ LDFLAGS_STATIC=-noso LDFLAGS_SHARED=-so_archive ;; - (solaris2*) + (solaris2*|hammerhead*) LDFLAGS_STATIC=-Bstatic LDFLAGS_SHARED=-Bdynamic ;; @@ -29284,7 +29284,7 @@ # workaround for g++ versus Solaris (20131116) case "$cf_cv_system_name" in -(solaris2*) +(solaris2*|hammerhead*) case "x$CPPFLAGS" in (*-D_XOPEN_SOURCE_EXTENDED*) test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6 # ncurses - Terminal handling library # https://invisible-island.net/ncurses/ [package] name = "ncurses" version = "6.5" release = 1 description = "Terminal handling library with terminfo support" url = "https://invisible-island.net/ncurses/" license = "MIT" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = [] build = [] [[source]] file = "ncurses-6.5.tar.gz" urls = ["https://invisible-island.net/archives/ncurses/ncurses-6.5.tar.gz"] checksum = "136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6" [patches] files = ["hammerhead-solaris-compat.patch"] strip = 0 [build] parallel = true