Ticket #12605: Portfile-new

File Portfile-new, 2.0 KB (added by master@…, 17 years ago)

Proposed new port to replace ncurse and ncursesw

Line 
1
2PortSystem 1.0
3
4name            ncurses
5version         5.6
6categories      devel
7platforms       darwin freebsd
8maintainers     imajes@macports.org
9description     emulation of curses in System V Release 4.0
10long_description \
11    The Ncurses (new curses) library is a free software emulation of    \
12    curses in System V Release 4.0, and more. It uses Terminfo format,  \
13    supports pads and color and multiple highlights and forms           \
14    characters and function-key mapping, and has all the other          \
15    SYSV-curses enhancements over BSD Curses.
16
17homepage        http://www.gnu.org/software/ncurses/ncurses.html
18master_sites    gnu
19checksums       md5 b6593abe1089d6aab1551c105c9300e3 \
20                sha1 4d54d8ad0b90fffa2780a0a45edb6fcb027ef18d \
21                rmd160 1a878819c43e6426500fd74ccedf0a032ef399d8
22
23patchfiles      patch-configure
24
25configure.args  --with-shared \
26                --disable-rpath \
27                --without-debug  \
28                --without-ada \
29                --enable-safe-sprintf \
30                --enable-sigwinch \
31                --enable-widec \
32                --enable-overwrite \
33                --enable-termcap \
34                --mandir=${prefix}/share/man
35
36post-destroot {
37    delete ${destroot}${prefix}/lib/terminfo
38    foreach f {form menu ncurses panel} {
39        ln -s lib${f}w.5.dylib  ${destroot}${prefix}/lib/lib${f}.dylib
40        ln -s lib${f}w.a        ${destroot}${prefix}/lib/lib${f}.a
41    }
42    ln -s libncurses++w.a       ${destroot}${prefix}/lib/libncurses++.a
43    ln -s libncursesw.5.dylib   ${destroot}${prefix}/lib/libcurses.dylib
44    ln -s libncursesw.5.dylib   ${destroot}${prefix}/lib/libtermcap.dylib
45}
46
47platform darwin 8 {
48    configure.env-append    CC=/usr/bin/gcc-4.0 \
49                            CPP=/usr/bin/cpp-4.0 \
50                            CXX=/usr/bin/g++-4.0
51}
52
53platform freebsd {
54    destroot.env-append     LD_LIBRARY_PATH=${prefix}/lib
55}
56
57livecheck.check regex
58livecheck.url   http://ftp.gnu.org/gnu/${name}/?M=D
59livecheck.regex ${name}-(\\d+\\.\\d+)
60