1995-03-24 12:12:06 +01:00
|
|
|
# New ports collection makefile for: oleo
|
1995-04-11 03:19:12 +02:00
|
|
|
# Date created: 3 September 1994
|
1994-10-11 19:17:01 +01:00
|
|
|
# Whom: mr
|
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1994-10-11 19:17:01 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 09:20:58 +02:00
|
|
|
PORTNAME= oleo
|
2001-03-20 14:03:54 +01:00
|
|
|
PORTVERSION= 1.99.16
|
2004-02-04 05:36:30 +01:00
|
|
|
PORTREVISION= 3
|
1996-11-18 11:25:35 +01:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2000-08-02 02:05:11 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1995-04-11 03:19:12 +02:00
|
|
|
|
1999-08-31 08:53:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= The GNU spreadsheet for X11 and terminals
|
1997-10-31 14:43:28 +01:00
|
|
|
|
2003-07-19 06:54:32 +02:00
|
|
|
USE_PERL5_BUILD= yes
|
|
|
|
USE_BISON= yes
|
2002-06-22 19:06:27 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-07-19 06:54:32 +02:00
|
|
|
USE_AUTOCONF_VER= 213
|
1999-09-20 07:50:21 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2001-03-20 14:03:54 +01:00
|
|
|
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
|
1997-10-31 14:43:28 +01:00
|
|
|
|
2004-06-07 23:27:03 +02:00
|
|
|
INFO= oleo
|
|
|
|
PORTDOCS= AUTHORS FAQ
|
|
|
|
|
2004-08-21 01:12:23 +02:00
|
|
|
OPTIONS= MOTIF "Motif support" off \
|
|
|
|
NLS "NLS support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-12-02 17:27:23 +01:00
|
|
|
.if defined(WITH_MOTIF)
|
2001-10-15 15:21:23 +02:00
|
|
|
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils \
|
|
|
|
Xbae:${PORTSDIR}/x11-toolkits/xbae \
|
|
|
|
XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
|
2000-12-02 17:27:23 +01:00
|
|
|
USE_MOTIF= yes
|
|
|
|
CONFIGURE_ARGS+= --with-motif
|
|
|
|
.else
|
2001-03-20 14:03:54 +01:00
|
|
|
USE_XLIB= yes
|
2000-12-02 17:27:23 +01:00
|
|
|
CONFIGURE_ARGS+= --without-motif
|
|
|
|
.endif
|
|
|
|
|
2004-06-07 23:27:03 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.else
|
2004-06-08 20:47:58 +02:00
|
|
|
USE_GETTEXT= yes
|
2004-06-07 23:27:03 +02:00
|
|
|
PLIST_SUB= NLS=""
|
2004-02-08 00:29:51 +01:00
|
|
|
.endif
|
|
|
|
|
2002-03-29 18:22:14 +01:00
|
|
|
post-patch:
|
2003-09-04 16:27:56 +02:00
|
|
|
@${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
|
2003-09-04 16:27:56 +02:00
|
|
|
|
|
|
|
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
|
2002-03-29 18:22:14 +01:00
|
|
|
|
2004-06-19 11:27:37 +02:00
|
|
|
.include <bsd.port.post.mk>
|