diff options
author | grant <grant> | 2007-03-02 11:29:00 +0000 |
---|---|---|
committer | grant <grant> | 2007-03-02 11:29:00 +0000 |
commit | c89415715ffccb743fa41864a9ffd5dc59a11271 (patch) | |
tree | 05325ac062074b7a35b460f262862d7d54a5c2e1 /devel/vanessa_logger | |
parent | 6d62191df665c1b6aeb61724f0dd8757d64e91e9 (diff) | |
download | pkgsrc-c89415715ffccb743fa41864a9ffd5dc59a11271.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" |