summaryrefslogtreecommitdiff
path: root/net/nmap
diff options
context:
space:
mode:
authorrillig <rillig>2006-01-23 15:19:24 +0000
committerrillig <rillig>2006-01-23 15:19:24 +0000
commit6b2c0b726397d9f273ad0136db9112e5cd63218e (patch)
tree732c912c6b696e13d209a031540c8a84b0733ce4 /net/nmap
parent932ed7cbcb3ceab5369677c24895f7bde5063ba9 (diff)
downloadpkgsrc-6b2c0b726397d9f273ad0136db9112e5cd63218e.tar.gz
Made the package work with SunPro on Solaris 8. That C++ compiler
neither knows __FUNCTION__ nor __func__.
Diffstat (limited to 'net/nmap')
-rw-r--r--net/nmap/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/nmap/Makefile b/net/nmap/Makefile
index 990b2196902..961b9fcc8e5 100644
--- a/net/nmap/Makefile
+++ b/net/nmap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2005/12/08 21:59:17 salo Exp $
+# $NetBSD: Makefile,v 1.47 2006/01/23 15:19:24 rillig Exp $
#
DISTNAME= nmap-3.95
@@ -29,6 +29,13 @@ CONFIGURE_ARGS+= --without-nmapfe
MAKE_ENV+= CPPFLAGS=""
.endif
+# The SunPro C++ compiler does not understand __FUNCTION__, as well as
+# __func__. So __FILE__ is the nearest replacement.
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Msunpro)
+CFLAGS.SunOS+= -D__FUNCTION__=__FILE__
+.endif
+
.include "../../devel/pcre/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"