Ticket #64197: Portfile

File Portfile, 1.6 KB (added by bK4gYuRo, 17 months ago)

modified portfile

Line 
1PortSystem      1.0
2
3name            nvi
4version         1.81.6
5revision        7
6categories      editors
7license         BSD
8maintainers     nomaintainer
9description     A vi/ex clone
10
11long_description \
12    Nvi is an implementation of the ex/vi text editor originally \
13    distributed as part of the Fourth Berkeley Software Distribution \
14    (4BSD), by the University of California, Berkeley.
15
16homepage        http://www.bostic.com/vi/
17platforms       darwin
18master_sites    ftp://ftp.stack.nl/pub/users/johans/nvi/
19checksums       md5 88d1e23115ee9f2961186b62e55f5704 \
20                rmd160 0db8568bea96392d9a027044177c60317c8ade36 \
21                sha256 3441b8e3247b2b6dd19b5fd38355fe6593b2a92e960ecb3dd00d676f63d06b59
22use_bzip2       yes
23
24#configure.compiler macports-clang-9.0
25
26#use_autoreconf  yes
27#autoreconf.args       --install --verbose --force
28
29configure.dir   ${worksrcpath}/dist
30build.dir       ${configure.dir}
31
32set my_db_version db48
33
34depends_lib     port:ncurses port:${my_db_version}
35
36patchfiles \
37    patch-common__db.h \
38    patch-common__key.h \
39    patch-dist__port.h.in \
40    patch-ex_script.c.diff \
41    patch-includes.diff \
42    patch-common_msg.c \
43    patch-powerof2.diff \
44    patch-configure.diff
45
46configure.args \
47    --program-prefix=n \
48    --without-x \
49    --mandir=${prefix}/share/man \
50    vi_cv_path_preserve=/var/tmp/vi.recover \
51    --disable-dependency-tracking \
52    CC="\$CC -Wno-implicit-function-declaration"
53
54configure.cppflags-append \
55    -I${prefix}/include/${my_db_version}
56configure.ldflags-append \
57    -L${prefix}/lib/${my_db_version}
58
59variant x11 {
60    configure.args-delete --without-x
61    configure.args-append --with-x
62}