mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
Make FreeBSD patches to be port's options and remove separated port. Rename patches to more sane names. Add devel/subversion16 port, for people, who need old version. Mark ports, which could not be built with subversion 1.7.x, as conflicting with new subversion.
42 lines
1.7 KiB
Perl
42 lines
1.7 KiB
Perl
--- subversion/bindings/swig/perl/native/Makefile.PL.in.orig 2010-11-24 23:42:16.000000000 +0300
|
|
+++ subversion/bindings/swig/perl/native/Makefile.PL.in 2011-09-19 12:52:25.000000000 +0400
|
|
@@ -1,4 +1,5 @@
|
|
-#!/usr/bin/perl
|
|
+#!/usr/bin/perl -w
|
|
+use strict;
|
|
use ExtUtils::MakeMaker;
|
|
use Config;
|
|
use Cwd 'abs_path';
|
|
@@ -15,6 +16,11 @@
|
|
my $swig_srcdir = "${svnlib_srcdir}/bindings/swig";
|
|
my $swig_builddir = "${svnlib_builddir}/bindings/swig";
|
|
|
|
+my $top_builddir = '../../../../..';
|
|
+my $top_srcdir = '@top_srcdir@';
|
|
+my $svnlib_srcdir = "${top_srcdir}/subversion";
|
|
+my $swig_srcdir = "${svnlib_srcdir}/bindings/swig";
|
|
+
|
|
my @modules = qw/client delta fs ra repos wc/;
|
|
my @ldpaths = ("$swig_builddir/perl/libsvn_swig_perl/.libs",
|
|
map {"$svnlib_builddir/libsvn_$_/.libs"} (@modules, qw/diff subr
|
|
@@ -50,10 +56,9 @@
|
|
" -I$svnlib_builddir",
|
|
" -I$swig_srcdir -g"),
|
|
OBJECT => q/$(O_FILES)/,
|
|
- LIBS => [join(' ', $apr_ldflags,
|
|
+ LIBS => [join(' ', $ENV{'LDFLAGS'}, $apr_ldflags,
|
|
(map {$_ = abs_path($_); "-L$_"} @ldpaths),
|
|
- @ldmodules, '-lsvn_swig_perl-1',
|
|
- `$swig -perl -ldflags`)],
|
|
+ @ldmodules, '-lsvn_swig_perl-1')],
|
|
test => { TESTS => "$swig_srcdir/perl/native/t/*.t" }
|
|
);
|
|
|
|
@@ -68,6 +73,7 @@
|
|
"\$(INST_LIBDIR)/$_.pm") }
|
|
map { perlish $_ }
|
|
('base', 'core', @modules)},
|
|
+ LDFROM => '$(O_FILES) '."../libsvn_swig_perl/.libs/libsvn_swig_perl-1.a",
|
|
MAN3PODS => {map { ("$swig_srcdir/perl/native/$_.pm" =>
|
|
"\$(INST_MAN3DIR)/SVN::$_.\$(MAN3EXT)") }
|
|
map { perlish $_ }
|