freebsd-ports/math/oleo/Makefile
Baptiste Daroussin 7990f81066 Install texinfo files (GNU info) into ${PREFIX}/share/info
After a discussion on the mailing list on moving manpages to
${PREFIX}/share/man for consistency with base where it is
installed in usr/share/man, it appeared the same should happen
to GNU info files which were installed under share in base and
not in ports.

Now texinfo is not in base on any of the supported version of FreeBSD
it is possible to proceed to this move and it is easier to do than
the manpage change.

Other benefit than consistency are less patching: all build tools but
cmake are expecting info files to be under share/info and cmake (patched here)
was having an exception for BSD so the patch makes FreeBSD case less
specific for them

Bump revision of all impacted ports

PR:		232907
exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D17816
2018-11-10 18:12:57 +00:00

52 lines
1.2 KiB
Makefile

# Created by: mr
# $FreeBSD$
PORTNAME= oleo
PORTVERSION= 1.99.16
PORTREVISION= 10
CATEGORIES= math
MASTER_SITES= GNU
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU spreadsheet for X11 and terminals
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= bison localbase ncurses perl5
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
MAKE_ENV+= DESTDIR=${STAGEDIR}
INFO= oleo
OPTIONS_DEFINE= MOTIF NLS
OPTIONS_SUB= yes
MOTIF_LIB_DEPENDS= libplot.so:graphics/plotutils \
libXbae.so:x11-toolkits/xbae \
libXmHTML.so:x11-toolkits/xmhtml
MOTIF_USES= motif
MOTIF_CONFIGURE_WITH= motif
MOTIF_USE_OFF= XORG=xt,ice,sm
NLS_USES= gettext
NLS_LIBS= -lintl
NLS_CONFIGURE_ENABLE= nls
NLS_USES_OFF= gettext-tools
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
@${REINPLACE_CMD} -e '/^DESTDIR/s|=|?=|' \
${WRKSRC}/Makefile.in
.for pof in en fr nl
@${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|;s|ENCODING|8bit|" \
${WRKSRC}/po/${pof}.po
.endfor
@${REINPLACE_CMD} -e "s|am: install-docDATA|am:|" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|install-info-am install-htmlDATA|install-info-am|" \
${WRKSRC}/doc/Makefile.in
.include <bsd.port.mk>