|
root / base / ncurses
ncurses Plain Text 119 lines 2.8 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/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 <chris.tusa@leafscale.com>"
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