Passing "-ansi" turns "long long" support off on FreeBSD/amd64.

Define __LONG_LONG_SUPPORTED to make the package build.
This commit is contained in:
asau 2013-09-25 23:07:31 +00:00
parent 912d177239
commit 0f44c26f1a

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.63 2013/07/04 13:13:55 wiz Exp $
# $NetBSD: Makefile,v 1.64 2013/09/25 23:07:31 asau Exp $
.include "../../print/poppler/Makefile.common"
@ -45,6 +45,11 @@ CONFIGURE_ARGS+= --disable-cms
.include "../../mk/bsd.prefs.mk"
# Passing "-ansi" turns "long long" support off on FreeBSD/amd64:
.if ${OPSYS} == "FreeBSD" && ${MACHINE_ARCH} == "x86_64"
CFLAGS+= -D__LONG_LONG_SUPPORTED=
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/poppler/
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${DESTDIR}${PREFIX}/share/doc/poppler/