1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
PR:		117694
Submitted by:	leeym
This commit is contained in:
Dmitry Sivachenko 2007-12-12 14:17:09 +00:00
parent 5f7109e9ef
commit 00038b0f95
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=203309
3 changed files with 11 additions and 22 deletions

View File

@ -19,10 +19,7 @@ LIB_DEPENDS= yaz.2:${PORTSDIR}/net/yaz
RUN_DEPENDS= ${SITE_PERL}/MARC/Record.pm:${PORTSDIR}/textproc/p5-MARC-Record \
${SITE_PERL}/${PERL_ARCH}/Event.pm:${PORTSDIR}/devel/p5-Event
BROKEN= Does not build
PERL_CONFIGURE= yes
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAN3= Net::Z3950::ResultSet.3 Net::Z3950::Manager.3 \
Net::Z3950::Tutorial.3 Net::Z3950::Record.3 \

View File

@ -0,0 +1,11 @@
--- Makefile.PL.orig 2007-10-30 15:18:30.000000000 -0700
+++ Makefile.PL 2007-10-30 15:18:48.000000000 -0700
@@ -6,7 +6,7 @@
# my $yazconf = "/home/me/stuff/yaz-2.0.4/yaz-config";
my $yazconf = "yaz-config";
-my $yazinc = `$yazconf --cflags`;
+my $yazinc = `$yazconf --cflags | sed 's/ -pthread / /'`;
my $yazlibs = `$yazconf --libs`;
if (!$yazinc || !$yazlibs) {
die "ERROR: Unable to call script 'yaz-config': is YAZ installed?";

View File

@ -1,19 +0,0 @@
--- yazwrap/Makefile.PL.orig Tue May 6 17:59:59 2003
+++ yazwrap/Makefile.PL Fri Sep 19 10:57:34 2003
@@ -1,8 +1,15 @@
+my $yazinc = `yaz-config --cflags`;
+my $yazlibs = `yaz-config --libs`;
+if (!$yazinc || !$yazlibs) {
+ die "ERROR: Unable to call script 'yaz-config': is YAZ installed?";
+}
+
use ExtUtils::MakeMaker;
-$Verbose = 1;
WriteMakefile(
'NAME' => 'Net::Z3950::yazwrap',
+ 'LIBS' => [ $yazlibs ],
+ 'INC' => $yazinc,
'SKIP' => [qw(all static dynamic test)],
'clean' => {'FILES' => 'libyazwrap$(LIB_EXT)'},
'OPTIMIZE' => '-g', ### temporary