diff --git a/textproc/mandoc/Portfile b/textproc/mandoc/Portfile
index 7db5044c83..a146824060 100644
a
|
b
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | |
5 | 5 | name mandoc |
6 | | version 1.13.3 |
| 6 | version 1.14.1 |
| 7 | description UNIX manpage compiler |
| 8 | homepage http://mdocml.bsd.lv/ |
7 | 9 | categories textproc |
8 | 10 | license ISC |
9 | 11 | maintainers eitanadler.com:lists stare.cz:hans openmaintainer |
10 | | description The mandoc UNIX manpage compiler toolset |
11 | | homepage http://mdocml.bsd.lv/ |
12 | | platforms darwin freebsd |
| 12 | platforms openbsd freebsd netbsd darwin |
13 | 13 | |
14 | 14 | long_description mandoc is a suite of tools compiling mdoc, \ |
15 | 15 | the roff macro language of choice for \ |
… |
… |
long_description mandoc is a suite of tools compiling mdoc, \ |
18 | 18 | |
19 | 19 | master_sites http://mdocml.bsd.lv/snapshots/ |
20 | 20 | |
| 21 | livecheck.name mdocml |
21 | 22 | distname mdocml-${version} |
22 | | checksums rmd160 47d1096708b45b15d8f198404fd6608d164bb66a \ |
23 | | sha256 23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40b8cad8 |
24 | | |
25 | | depends_lib port:sqlite3 |
26 | | |
27 | | # Without declaring a universal variant before using get_canonical_archflags, |
28 | | # only non-universal arch flags are returned. |
29 | | # This works around it. |
30 | | # Another way around the problem would be setting build.env in pre-build. |
31 | | # Kudos to jmr and ryandesign for explaining that. |
32 | | variant universal {} |
33 | | |
34 | | build.env CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \ |
35 | | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
36 | | build.args CC="${configure.cc}" |
| 23 | checksums rmd160 2e2d593e3f6cfcde3bdf57b090947b355ce2b2e8 \ |
| 24 | sha256 356954f141ec6f5635e938c826f2e16e4619bb361c64d84a31f6775d030a615b |
37 | 25 | |
38 | 26 | pre-configure { |
39 | 27 | set filename "${worksrcpath}/configure.local" |
40 | 28 | set content [subst { |
41 | | CC="${configure.cc}" |
42 | | CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" |
43 | | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
44 | | DBLIB="-lsqlite3" |
45 | | HAVE_SQLITE3="1" |
46 | | BUILD_DB="1" |
47 | | BUILD_CGI="0" |
48 | 29 | |
49 | | # Rename mandoc binaries (and their manpages.) |
50 | | BINM_APROPOS="mapropos" |
51 | | BINM_MAN="mman" |
52 | | BINM_WHATIS="mwhatis" |
53 | | BINM_MAKEWHATIS="mmakewhatis" |
| 30 | PREFIX="${prefix}" |
| 31 | MANDIR="${prefix}/share/man" |
54 | 32 | |
55 | | # Rename mandoc manpages. |
| 33 | MANM_MANCONF="mandoc.conf" |
56 | 34 | MANM_MAN="mandoc_man" |
| 35 | MANM_MDOC="mandoc_mdoc" |
57 | 36 | MANM_ROFF="mandoc_roff" |
58 | 37 | MANM_EQN="mandoc_eqn" |
59 | 38 | MANM_TBL="mandoc_tbl" |
60 | 39 | |
61 | | PREFIX="${prefix}" |
62 | | BINDIR="${prefix}/bin" |
63 | | SBINDIR="${prefix}/sbin" |
64 | | INCLUDEDIR="${prefix}/include" |
65 | | LIBDIR="${prefix}/lib" |
66 | | MANDIR="${prefix}/share/man" |
67 | | EXAMPLEDIR="${prefix}/share/examples/mandoc" |
| 40 | BINM_MAN="mman" |
| 41 | BINM_APROPOS="mapropos" |
| 42 | BINM_WHATIS="mwhatis" |
| 43 | BINM_MAKEWHATIS="mandocdb" |
| 44 | BINM_SOELIM="msoelim" |
68 | 45 | |
69 | | INSTALL_PROGRAM="${configure.install} -m 0755"} |
70 | | ] |
| 46 | INSTALL_PROGRAM="${configure.install} -m 0755" |
| 47 | INSTALL_LIB="${configure.install} -m 0644" |
| 48 | INSTALL_MAN="${configure.install} -m 0644" |
| 49 | INSTALL_DATA="${configure.install} -m 0644" |
71 | 50 | |
72 | | set fd [open "${filename}" "w"] |
| 51 | INSTALL_LIBMANDOC=0 |
| 52 | BUILD_CGI=0 |
| 53 | BUILD_CATMAN=0 |
73 | 54 | |
74 | | puts -nonewline "${fd}" "${content}" |
| 55 | CC="${configure.cc}" |
| 56 | CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" |
| 57 | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
75 | 58 | |
| 59 | } ] |
| 60 | |
| 61 | set fd [open "${filename}" "w"] |
| 62 | puts -nonewline "${fd}" "${content}" |
76 | 63 | close "${fd}" |
77 | 64 | } |
| 65 | |
| 66 | # Without declaring a universal variant before using get_canonical_archflags, |
| 67 | # only non-universal arch flags are returned. |
| 68 | # This works around it. |
| 69 | # Another way around the problem would be setting build.env in pre-build. |
| 70 | # Kudos to jmr and ryandesign for explaining that. |
| 71 | variant universal {} |
| 72 | |
| 73 | build.env CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \ |
| 74 | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
| 75 | build.args CC="${configure.cc}" |