File: Makefile.PL

package info (click to toggle)
libbssolv-perl 0.02-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 204 kB
  • ctags: 2
  • sloc: makefile: 11; perl: 9
file content (21 lines) | stat: -rw-r--r-- 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use ExtUtils::MakeMaker;

my $solvprefix = '/usr';

my $inc = "-I$solvprefix/include/`dpkg-architecture -qDEB_BUILD_MULTIARCH`/solv";
my $lib = '';

if (grep {$_ eq '--bundled-libsolv'} @ARGV) {
  my $builddir = 'libsolv';
  $inc = "-I$builddir/src -I$builddir/ext";
  $lib = "-L$builddir/src -L$builddir/ext";
}

$lib = ($lib ? "$lib " : '') . '-lsolvext -lsolv -lz -llzma';

WriteMakefile(
    NAME         => 'BSSolv',
    VERSION_FROM => 'BSSolv.pm',
    INC          => $inc,
    LIBS         => [ $lib ],
)