svn commit: r379939 - head/graphics/gexiv2
John Marino
marino at FreeBSD.org
Wed Feb 25 18:42:54 UTC 2015
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 at 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
More information about the svn-ports-all
mailing list