diff options
author | sylvio <sylvio@FreeBSD.org> | 2010-03-08 07:18:28 +0800 |
---|---|---|
committer | sylvio <sylvio@FreeBSD.org> | 2010-03-08 07:18:28 +0800 |
commit | 8092c06f52c9d3490dc69e6bf96b8905b3a5bf95 (patch) | |
tree | 0b03cb2e6d84746be11a4c9244abb7b88c90bd79 | |
parent | dfd21789f7da6a6b488d7090762bf3e863ec7a86 (diff) | |
download | freebsd-ports-gnome-8092c06f52c9d3490dc69e6bf96b8905b3a5bf95.tar.gz freebsd-ports-gnome-8092c06f52c9d3490dc69e6bf96b8905b3a5bf95.tar.zst freebsd-ports-gnome-8092c06f52c9d3490dc69e6bf96b8905b3a5bf95.zip |
- Fix problem tath OpenSP.so is not linked with libosp.so
- Add missing dependency upon p5-Test-Exception.
PR: ports143647
Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
Approved by: itetcu (mentor)
Feature safe: yes
-rw-r--r-- | textproc/p5-SGML-Parser-OpenSP/Makefile | 11 | ||||
-rw-r--r-- | textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL | 13 |
2 files changed, 19 insertions, 5 deletions
diff --git a/textproc/p5-SGML-Parser-OpenSP/Makefile b/textproc/p5-SGML-Parser-OpenSP/Makefile index 606c2df9a632..a926ae8e421c 100644 --- a/textproc/p5-SGML-Parser-OpenSP/Makefile +++ b/textproc/p5-SGML-Parser-OpenSP/Makefile @@ -7,7 +7,7 @@ PORTNAME= SGML-Parser-OpenSP PORTVERSION= 0.994 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -16,14 +16,19 @@ MAINTAINER= cyberbotx@cyberbotx.com COMMENT= Parse SGML documents using OpenSP BUILD_DEPENDS= onsgmls:${PORTSDIR}/textproc/opensp \ - p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor + p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \ + p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception RUN_DEPENDS= ${BUILD_DEPENDS} USE_DOS2UNIX= yes PERL_CONFIGURE= yes CC= ${CXX} -CONFIGURE_ARGS+="INC=-I${LOCALBASE}/include -I${LOCALBASE}/lib" +CONFIGURE_ARGS+="INC=-I${LOCALBASE}/include" MAN3= SGML::Parser::OpenSP.3 SGML::Parser::OpenSP::Tools.3 +post-patch: + (cd ${WRKSRC} ; \ + ${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|g" Makefile.PL ) + .include <bsd.port.mk> diff --git a/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL b/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL index 7811b2b55c16..202133ac48b1 100644 --- a/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL +++ b/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL @@ -1,5 +1,14 @@ ---- Makefile.PL.orig 2007-07-29 03:05:27.000000000 +0800 -+++ Makefile.PL 2007-07-29 03:06:38.000000000 +0800 +--- Makefile.PL.orig 2010-02-07 23:33:39.000000000 +0900 ++++ Makefile.PL 2010-02-07 23:34:03.000000000 +0900 +@@ -15,7 +15,7 @@ + # assume some compatible Linux + $options{LD} = "g++"; + $options{CC} = "g++"; +- $options{LIBS} = "-lstdc++ -losp"; ++ $options{LIBS} = "-L%%LOCALBASE%%/lib -lstdc++ -losp"; + } + + WriteMakefile( @@ -26,6 +26,10 @@ Test::Exception => 0, File::Temp => 0, |