From 6082eee5b4eb0829395734c9ba3eb7b1de94ff29 Mon Sep 17 00:00:00 2001
From: kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Fri, 28 Jun 2013 19:13:13 +0000
Subject: Don't confuse clang and cl (MS pre-processor) [1] also fix another
 instance of this. While here make sure we default to the standard compiler cc
 and not accidently use gcc.

Obtained from:	GNOME git [1]


git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18603 df743ca5-7f9a-e211-a948-0013205c9059
---
 devel/gobject-introspection/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'devel/gobject-introspection/Makefile')

diff --git a/devel/gobject-introspection/Makefile b/devel/gobject-introspection/Makefile
index 7366af636..792656a61 100644
--- a/devel/gobject-introspection/Makefile
+++ b/devel/gobject-introspection/Makefile
@@ -4,6 +4,7 @@
 
 PORTNAME=	gobject-introspection
 PORTVERSION=	1.36.0
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome3
@@ -24,13 +25,16 @@ USE_PYTHON=	-2.7
 USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=yes
-CPPFLAGS+=	-I${LOCALBASE}/include
+CPPFLAGS+=	-I${LOCALBASE}/include -Wnocast-align
 LDFLAGS+=	-L${LOCALBASE}/lib
-CONFIGURE_ARGS=	--disable-tests
 
 # Force it to put the .cache in ${WRKSRC} instead of ~/.cache. ports/143260
 MAKE_ENV=	HOME=${WRKDIR}
 
 MAN1=		g-ir-compiler.1 g-ir-generate.1 g-ir-scanner.1
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|'gcc'|'cc'|g' \
+		${WRKSRC}/giscanner/dumper.py
+
 .include <bsd.port.mk>
-- 
cgit