aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-26 02:42:53 +0800
committermarino <marino@FreeBSD.org>2015-02-26 02:42:53 +0800
commitaf2b6e2c44863260cfea31b375a20cbe0c157218 (patch)
tree7569bb93d426f099f78342e2725f9d59b1743de8 /graphics
parent9d7a69f65b53d8a3b6b0a262285b4cd100195dde (diff)
downloadfreebsd-ports-graphics-af2b6e2c44863260cfea31b375a20cbe0c157218.tar.gz
freebsd-ports-graphics-af2b6e2c44863260cfea31b375a20cbe0c157218.tar.zst
freebsd-ports-graphics-af2b6e2c44863260cfea31b375a20cbe0c157218.zip
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.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gexiv2/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/gexiv2/Makefile b/graphics/gexiv2/Makefile
index 13a385d98b9..73311a1d91e 100644
--- a/graphics/gexiv2/Makefile
+++ b/graphics/gexiv2/Makefile
@@ -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:xz
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