aboutsummaryrefslogtreecommitdiffstats
path: root/math/oleo
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 07:12:23 +0800
committerpav <pav@FreeBSD.org>2004-08-21 07:12:23 +0800
commit787681dc75f68360e85f66584bb7431d0e2e5e7b (patch)
treef2a464d8a0a952ad3235be360bdc7845d2f0bcac /math/oleo
parentfbceebb79008bee3cca872dc5f64232f5882f3a5 (diff)
downloadfreebsd-ports-gnome-787681dc75f68360e85f66584bb7431d0e2e5e7b.tar.gz
freebsd-ports-gnome-787681dc75f68360e85f66584bb7431d0e2e5e7b.tar.zst
freebsd-ports-gnome-787681dc75f68360e85f66584bb7431d0e2e5e7b.zip
- Convert to OPTIONS
PR: ports/70736 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Diffstat (limited to 'math/oleo')
-rw-r--r--math/oleo/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/math/oleo/Makefile b/math/oleo/Makefile
index 114cb90ec47f..38a56dbb4f20 100644
--- a/math/oleo/Makefile
+++ b/math/oleo/Makefile
@@ -26,6 +26,11 @@ CONFIGURE_ARGS= --with-x --without-xlt --without-SciPlot
INFO= oleo
PORTDOCS= AUTHORS FAQ
+OPTIONS= MOTIF "Motif support" off \
+ NLS "NLS support" on
+
+.include <bsd.port.pre.mk>
+
.if defined(WITH_MOTIF)
LIB_DEPENDS+= plot:${PORTSDIR}/graphics/plotutils \
Xbae:${PORTSDIR}/x11-toolkits/xbae \
@@ -45,16 +50,6 @@ USE_GETTEXT= yes
PLIST_SUB= NLS=""
.endif
-.include <bsd.port.pre.mk>
-
-pre-everything::
-.if !defined(WITH_MOTIF)
- @${ECHO_MSG}
- @${ECHO_MSG} "If you want to compile with Motif support,"
- @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_MOTIF=yes\""
- @${ECHO_MSG}
-.endif
-
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'