diff options
author | grant <grant@pkgsrc.org> | 2007-03-02 11:29:00 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2007-03-02 11:29:00 +0000 |
commit | 5b51e6bae2670e72976c605b5a78ff4ea8c5ec0f (patch) | |
tree | 05325ac062074b7a35b460f262862d7d54a5c2e1 /devel/vanessa_logger | |
parent | 991192a2189a7347aeb1010b2897423b80462d50 (diff) | |
download | pkgsrc-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/Makefile | 14 |
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" |