pkgsrc/math/mpfr/builtin.mk
drochner 8d99ca5621 in the awk code to extract the version number from a header, avoid
the non-standard "gensub" function, from Alexander Nasonov per PM
2011-07-14 18:06:59 +00:00

13 lines
365 B
Makefile

# $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $
BUILTIN_PKG:= mpfr
PKGCONFIG_FILE.mpfr= /usr/include/mpfr.h
PKGCONFIG_BASE.mpfr= /usr
BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
'/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \
v = substr($$3, 2, length($$3)-2) } \
END { gsub("-p",".",v); print v }'
.include "../../mk/buildlink3/pkgconfig-builtin.mk"