pkgsrc/devel/vanessa_logger/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

25 lines
812 B
Makefile

# $NetBSD: Makefile,v 1.10 2018/07/04 13:40:16 jperkin Exp $
DISTNAME= vanessa_logger-0.0.8
CATEGORIES= devel
MASTER_SITES= http://www.vergenet.net/linux/vanessa/download/vanessa_logger/0.0.8/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.vergenet.net/linux/vanessa/
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.__function__= pre-configure
SUBST_FILES.__function__= libvanessa_logger/vanessa_logger.h
SUBST_SED.__function__= -e "s|__FUNCTION__|__FILE__|g"
.endif
.include "../../mk/bsd.pkg.mk"