summaryrefslogtreecommitdiff
path: root/sysutils/fam
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-26 10:24:10 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-26 10:24:10 +0000
commitc049a2ca48d1150abe59446f3082ca4116323bc6 (patch)
tree0296198370532d82efd6efd523c7ca1570359f37 /sysutils/fam
parent0538ec5b33e56381337ee00b1bb6243bc3bc3c7a (diff)
downloadpkgsrc-c049a2ca48d1150abe59446f3082ca4116323bc6.tar.gz
Use OPSYSVARS.
Diffstat (limited to 'sysutils/fam')
-rw-r--r--sysutils/fam/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile
index e0e0952b2e0..5a6792529af 100644
--- a/sysutils/fam/Makefile
+++ b/sysutils/fam/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2014/10/09 14:06:57 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2016/02/26 10:24:12 jperkin Exp $
#
DISTNAME= fam-2.7.0
@@ -58,9 +58,7 @@ MESSAGE_SRC= ${.CURDIR}/MESSAGE ${.CURDIR}/MESSAGE.kqueue
CPPFLAGS.Darwin+= -DNDEBUG
LDFLAGS.SunOS+= -lsocket -lnsl
-.if ${OPSYS} == "SunOS"
-
-SUBST_CLASSES+= sunfix
+SUBST_CLASSES.SunOS+= sunfix
SUBST_MESSAGE.sunfix= Fixing ${OPSYS} namespace collision.
SUBST_STAGE.sunfix= pre-configure
SUBST_FILES.sunfix+= lib/Client.c++
@@ -70,7 +68,7 @@ SUBST_FILES.sunfix+= src/Listener.c++
SUBST_FILES.sunfix+= src/TCP_Client.h
SUBST_SED.sunfix= -e 's/sun\([^_]\)/sa_un\1/g'
-SUBST_CLASSES+= dirent
+SUBST_CLASSES.SunOS+= dirent
SUBST_MESSAGE.dirent= Fixing old sys/dir.h usage.
SUBST_STAGE.dirent= pre-configure
SUBST_FILES.dirent+= src/Directory.c++
@@ -84,8 +82,6 @@ SUBST_SED.dirent+= -e 's/struct direct/struct dirent/g'
BUILDLINK_TRANSFORM+= rm:-lstdc++
.endif
-.endif
-
post-extract:
${CP} ${FILESDIR}/IMonKQueue.c++ ${WRKSRC}/src
${CP} ${FILESDIR}/imon-compat.h ${WRKSRC}/src