freebsd-ports/math/oleo/Makefile

67 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: mr
1999-08-25 09:23:21 +02:00
# $FreeBSD$
2000-04-14 09:20:58 +02:00
PORTNAME= oleo
PORTVERSION= 1.99.16
PORTREVISION= 7
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gahr@FreeBSD.org
2003-02-20 20:00:52 +01:00
COMMENT= The GNU spreadsheet for X11 and terminals
USE_PERL5_BUILD= yes
USES= bison
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= autoconf213
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
2004-06-07 23:27:03 +02:00
INFO= oleo
PORTDOCS= AUTHORS FAQ
OPTIONS_DEFINE= MOTIF NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMOTIF}
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils \
Xbae:${PORTSDIR}/x11-toolkits/xbae \
XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
USE_MOTIF= yes
CONFIGURE_ARGS+= --with-motif
.else
USE_XORG= xt ice sm
CONFIGURE_ARGS+= --without-motif
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2004-06-07 23:27:03 +02:00
PLIST_SUB= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB= NLS="@comment "
2004-02-08 00:29:51 +01:00
.endif
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
2004-06-07 23:27:03 +02:00
.for pof in en fr nl
@${REINPLACE_CMD} -e "s|CHARSET|ISO-8859-1|;s|ENCODING|8bit|" \
${WRKSRC}/po/${pof}.po
.endfor
.if defined(NOPORTDOCS)
@${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
.endif
pre-build:
.for file in src/io-term.c
cd ${WRKSRC} && ${MV} ${file} ${file}.pre_iconv \
&& iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
.endfor
.include <bsd.port.mk>