summaryrefslogtreecommitdiff
path: root/emulators/p11/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-12 22:42:57 +0000
committerjlam <jlam>2008-04-12 22:42:57 +0000
commit84db467ec7c8386066718011f8d47775d5608811 (patch)
treefdd67c81079412bf94013749a954125434a9baca /emulators/p11/Makefile
parent7082f8c2044621c8641f3c82a2da95c2d442048c (diff)
downloadpkgsrc-84db467ec7c8386066718011f8d47775d5608811.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'emulators/p11/Makefile')
-rw-r--r--emulators/p11/Makefile22
1 files changed, 9 insertions, 13 deletions
diff --git a/emulators/p11/Makefile b/emulators/p11/Makefile
index 2092c731e9e..676ac7d4764 100644
--- a/emulators/p11/Makefile
+++ b/emulators/p11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2007/01/27 12:02:16 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2008/04/12 22:43:00 jlam Exp $
#
DISTNAME= p11-2.10i
@@ -16,27 +16,23 @@ USE_TOOLS+= gmake
.include "../../mk/bsd.prefs.mk"
+PLIST_VARS+= bpf tap tun
+
# bfp, tap, and tun tests taken from p11 configure script
.if exists(/dev/bpf0)
-PLIST_SUBST+= BPF=
-.else
-PLIST_SUBST+= BPF="@comment "
+PLIST.bpf= yes
.endif
.if exists(/dev/tap0) || exists(/dev/net/tun)
-PLIST_SUBST+= TAP=
-.elif ${OPSYS} == "DragonFly"
-PLIST_SUBST+= TAP= # DragonFly has TAP
-.else
-PLIST_SUBST+= TAP="@comment "
+PLIST.tap= yes
.endif
-.if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun) || ${OPSYS} == "DragonFly"
-PLIST_SUBST+= TUN=
-.else
-PLIST_SUBST+= TUN="@comment "
+.if exists(/dev/tun) || exists(/dev/tun0) || exists(/dev/net/tun)
+PLIST.tun= yes
.endif
# Force the bpf, tun, and tap epp backends to be built on DragonFly.
.if ${OPSYS} == "DragonFly"
+PLIST.tap= yes
+PLIST.tun= yes
CONFIGURE_ENV+= ac_cv_epp_bpf=yes ac_cv_epp_tun=yes ac_cv_epp_tap=yes
.endif