pkgsrc/math/qalculate/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

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.48 2018/07/04 13:40:25 jperkin Exp $
DISTNAME= libqalculate-0.9.7
PKGNAME= qalculate-0.9.7
PKGREVISION= 6
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/}
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://qalculate.sourceforge.net/
COMMENT= Modern multi-purpose desktop calculator (console version)
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= autoconf gmake intltool msgfmt pkg-config
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE= ${WRKSRC}/libqalculate.pc.in
UNLIMIT_RESOURCES= datasize
SUBST_CLASSES+= pthread
SUBST_FILES.pthread= libqalculate.pc.in
SUBST_SED.pthread+= -e 's,@PTHREAD_LIBS@,${PTHREAD_LDFLAGS} ${PTHREAD_LIBS},g'
SUBST_STAGE.pthread= pre-configure
PTHREAD_AUTO_VARS= yes
CFLAGS.SunOS+= -D_LCONV_C99
pre-configure:
${RUN} cd ${WRKSRC}; autoconf
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../math/cln/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"