freebsd-ports/math/oleo/Makefile
Kirill Ponomarev 126bd38b6a - Fix build
PR:		56436
Submitted by:	Ports Fury
2003-09-04 14:27:56 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: oleo
# Date created: 3 September 1994
# Whom: mr
#
# $FreeBSD$
#
PORTNAME= oleo
PORTVERSION= 1.99.16
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= The GNU spreadsheet for X11 and terminals
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext
USE_PERL5_BUILD= yes
USE_BISON= yes
USE_REINPLACE= yes
USE_AUTOCONF_VER= 213
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
.if defined(WITH_MOTIF)
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_XLIB= yes
CONFIGURE_ARGS+= --without-motif
.endif
.include <bsd.port.pre.mk>
pre-everything::
.if !defined(WITH_MOTIF)
@${ECHO_MSG}
@${ECHO_MSG} "If you want to compile with Motif support,"
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_MOTIF=yes\""
@${ECHO_MSG}
.endif
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
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.post.mk>