1*13124SAlexander.Kolbasov@Sun.COM# 2*13124SAlexander.Kolbasov@Sun.COM# CDDL HEADER START 3*13124SAlexander.Kolbasov@Sun.COM# 4*13124SAlexander.Kolbasov@Sun.COM# The contents of this file are subject to the terms of the 5*13124SAlexander.Kolbasov@Sun.COM# Common Development and Distribution License (the "License"). 6*13124SAlexander.Kolbasov@Sun.COM# You may not use this file except in compliance with the License. 7*13124SAlexander.Kolbasov@Sun.COM# 8*13124SAlexander.Kolbasov@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*13124SAlexander.Kolbasov@Sun.COM# or http://www.opensolaris.org/os/licensing. 10*13124SAlexander.Kolbasov@Sun.COM# See the License for the specific language governing permissions 11*13124SAlexander.Kolbasov@Sun.COM# and limitations under the License. 12*13124SAlexander.Kolbasov@Sun.COM# 13*13124SAlexander.Kolbasov@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 14*13124SAlexander.Kolbasov@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*13124SAlexander.Kolbasov@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 16*13124SAlexander.Kolbasov@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 17*13124SAlexander.Kolbasov@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 18*13124SAlexander.Kolbasov@Sun.COM# 19*13124SAlexander.Kolbasov@Sun.COM# CDDL HEADER END 20*13124SAlexander.Kolbasov@Sun.COM# 21*13124SAlexander.Kolbasov@Sun.COM 22*13124SAlexander.Kolbasov@Sun.COM# 23*13124SAlexander.Kolbasov@Sun.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24*13124SAlexander.Kolbasov@Sun.COM# 25*13124SAlexander.Kolbasov@Sun.COM 26*13124SAlexander.Kolbasov@Sun.COMrequire 5.8.4; 27*13124SAlexander.Kolbasov@Sun.COMuse strict; 28*13124SAlexander.Kolbasov@Sun.COMuse warnings; 29*13124SAlexander.Kolbasov@Sun.COMuse ExtUtils::MakeMaker; 30*13124SAlexander.Kolbasov@Sun.COM 31*13124SAlexander.Kolbasov@Sun.COM# #defines. 32*13124SAlexander.Kolbasov@Sun.COMmy @defines = ( DEFINE => exists($ENV{RELEASE_BUILD}) ? '-DNDEBUG' : '' ); 33*13124SAlexander.Kolbasov@Sun.COM 34*13124SAlexander.Kolbasov@Sun.COM# List of POD pages to install. 35*13124SAlexander.Kolbasov@Sun.COMmy @man3pods = ( MAN3PODS => {} ); 36*13124SAlexander.Kolbasov@Sun.COM 37*13124SAlexander.Kolbasov@Sun.COM 38*13124SAlexander.Kolbasov@Sun.COM# 39*13124SAlexander.Kolbasov@Sun.COM# If not building as part of ON. 40*13124SAlexander.Kolbasov@Sun.COM# 41*13124SAlexander.Kolbasov@Sun.COMif (! exists($ENV{CODEMGR_WS})) { 42*13124SAlexander.Kolbasov@Sun.COM 43*13124SAlexander.Kolbasov@Sun.COM # 44*13124SAlexander.Kolbasov@Sun.COM # Suppress the setting of LD_RUN_PATH. The ON build environment 45*13124SAlexander.Kolbasov@Sun.COM # contains a modified MakeMaker that does this automatically, so we 46*13124SAlexander.Kolbasov@Sun.COM # only need to do this if we are building outside of ON. 47*13124SAlexander.Kolbasov@Sun.COM # 48*13124SAlexander.Kolbasov@Sun.COM package MY; 49*13124SAlexander.Kolbasov@Sun.COM no warnings qw(once); 50*13124SAlexander.Kolbasov@Sun.COM 51*13124SAlexander.Kolbasov@Sun.COM # 52*13124SAlexander.Kolbasov@Sun.COM # Install the POD documentation for non-ON builds. 53*13124SAlexander.Kolbasov@Sun.COM # 54*13124SAlexander.Kolbasov@Sun.COM my $man3pfx = '$(INST_MAN3DIR)/Sun::Solaris::Pg'; 55*13124SAlexander.Kolbasov@Sun.COM @man3pods = ( 56*13124SAlexander.Kolbasov@Sun.COM MAN3PODS => { 'pod/Pg.pod' => $man3pfx . '.$(MAN3EXT)' } 57*13124SAlexander.Kolbasov@Sun.COM ); 58*13124SAlexander.Kolbasov@Sun.COM} 59*13124SAlexander.Kolbasov@Sun.COM 60*13124SAlexander.Kolbasov@Sun.COMWriteMakefile( 61*13124SAlexander.Kolbasov@Sun.COM NAME => 'Sun::Solaris::Pg', 62*13124SAlexander.Kolbasov@Sun.COM VERSION_FROM => 'Pg.pm', 63*13124SAlexander.Kolbasov@Sun.COM @man3pods, 64*13124SAlexander.Kolbasov@Sun.COM); 65