summaryrefslogtreecommitdiff
path: root/devel/vanessa_logger
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2007-03-02 11:29:00 +0000
committergrant <grant@pkgsrc.org>2007-03-02 11:29:00 +0000
commit5b51e6bae2670e72976c605b5a78ff4ea8c5ec0f (patch)
tree05325ac062074b7a35b460f262862d7d54a5c2e1 /devel/vanessa_logger
parent991192a2189a7347aeb1010b2897423b80462d50 (diff)
downloadpkgsrc-5b51e6bae2670e72976c605b5a78ff4ea8c5ec0f.tar.gz
sunpro doesn't understand __FUNCTION__, subst it with __FILE__ in the
installed header file. bump PKGREVISION.
Diffstat (limited to 'devel/vanessa_logger')
-rw-r--r--devel/vanessa_logger/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/devel/vanessa_logger/Makefile b/devel/vanessa_logger/Makefile
index fdcf6669e1b..dd4ec26741c 100644
--- a/devel/vanessa_logger/Makefile
+++ b/devel/vanessa_logger/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2006/03/04 21:29:30 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2007/03/02 11:29:00 grant Exp $
#
DISTNAME= vanessa_logger-0.0.7
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.vergenet.net/linux/vanessa/download/vanessa_logger/0.0.7/
@@ -13,4 +13,14 @@ COMMENT= Library that provides a generic logging layer
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+# The SunPro compiler does not understand __FUNCTION__, as well as
+# __func__. So __FILE__ is the nearest replacement.
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Msunpro)
+SUBST_CLASSES+= __function__
+SUBST_STAGE.example= post-patch
+SUBST_FILES.example= libvanessa_logger/vanessa_logger.h
+SUBST_SED.example= -e "s|__FUNCTION__|__FILE__|g"
+.endif
+
.include "../../mk/bsd.pkg.mk"