2008-10-25 00:50:55 +00:00
|
|
|
# Template file for 'groff'
|
|
|
|
pkgname=groff
|
2013-02-11 13:26:45 +00:00
|
|
|
version=1.22.2
|
|
|
|
revision=1
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="perl bison"
|
|
|
|
makedepends="zlib-devel"
|
2008-10-25 00:50:55 +00:00
|
|
|
short_desc="The GNU troff text-formatting system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-13 11:55:57 +00:00
|
|
|
license="GPL-2"
|
2013-02-11 13:26:45 +00:00
|
|
|
homepage="http://www.gnu.org/software/groff/groff.html"
|
|
|
|
distfiles="http://ftp.gnu.org/gnu/groff/groff-${version}.tar.gz"
|
|
|
|
checksum=380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
|
|
|
|
subpackages="groff-doc"
|
2008-10-25 00:50:55 +00:00
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="perl bison groff"
|
2013-02-11 13:26:45 +00:00
|
|
|
fi
|
2008-10-25 00:50:55 +00:00
|
|
|
|
2013-02-11 13:26:45 +00:00
|
|
|
do_configure() {
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-11 13:26:45 +00:00
|
|
|
sed -i \
|
|
|
|
-e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
|
|
|
|
-e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
|
|
|
|
-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
|
|
|
|
-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
|
|
|
|
contrib/*/Makefile.sub \
|
|
|
|
doc/Makefile.in \
|
|
|
|
doc/Makefile.sub
|
|
|
|
fi
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --without-x --disable-rpath
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-11 13:28:17 +00:00
|
|
|
make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH= ${makejobs}
|
|
|
|
else
|
|
|
|
make ${makejobs}
|
|
|
|
fi
|
2013-02-11 13:26:45 +00:00
|
|
|
}
|
2010-10-26 13:56:48 +00:00
|
|
|
|
2013-02-11 13:26:45 +00:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-10-26 13:56:48 +00:00
|
|
|
|
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/usr/lib
|
|
|
|
|
|
|
|
# From Arch:
|
|
|
|
#
|
|
|
|
# Fix some issues when encoding to utf8 man pages
|
|
|
|
# The output chars don't match keyboard chars...
|
|
|
|
for f in man mdoc; do
|
|
|
|
cat ${FILESDIR}/site.tmac >> \
|
|
|
|
${DESTDIR}/usr/share/groff/site-tmac/${f}.local
|
|
|
|
done
|
|
|
|
}
|