1 --- openssl-1.1.1d/Configurations/unix-Makefile.tmpl.orig 2019-09-27 15:57:40.580222104 +0200
2 +++ openssl-1.1.1d/Configurations/unix-Makefile.tmpl 2019-09-27 16:03:43.774921176 +0200
5 # Do not edit these manually. Use Configure with --prefix or --openssldir
6 # to change this! Short explanation in the top comment in Configure
7 -INSTALLTOP_dev={- # $prefix is used in the OPENSSLDIR perl snippet
9 - use File::Spec::Win32;
10 - my $prefix_default = "$mingw_installroot/OpenSSL";
12 - File::Spec::Win32->canonpath($config{prefix}
13 - || $prefix_default);
14 - our ($prefix_dev, $prefix_dir, $prefix_file) =
15 - File::Spec::Win32->splitpath($prefix, 1);
16 - $prefix =~ s|\\|/|g;
17 - $prefix_dir =~ s|\\|/|g;
19 -INSTALLTOP_dir={- my $x = File::Spec::Win32->canonpath($prefix_dir);
23 - # The logic here is that if no --openssldir was given,
24 - # OPENSSLDIR will get the value "$mingw_commonroot/SSL".
25 - # If --openssldir was given and the value is an absolute
26 - # path, OPENSSLDIR will get its value without change.
27 - # If the value from --openssldir is a relative path,
28 - # OPENSSLDIR will get $prefix with the --openssldir
29 - # value appended as a subdirectory.
31 - use File::Spec::Win32;
33 - $config{openssldir} ?
34 - (File::Spec::Win32->file_name_is_absolute($config{openssldir}) ?
35 - File::Spec::Win32->canonpath($config{openssldir})
36 - : File::Spec::Win32->catdir($prefix, $config{openssldir}))
37 - : File::Spec::Win32->canonpath("$mingw_commonroot/SSL");
38 - our ($openssldir_dev, $openssldir_dir, $openssldir_file) =
39 - File::Spec::Win32->splitpath($openssldir, 1);
40 - $openssldir =~ s|\\|/|g;
41 - $openssldir_dir =~ s|\\|/|g;
43 -OPENSSLDIR_dir={- my $x = File::Spec::Win32->canonpath($openssldir_dir);
46 -LIBDIR={- our $libdir = $config{libdir} || "lib";
47 - File::Spec::Win32->file_name_is_absolute($libdir) ? "" : $libdir -}
48 -ENGINESDIR_dev={- use File::Spec::Win32;
50 - File::Spec::Win32->catdir($prefix,$libdir,
51 - "engines-$sover_dirname");
52 - our ($enginesdir_dev, $enginesdir_dir, $enginesdir_file) =
53 - File::Spec::Win32->splitpath($enginesdir, 1);
54 - $enginesdir =~ s|\\|/|g;
55 - $enginesdir_dir =~ s|\\|/|g;
57 -ENGINESDIR_dir={- my $x = File::Spec::Win32->canonpath($enginesdir_dir);
60 -# In a Windows environment, $(DESTDIR) is harder to contatenate with other
61 -# directory variables, because both may contain devices. What we do here is
62 -# to adapt INSTALLTOP, OPENSSLDIR and ENGINESDIR depending on if $(DESTDIR)
63 -# has a value or not, to ensure that concatenation will always work further
65 -ifneq "$(DESTDIR)" ""
66 -INSTALLTOP=$(INSTALLTOP_dir)
67 -OPENSSLDIR=$(OPENSSLDIR_dir)
68 -ENGINESDIR=$(ENGINESDIR_dir)
70 -INSTALLTOP=$(INSTALLTOP_dev)$(INSTALLTOP_dir)
71 -OPENSSLDIR=$(OPENSSLDIR_dev)$(OPENSSLDIR_dir)
72 -ENGINESDIR=$(ENGINESDIR_dev)$(ENGINESDIR_dir)
75 -# $(libdir) is chosen to be compatible with the GNU coding standards
76 -libdir={- File::Spec::Win32->file_name_is_absolute($libdir)
77 - ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -}
78 {- output_on() if $config{target} !~ /^mingw/; "" -}
80 MANDIR=$(INSTALLTOP)/share/man