Fixup fromcvs/togit conversion
[pkgsrcv2.git] / math / mpfr / builtin.mk
1 # $NetBSD: builtin.mk,v 1.2 2011/07/14 18:06:59 drochner Exp $
2
3 BUILTIN_PKG:=   mpfr
4
5 PKGCONFIG_FILE.mpfr=    /usr/include/mpfr.h /usr/include/mpfr/mpfr.h
6 PKGCONFIG_BASE.mpfr=    /usr
7
8 BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
9         '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \
10         v = substr($$3, 2, length($$3)-2) } \
11         END { gsub("-p",".",v); print v }'
12
13 .include "../../mk/buildlink3/pkgconfig-builtin.mk"
14
15 .if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss])
16 CONFIGURE_ARGS+=        --with-mpfr-include=${FIND_FILES_mpfr:S/\/mpfr.h//}
17 .endif