kiss-mfavila-small/ports/official/core/mandoc/build

21 lines
332 B
Plaintext
Raw Normal View History

#!/bin/sh -e
sed -i '/int dummy/d' ./compat_*.c
sed -i 's,"more -s","less",g' main.c
sed -i "s/CC=.*/CC='$CC'/" configure
cat > configure.local <<EOF
PREFIX=/usr
MANDIR=/usr/share/man
LIBDIR=/usr/lib
SBINDIR=/usr/bin
CC="${CC:-cc}"
CFLAGS="$CFLAGS"
LN="ln -sf"
EOF
./configure
make
make -j1 DESTDIR="$1" base-install