1N/A#
1N/A# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A#
1N/A# Makefile.PL for ::Project
1N/A#
1N/A
1N/Arequire 5.8.4;
1N/Ause Config;
1N/Ause strict;
1N/Ause warnings;
1N/Ause ExtUtils::MakeMaker;
1N/A
1N/A# #defines.
1N/Amy @defines = ( DEFINE => exists($ENV{RELEASE_BUILD}) ? '-DNDEBUG' : '' );
1N/A
1N/A# List of POD pages to install.
1N/Amy @man3pods = ( MAN3PODS => {} );
1N/A
1N/A#
1N/A# If not building as part of ON.
1N/A#
1N/Aif (! exists($ENV{CODEMGR_WS})) {
1N/A
1N/A #
1N/A # Suppress the setting of LD_RUN_PATH. The ON build environment
1N/A # contains a modified MakeMaker that does this automatically, so we
1N/A # only need to do this if we are building outside of ON.
1N/A #
1N/A package MY;
1N/A no warnings qw(once);
1N/A
1N/A # Override const_loadlibs to remove LD_RUN_PATH cruft.
1N/A *const_loadlibs = sub
1N/A {
1N/A my $self = shift(@_);
1N/A delete($self->{LD_RUN_PATH});
1N/A return($self->SUPER::const_loadlibs(@_));
1N/A };
1N/A
1N/A # Override dynamic_lib to get rid of LD_RUN_PATH cruft.
1N/A *dynamic_lib = sub
1N/A {
1N/A my $self = shift(@_);
1N/A my $txt = $self->SUPER::dynamic_lib(@_);
1N/A $txt =~ s/LD_RUN_PATH=\S*\s*//;
1N/A return($txt);
1N/A };
1N/A
1N/A # Turn off debugging.
1N/A @defines = ();
1N/A
1N/A #
1N/A # Install the POD documentation for non-ON builds.
1N/A #
1N/A my $man3pfx = '$(INST_MAN3DIR)/Sun::Solaris::Project';
1N/A @man3pods = (
1N/A MAN3PODS => { 'pod/Project.pod' => $man3pfx . '.$(MAN3EXT)' }
1N/A );
1N/A}
1N/A
1N/AWriteMakefile(
1N/A NAME => 'Sun::Solaris::Project',
1N/A VERSION_FROM => 'Project.pm',
1N/A LIBS => '-lproject -lgen',
1N/A CCFLAGS => $Config{'ccflags'} . ' -erroff=E_ATTRIBUTE_UNKNOWN',
1N/A @defines,
1N/A @man3pods,
1N/A);