svn commit: r305189 - head/math/oleo
Pietro Cerutti
gahr at FreeBSD.org
Wed Oct 3 07:45:37 UTC 2012
Author: gahr
Date: Wed Oct 3 07:45:37 2012
New Revision: 305189
URL: http://svn.freebsd.org/changeset/ports/305189
Log:
- Convert to OptionsNG
Notified by: http://wiki.freebsd.org/Ports/Options/ConvertingToOptionsNG
Modified:
head/math/oleo/Makefile (contents, props changed)
Modified: head/math/oleo/Makefile
==============================================================================
--- head/math/oleo/Makefile Wed Oct 3 07:39:41 2012 (r305188)
+++ head/math/oleo/Makefile Wed Oct 3 07:45:37 2012 (r305189)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: oleo
-# Date created: 3 September 1994
-# Whom: mr
-#
+# Created by: mr
# $FreeBSD$
-#
PORTNAME= oleo
PORTVERSION= 1.99.16
@@ -25,12 +21,11 @@ CONFIGURE_ARGS= --with-x --without-xlt -
INFO= oleo
PORTDOCS= AUTHORS FAQ
-OPTIONS= MOTIF "Motif support" off \
- NLS "NLS support" on
+OPTIONS_DEFINE= MOTIF NLS
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_MOTIF)
+.if ${PORT_OPTIONS:MMOTIF}
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils \
Xbae:${PORTSDIR}/x11-toolkits/xbae \
XmHTML:${PORTSDIR}/x11-toolkits/xmhtml
@@ -41,12 +36,12 @@ USE_XORG= xt ice sm
CONFIGURE_ARGS+= --without-motif
.endif
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB= NLS="@comment "
-.else
+.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB= NLS="@comment "
.endif
post-patch:
@@ -68,4 +63,4 @@ pre-build:
&& iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list