pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/octave Use standard way to test for build options.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6017cc2cce73
branches:  trunk
changeset: 356436:6017cc2cce73
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Dec 31 09:26:31 2016 +0000

description:
Use standard way to test for build options.

diffstat:

 math/octave/buildlink3.mk |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 496432428dab -r 6017cc2cce73 math/octave/buildlink3.mk
--- a/math/octave/buildlink3.mk Sat Dec 31 09:23:06 2016 +0000
+++ b/math/octave/buildlink3.mk Sat Dec 31 09:26:31 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.18 2016/02/16 04:21:40 dbj Exp $
+# $NetBSD: buildlink3.mk,v 1.19 2016/12/31 09:26:31 wiz Exp $
 
 BUILDLINK_TREE+=       octave
 
@@ -11,8 +11,11 @@
 
 .include "../../mk/bsd.fast.prefs.mk"
 
-.if !defined(PKG_OPTIONS.octave:) || !empty(PKG_OPTIONS.octave:Mhdf5)
-.include "../../devel/hdf5/buildlink3.mk"
+pkgbase := octave
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.octave:Mhdf5)
+.  include "../../devel/hdf5/buildlink3.mk"
 .endif
 
 .include "../../audio/libsndfile/buildlink3.mk"



Home | Main Index | Thread Index | Old Index