summaryrefslogtreecommitdiff
path: root/comms/asterisk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-25 11:32:19 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-25 11:32:19 +0000
commit9b78a729bae8f2a5d171c6120bf393de545ee716 (patch)
treeaf9d0a96105a8441f65f775cc3e4262d7d1e8333 /comms/asterisk
parent341772996adec7f825e106cce7cab2b3baa9892b (diff)
downloadpkgsrc-9b78a729bae8f2a5d171c6120bf393de545ee716.tar.gz
Use OPSYSVARS.
Diffstat (limited to 'comms/asterisk')
-rw-r--r--comms/asterisk/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/comms/asterisk/Makefile b/comms/asterisk/Makefile
index 0ffd86a98d0..d48f744d83f 100644
--- a/comms/asterisk/Makefile
+++ b/comms/asterisk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2016/02/07 08:18:43 jnemeth Exp $
+# $NetBSD: Makefile,v 1.134 2016/02/25 11:32:19 jperkin Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked
@@ -151,19 +151,17 @@ SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|"
SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|"
SUBST_SED.configs+= -e "s|/var|${VARBASE}|"
-.if (${OPSYS} == "NetBSD")
# XXX gross hack, remove when atomics properly implemented
-SUBST_CLASSES+= atomics
+SUBST_CLASSES.NetBSD+= atomics
SUBST_STAGE.atomics= post-configure
SUBST_FILES.atomics= include/asterisk/autoconfig.h
SUBST_SED.atomics= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
-SUBST_CLASSES+= pktinfo
+SUBST_CLASSES.NetBSD+= pktinfo
SUBST_STAGE.pktinfo= post-configure
SUBST_FILES.pktinfo= include/asterisk/autoconfig.h
SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
-.endif
RCD_SCRIPTS= asterisk
OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755