aboutsummaryrefslogtreecommitdiff
path: root/graphics/libgphoto2
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2018-02-04 15:10:06 +0000
committerBen Woods <woodsb02@FreeBSD.org>2018-02-04 15:10:06 +0000
commit730e044399533e21b89115c153899552ecbfdb7a (patch)
treebf073ce8eff31dbaf0fd623145911c4f2e6fb5d3 /graphics/libgphoto2
parent6d8d1a41ce0fd905afa2d95fbeff8a0b574e3446 (diff)
downloadports-730e044399533e21b89115c153899552ecbfdb7a.tar.gz
ports-730e044399533e21b89115c153899552ecbfdb7a.zip
graphics/libgphoto2: Convert custom REINPLACE_CMD to USES=pathfix
There is no functional difference with this change.
Notes
Notes: svn path=/head/; revision=460935
Diffstat (limited to 'graphics/libgphoto2')
-rw-r--r--graphics/libgphoto2/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile
index 124754f26938..5eb67ec03ae9 100644
--- a/graphics/libgphoto2/Makefile
+++ b/graphics/libgphoto2/Makefile
@@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libltdl.so:devel/libltdl
-USES= gmake iconv libtool localbase pkgconfig tar:bzip2
+USES= gmake iconv libtool localbase pathfix pkgconfig tar:bzip2
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" \
@@ -25,6 +25,10 @@ CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" \
udevscriptdir=${WRKDIR}
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
+PATHFIX_MAKEFILEIN= Makefile.in \
+ configure \
+ libgphoto2_port/Makefile.in \
+ libgphoto2_port/configure
PLIST_SUB= VERSION="${PORTVERSION}" VERSION_PORT=0.12.0
@@ -47,8 +51,7 @@ post-patch:
.for i in configure libgphoto2_port/configure
@${REINPLACE_CMD} -e \
'/FLAGS/s|-g|| ; \
- /grep -i linux/s|; fi ; then|; else false; fi ; then| ; \
- /pkgconfig/s|$${libdir}|$${prefix}/libdata|' \
+ /grep -i linux/s|; fi ; then|; else false; fi ; then|' \
${WRKSRC}/${i}
.endfor
@${REINPLACE_CMD} -e \