summaryrefslogtreecommitdiffstats
path: root/groff
diff options
context:
space:
mode:
Diffstat (limited to 'groff')
-rw-r--r--groff/Pkgfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/groff/Pkgfile b/groff/Pkgfile
index dbd3cb7..9df3cfa 100644
--- a/groff/Pkgfile
+++ b/groff/Pkgfile
@@ -13,10 +13,17 @@ build ()
cd $name-$version;
touch doc/gnu.eps;
./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
--prefix=$prefix \
--mandir=$mandir \
--without-x;
- make;
+ 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;