blob: 597c9a79c10301ead335a07cb13d25ae5b25b412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
scripts/CMakeLists.txt | 2 +-
scripts/perl/Makefile.PL | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index bf2527b..3c45111 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -223,7 +223,7 @@ if (DO_PERL_BINDINGS)
COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/Makefile.PL ${openbabel_BINARY_DIR}/scripts/perl
COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm ${openbabel_BINARY_DIR}/scripts/perl
COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp ${openbabel_BINARY_DIR}/scripts/perl
- COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc SRC_DIR=${openbabel_SOURCE_DIR} OBJ_DIR=${openbabel_BINARY_DIR} ${PERL_EXECUTABLE} ${openbabel_BINARY_DIR}/scripts/perl/Makefile.PL ${PERL_PREFIX_TEXT}
+ COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc SRC_DIR=${openbabel_SOURCE_DIR} OBJ_DIR=${openbabel_BINARY_DIR} ${PERL_EXECUTABLE} ${openbabel_BINARY_DIR}/scripts/perl/Makefile.PL INSTALLDIRS=vendor ${PERL_PREFIX_TEXT}
COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc make
DEPENDS ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp
WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl
diff --git a/scripts/perl/Makefile.PL b/scripts/perl/Makefile.PL
index a3a2116..44ad27d 100644
--- a/scripts/perl/Makefile.PL
+++ b/scripts/perl/Makefile.PL
@@ -32,5 +32,6 @@ WriteMakefile(
'CC' => $CC,
'LD' => '$(CC)',
'INC' => '-I../../include -I'.$cmakesrcdir.'/include',
+ 'DESTDIR' => @ENV{"D"},
'OBJECT' => 'openbabel-perl.o'
);
|