Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2015 18:42:54 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379939 - head/graphics/gexiv2
Message-ID:  <201502251842.t1PIgst7060671@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Wed Feb 25 18:42:53 2015
New Revision: 379939
URL: https://svnweb.freebsd.org/changeset/ports/379939
QAT: https://qat.redports.org/buildarchive/r379939/

Log:
  graphics/gexiv2: Use CXXFLAGS instead of CFLAGS
  
  This program uses c++ to build, so it needs to use CXXFLAGS.  While
  switching those in order to pick up external c++ flags, relocate the
  WRKSRC definition to please portlint.

Modified:
  head/graphics/gexiv2/Makefile

Modified: head/graphics/gexiv2/Makefile
==============================================================================
--- head/graphics/gexiv2/Makefile	Wed Feb 25 18:41:22 2015	(r379938)
+++ head/graphics/gexiv2/Makefile	Wed Feb 25 18:42:53 2015	(r379939)
@@ -7,7 +7,6 @@ PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	http://yorba.org/download/${PORTNAME}/${PORTVERSION:R}/
 DISTNAME=	lib${PORTNAME}_${PORTVERSION}
-WRKSRC=		${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GObject-based wrapper around Exiv2 library
@@ -21,12 +20,15 @@ USES=		gmake libtool:build pkgconfig tar
 USE_GNOME=	glib20 introspection:build
 USE_LDCONFIG=	yes
 MAKE_ARGS=	REQUIRED_CFLAGS="" ENABLE_INTROSPECTION=1
+WRKSRC=		${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
 
 post-patch:
 	@${REINPLACE_CMD} -E \
 		-e 's|^([[:space:]]+)m4[[:space:]]|\1gm4 |' \
 		-e 's|\$$\(LIB\)/pkgconfig|libdata/pkgconfig|' \
-			${WRKSRC}/${MAKEFILE}
+		-e '/^CFLAGS/ s|CFLAGS|CXXFLAGS|' \
+		-e 's|\(CFLAGS\)|(CXXFLAGS)|' \
+		${WRKSRC}/${MAKEFILE}
 
 pre-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/vala/vapi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502251842.t1PIgst7060671>