svn commit: r417421 - head/math/oleo

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Jun 24 13:54:35 UTC 2016


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 at 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 \


More information about the svn-ports-head mailing list