1995-03-24 06:12:06 -05:00
|
|
|
# New ports collection makefile for: oleo
|
1995-04-10 21:19:12 -04:00
|
|
|
# Date created: 3 September 1994
|
1994-10-11 14:17:01 -04:00
|
|
|
# Whom: mr
|
|
|
|
#
|
1999-08-25 03:23:21 -04:00
|
|
|
# $FreeBSD$
|
1994-10-11 14:17:01 -04:00
|
|
|
#
|
|
|
|
|
2000-04-14 03:20:58 -04:00
|
|
|
PORTNAME= oleo
|
2001-03-20 08:03:54 -05:00
|
|
|
PORTVERSION= 1.99.16
|
2008-06-06 10:17:21 -04:00
|
|
|
PORTREVISION= 6
|
1996-11-18 05:25:35 -05:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2000-08-01 20:05:11 -04:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1995-04-10 21:19:12 -04:00
|
|
|
|
2008-02-21 16:20:01 -05:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-02-20 14:00:52 -05:00
|
|
|
COMMENT= The GNU spreadsheet for X11 and terminals
|
1997-10-31 08:43:28 -05:00
|
|
|
|
2003-07-19 00:54:32 -04:00
|
|
|
USE_PERL5_BUILD= yes
|
2007-10-17 06:13:01 -04:00
|
|
|
USE_BISON= build
|
2005-11-15 01:52:12 -05:00
|
|
|
USE_AUTOTOOLS= autoconf:213
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 13:56:05 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2001-03-20 08:03:54 -05:00
|
|
|
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
|
1997-10-31 08:43:28 -05:00
|
|
|
|
2004-06-07 17:27:03 -04:00
|
|
|
INFO= oleo
|
|
|
|
PORTDOCS= AUTHORS FAQ
|
|
|
|
|
2004-08-20 19:12:23 -04:00
|
|
|
OPTIONS= MOTIF "Motif support" off \
|
|
|
|
NLS "NLS support" on
|
|
|
|
|
2008-03-10 13:52:15 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_MOTIF)
|
2001-10-15 09:21:23 -04:00
|
|
|
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils \
|
|
|
|
Xbae:${PORTSDIR}/x11-toolkits/xbae \
|
|
|
|
XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
|
2000-12-02 11:27:23 -05:00
|
|
|
USE_MOTIF= yes
|
|
|
|
CONFIGURE_ARGS+= --with-motif
|
|
|
|
.else
|
2008-03-10 13:52:15 -04:00
|
|
|
USE_XORG= xt ice sm
|
2000-12-02 11:27:23 -05:00
|
|
|
CONFIGURE_ARGS+= --without-motif
|
|
|
|
.endif
|
|
|
|
|
2004-06-07 17:27:03 -04:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB= NLS="@comment "
|
|
|
|
.else
|
2004-06-08 14:47:58 -04:00
|
|
|
USE_GETTEXT= yes
|
2004-06-07 17:27:03 -04:00
|
|
|
PLIST_SUB= NLS=""
|
2004-02-07 18:29:51 -05:00
|
|
|
.endif
|
|
|
|
|
2002-03-29 12:22:14 -05:00
|
|
|
post-patch:
|
2003-09-04 10:27:56 -04:00
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|g'
|
2004-06-07 17:27:03 -04: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 10:27:56 -04: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 12:22:14 -05:00
|
|
|
|
2008-03-10 13:52:15 -04:00
|
|
|
.include <bsd.port.post.mk>
|