From 27890a8f4718099427df43db1f42f9f424d56f00 Mon Sep 17 00:00:00 2001 From: flo Date: Sun, 11 Oct 2015 21:51:28 +0000 Subject: Fixes to r399104. Don't use hard coded /usr/local in patch files, and replace the correct variables. Pointy hat to: flo --- converters/p5-XML-WBXML/Makefile | 4 ++-- converters/p5-XML-WBXML/files/patch-Makefile.PL | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'converters') diff --git a/converters/p5-XML-WBXML/Makefile b/converters/p5-XML-WBXML/Makefile index 3ac4f88b64f5..a3898d32a3bf 100644 --- a/converters/p5-XML-WBXML/Makefile +++ b/converters/p5-XML-WBXML/Makefile @@ -3,7 +3,7 @@ PORTNAME= XML-WBXML PORTVERSION= 0.09 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= converters perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -20,7 +20,7 @@ USES= perl5 USE_PERL5= configure post-patch: - @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile.PL + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Makefile.PL post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/XML/WBXML/WBXML.so diff --git a/converters/p5-XML-WBXML/files/patch-Makefile.PL b/converters/p5-XML-WBXML/files/patch-Makefile.PL index ece4876d8a4e..0e9435a435f2 100644 --- a/converters/p5-XML-WBXML/files/patch-Makefile.PL +++ b/converters/p5-XML-WBXML/files/patch-Makefile.PL @@ -8,7 +8,7 @@ + LIBS => ['-L%%LOCALBASE%%/lib -lwbxml2'], # e.g., '-lm' DEFINE => '', # e.g., '-DHAVE_SOMETHING' - INC => '-I.', # e.g., '-I. -I/usr/include/other' -+ INC => '-I. -I%%LOCALBASE%%/include -I/usr/local/include/libwbxml-1.0/wbxml', # e.g., '-I. -I/usr/include/other' ++ INC => '-I. -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/libwbxml-1.0/wbxml', # e.g., '-I. -I/usr/include/other' # Un-comment this if you add C files to link with later: # OBJECT => '$(O_FILES)', # link all the C files too -- cgit