1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/math/oleo/Makefile
Pietro Cerutti 001e4c6a57 - STAGE-clean
- Convert to new LIB_DEPENDS format
- Add LICENSE
2014-02-14 09:40:28 +00:00

63 lines
1.4 KiB
Makefile

# Created by: mr
# $FreeBSD$
PORTNAME= oleo
PORTVERSION= 1.99.16
PORTREVISION= 7
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gahr@FreeBSD.org
COMMENT= The GNU spreadsheet for X11 and terminals
LICENSE= GPLv2
USE_PERL5= build
USES= bison perl5
USE_AUTOTOOLS= autoconf213
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
MAKE_ENV+= DESTDIR=${STAGEDIR}
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
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
PLIST_SUB= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB= NLS="@comment "
.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
.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>