mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# Created by: mr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= oleo
|
|
PORTVERSION= 1.99.16
|
|
PORTREVISION= 8
|
|
CATEGORIES= math
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The GNU spreadsheet for X11 and terminals
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= bison perl5
|
|
USE_PERL5= build
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib -lintl
|
|
MAKE_ENV+= DESTDIR=${STAGEDIR}
|
|
|
|
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>
|