1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/math/oleo/Makefile

62 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: mr
1999-08-25 07:23:21 +00:00
# $FreeBSD$
2000-04-14 07:20:58 +00:00
PORTNAME= oleo
PORTVERSION= 1.99.16
PORTREVISION= 8
CATEGORIES= math
MASTER_SITES= GNU
2014-12-10 22:29:14 +00:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 19:00:52 +00:00
COMMENT= The GNU spreadsheet for X11 and terminals
LICENSE= GPLv2
USES= bison perl5
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lintl
MAKE_ENV+= DESTDIR=${STAGEDIR}
2004-06-07 21:27:03 +00:00
INFO= oleo
OPTIONS_DEFINE= MOTIF NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMOTIF}
LIB_DEPENDS+= libplot.so:${PORTSDIR}/graphics/plotutils \
libXbae.so:${PORTSDIR}/x11-toolkits/xbae \
libXmHTML.so:${PORTSDIR}/x11-toolkits/xmhtml
USES+= motif
CONFIGURE_ARGS+= --with-motif
.else
USE_XORG= xt ice sm
CONFIGURE_ARGS+= --without-motif
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2004-06-07 21:27:03 +00:00
PLIST_SUB= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB= NLS="@comment "
2004-02-07 23:29:51 +00:00
.endif
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
2004-06-07 21:27:03 +00:00
.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>