[BACK]Return to hacks.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / cairo

File: [cvs.NetBSD.org] / pkgsrc / graphics / cairo / Attic / hacks.mk (download)

Revision 1.2, Wed Nov 16 03:45:03 2011 UTC (12 years, 5 months ago) by minskim
Branch: MAIN
CVS Tags: pkgsrc-2012Q1-base, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Branch point for: pkgsrc-2012Q1
Changes since 1.1: +2 -2 lines

Use a stricter condition to enable the hack.

# $NetBSD: hacks.mk,v 1.2 2011/11/16 03:45:03 minskim Exp $

.if !defined(CAIRO_HACKS_MK)
CAIRO_HACKS_MK=	defined

###
### A workaround for MacPorts Ticket #31469
### https://trac.macports.org/ticket/31469
###
.if ${OPSYS} == "Darwin" && !empty(PKGSRC_COMPILER:Mgcc)
_BAD_GCC_BUILD!=	${CC} --version | (${GREP} -c 'i686-apple-darwin11-llvm-gcc-4\.2\ .*build\ 5658' || ${TRUE})
.  if ${_BAD_GCC_BUILD} == "1" && exists(/usr/bin/gcc-4.2)
PKG_HACKS+=	llvm-link
CONFIGURE_ENV+=	ac_cv_prog_CC=gcc-4.2
.  endif
.endif

.endif	# CAIRO_HACKS_MK