Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jun 2016 13:54:34 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417421 - head/math/oleo
Message-ID:  <201606241354.u5ODsYfv019902@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jun 24 13:54:34 2016
New Revision: 417421
URL: https://svnweb.freebsd.org/changeset/ports/417421

Log:
  - Clarify LICENSE
  - Add LICENSE_FILE
  - Switch to USES=localbase
  - Switch to options helpers

Modified:
  head/math/oleo/Makefile

Modified: head/math/oleo/Makefile
==============================================================================
--- head/math/oleo/Makefile	Fri Jun 24 13:48:31 2016	(r417420)
+++ head/math/oleo/Makefile	Fri Jun 24 13:54:34 2016	(r417421)
@@ -10,40 +10,31 @@ MASTER_SITES=	GNU
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	The GNU spreadsheet for X11 and terminals
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		bison perl5
+USES=		bison localbase 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
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMOTIF}
-LIB_DEPENDS+=	libplot.so:graphics/plotutils \
-		libXbae.so:x11-toolkits/xbae \
-		libXmHTML.so: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
+MOTIF_LIB_DEPENDS=	libplot.so:graphics/plotutils \
+			libXbae.so:x11-toolkits/xbae \
+			libXmHTML.so:x11-toolkits/xmhtml
+MOTIF_USES=		motif
+MOTIF_CONFIGURE_WITH=	motif
+MOTIF_USE_OFF=		XORG=xt,ice,sm
+
+NLS_USES=		gettext
+NLS_LIBS=		-lintl
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES_OFF=		gettext-tools
 
 post-patch:
 	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606241354.u5ODsYfv019902>