ports/143647: [PATCH] SGML-Parser-OpenSP: fix link problem
Yasuhiro KIMURA
yasu at utahime.org
Sun Feb 7 15:00:12 UTC 2010
>Number: 143647
>Category: ports
>Synopsis: [PATCH] SGML-Parser-OpenSP: fix link problem
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 07 15:00:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Yasuhiro KIMURA
>Release: FreeBSD 8.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD xxxx 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Sat Jan 16 06:19:59 JST 2010 xxxx i386
>Description:
- Fix problem that OpenSP.so is not linked with libosp.so
- Add missing dependency upon p5-Test-Exception.
>How-To-Repeat:
>Fix:
--- patch-p5-SGML-Parser-OpenSP begins here ---
Index: Makefile
===================================================================
RCS file: /usr0/freebsd/cvsroot/ports/textproc/p5-SGML-Parser-OpenSP/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 23 Jan 2010 07:28:10 -0000 1.6
+++ Makefile 7 Feb 2010 14:43:01 -0000
@@ -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 @@
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>
Index: files/patch-Makefile.PL
===================================================================
RCS file: /usr0/freebsd/cvsroot/ports/textproc/p5-SGML-Parser-OpenSP/files/patch-Makefile.PL,v
retrieving revision 1.1
diff -u -r1.1 patch-Makefile.PL
--- files/patch-Makefile.PL 28 Jul 2007 19:31:51 -0000 1.1
+++ files/patch-Makefile.PL 7 Feb 2010 14:34:40 -0000
@@ -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,
--- patch-p5-SGML-Parser-OpenSP ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list