graphics/libgphoto2: Convert custom REINPLACE_CMD to USES=pathfix
There is no functional difference with this change.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user