summaryrefslogtreecommitdiffstats
path: root/math/oleo
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-20 23:12:23 +0000
committerpav <pav@FreeBSD.org>2004-08-20 23:12:23 +0000
commit787681dc75f68360e85f66584bb7431d0e2e5e7b (patch)
treef2a464d8a0a952ad3235be360bdc7845d2f0bcac /math/oleo
parentfbceebb79008bee3cca872dc5f64232f5882f3a5 (diff)
downloadFreeBSD-ports-787681dc75f68360e85f66584bb7431d0e2e5e7b.zip
FreeBSD-ports-787681dc75f68360e85f66584bb7431d0e2e5e7b.tar.gz
- 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 114cb90..38a56db 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'
OpenPOWER on IntegriCloud