~ubuntu-branches/debian/stretch/openbabel/stretch

« back to all changes in this revision

Viewing changes to scripts/perl/Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-07-22 23:54:58 UTC
  • mfrom: (3.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080722235458-3o606czluviz4akx
Tags: 2.2.0-2
* Upload to unstable.
* debian/control: Updated descriptions.
* debian/patches/gauss_cube_format.patch: New patch, makes the 
  gaussian cube format available again.
* debian/rules (DEB_DH_MAKESHLIBS_ARGS_libopenbabel3): Removed.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Likewise.
* debian/libopenbabel3.install: Adjust formats directory to single 
  version hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
use ExtUtils::MakeMaker;
2
2
 
 
3
use lib 'inc';
 
4
use Devel::CheckLib;
 
5
 
 
6
check_lib_or_exit( lib => 'openbabel' , libpath =>
 
7
@ENV{"LD_LIBRARY_PATH"});
 
8
 
3
9
$CC = 'g++';
4
10
$srcdir = '../../src';
5
11
 
6
12
# check if we're compiling in the source directory
7
 
$ldfrom = '$(OBJECT) -lopenbabel -lz';
 
13
# check first for the static, then change to dynamic if available
8
14
$ldfrom = "\$(OBJECT) $srcdir/.libs/libopenbabel.a -lz"
9
15
    if (-r "$srcdir/.libs/libopenbabel.a") and (-s _) and (-B _);
 
16
$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz"
 
17
    if (-r "$srcdir/.libs/libopenbabel.dylib") and (-s _) and (-B _);
 
18
$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz"
 
19
    if (-r "$srcdir/.libs/libopenbabel.so") and (-s _) and (-B _);
10
20
 
11
21
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
12
22
# the contents of the Makefile that is written.
13
23
WriteMakefile(
14
24
    'NAME'      =>  'Chemistry::OpenBabel',
15
25
    'AUTHOR'    =>  'Geoffrey Hutchison <openbabel-scripting@lists.sourceforge.net>',
16
 
    'VERSION'   => '1.1.0',
 
26
    'VERSION'   => '1.3.0',
17
27
    'LDFROM'    => $ldfrom,
18
28
    'CC'        => $CC,
19
 
    'LD'        => '$(CC)',
20
 
    'INC'       => '-I../../src',
 
29
    'LD'        => '$(CC) -shared',
 
30
    'INC'       => '-I../../include',
21
31
    'OBJECT'    => 'openbabel_perl.o'
22
32
);