summaryrefslogtreecommitdiff
path: root/repo/util/mandoc/mandoc.xibuild
blob: d74e6c8b2973ccd298b5e4b88e43df41fa0f1101 (plain)
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
#!/bin/sh

MAKEDEPS="make "
DEPS="musl zlib sbase"

PKG_VER=1.14.6
SOURCE=https://mandoc.bsd.lv/snapshots/mandoc-$PKG_VER.tar.gz
DESC="mandoc (formerly mdocml) UNIX manpage compiler toolset"

prepare () {
	cat > configure.local << EOF
PREFIX=/usr
MANDIR=/usr/share/man
LIBDIR=/usr/lib
CFLAGS="$CFLAGS"
UTF8_LOCALE="en_US.UTF-8"
MANPATH_DEFAULT="/usr/share/man:/usr/local/man"
MANPATH_BASE="/usr/share/man"
LN="ln -sf"
HAVE_LESS_T=0
EOF

}

build () {
    ./configure
    make
}

package () {
    make DESTDIR=$PKG_DEST base-install lib-install
}