-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.PL
73 lines (62 loc) · 2.92 KB
/
Makefile.PL
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#use 5.014002;
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile(
'TYPEMAPS' => []
,'NAME' => 'CBitcoin'
,'LIBS' => [ ' -lcrypto -lccoin -lgmp ' ]
,'VERSION' => '0.1'
,'AUTHOR' => q{Joel DeJesus (Work Email) <[email protected]>}
,'VERSION_FROM' => 'lib/CBitcoin.pm'
#,'ABSTRACT_FROM' => 'lib/CBitcoin.pm'
#,'MAGICXS' => 1
,'OBJECT' => q/$(O_FILES)/
#,'OBJECT' => 'lib/CBitcoin/CBHD.so'
#, 'XS' => {
# "lib/CBitcoin/CBHD.xs" => "lib/CBitcoin/CBHD.c",
#}
#,'MYEXTLIB' => '/usr/lib/libcbitcoin.so.1'
,($ExtUtils::MakeMaker::VERSION >= 6.3002
? ('LICENSE'=> 'gpl_2')
: ())
,'PL_FILES' => {}
,'PREREQ_PM' => {
'Test::More' => 0,
'BerkeleyDB' => 0
}
,'EXE_FILES' => [
'scripts/cbitcoin'
]
#,'LDDLFLAGS' => ' -fstack-protector '
#,'LDFLAGS' => ' -fstack-protector '
,'MAKEFILE_OLD' => ''
,'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }
#,'clean' => { FILES => 'libcbitcoin-perl*' }
,'clean' => { FILES => 't/db1' }
);
# Remove the Makefile dependency. Causes problems on a few systems.
sub MY::makefile {
return qq{
all ::
(cd blib/arch/auto/CBitcoin/ && ( [ -d CBHD ] || mkdir CBHD ) && ([ -e CBHD/CBHD.so ] || ln -s ../CBitcoin.so CBHD/CBHD.so ) )
(cd blib/arch/auto/CBitcoin/ && ( [ -d Script ] || mkdir Script ) && ( [ -e Script/Script.so ] || ln -s ../CBitcoin.so Script/Script.so ) )
(cd blib/arch/auto/CBitcoin/ && ( [ -d TransactionInput ] || mkdir TransactionInput ) && ( [ -e TransactionInput/TransactionInput.so ] || ln -s ../CBitcoin.so TransactionInput/TransactionInput.so ) )
(cd blib/arch/auto/CBitcoin/ && ( [ -d TransactionOutput ] || mkdir TransactionOutput ) && ( [ -e TransactionOutput/TransactionOutput.so ] || ln -s ../CBitcoin.so TransactionOutput/TransactionOutput.so ) )
(cd blib/arch/auto/CBitcoin/ && ( [ -d Transaction ] || mkdir Transaction ) && ( [ -e Transaction/Transaction.so ] || ln -s ../CBitcoin.so Transaction/Transaction.so ) )
(cd blib/arch/auto/CBitcoin/ && ( [ -d Block ] || mkdir Block ) && ( [ -e Block/Block.so ] || ln -s ../CBitcoin.so Block/Block.so ) )
};
}
__END__
Copyright (C) 2015 Joel De Jesus
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.