summaryrefslogtreecommitdiffstats
path: root/groff/Pkgfile
blob: 9df3cfad59efcda9a623646d1c28d8ba8279f89e (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
description="The GNU troff text-formatting system."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.gnu.org/software/groff/groff.html"
depends=()

name=groff
version=1.20.1
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build () 
{ 
	cd $name-$version;
	touch doc/gnu.eps;
	./configure \
		${CHOST:+--build=${CHOST}} \
		${CTARGET:+--host=${CTARGET}} \
		--prefix=$prefix \
		--mandir=$mandir \
		--without-x;
	if [[ "$CHOST" = "$CTARGET" ]]; then
		make;
	else
		# This will need troff and groff already available at build time on the host.
		make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH=;
	fi
	make DESTDIR=$PKG install;
	ln -sf eqn $PKG$prefix/bin/geqn;
	ln -sf tbl $PKG$prefix/bin/gtbl;
	ln -sf soelim $PKG$prefix/bin/zsoelim
}