pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/ups-nut ups-nut: fix option handling in build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/033eb9f538d0
branches:  trunk
changeset: 447596:033eb9f538d0
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Feb 22 17:07:50 2021 +0000

description:
ups-nut: fix option handling in buildlink3.mk

>From Edgar Fuß.

diffstat:

 sysutils/ups-nut/buildlink3.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 6e89215839c1 -r 033eb9f538d0 sysutils/ups-nut/buildlink3.mk
--- a/sysutils/ups-nut/buildlink3.mk    Mon Feb 22 14:03:35 2021 +0000
+++ b/sysutils/ups-nut/buildlink3.mk    Mon Feb 22 17:07:50 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2020/07/13 18:50:29 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2021/02/22 17:07:50 wiz Exp $
 
 BUILDLINK_TREE+=       ups-nut
 
@@ -8,6 +8,15 @@
 BUILDLINK_API_DEPENDS.ups-nut+=        ups-nut>=2.7.4
 BUILDLINK_PKGSRCDIR.ups-nut?=  ../../sysutils/ups-nut
 
+pkgbase:= ups-nut
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.ups-nut:Mopenssl}
+.  include "../../security/openssl/buildlink3.mk"
+.elif ${PKG_BUILD_OPTIONS.ups-nut:Mnss}
+.  include "../../devel/nss/buildlink3.mk"
+.endif
+
 .include "../../mk/pthread.buildlink3.mk"
 .endif # UPS_NUT_BUILDLINK3_MK
 



Home | Main Index | Thread Index | Old Index