components/a2ps/Makefile
author Bill Rushmore <bill.rushmore@oracle.com>
Fri, 07 Aug 2015 13:43:38 -0700
changeset 4746 8e237ffd0a48
parent 4339 6501cf9c29f9
child 5638 b88b6c00208e
permissions -rw-r--r--
20995635 Perl TK needs to be upgraded to work with Perl 5.20 20994112 Perl XML::Parser needs to work with Perl 5.20 20989929 Perl net-ssleay needs to be fixed so it builds with Perl 5.20 20989909 Perl libxml needs to be fixed so it builds with Perl 5.20 20989894 Perl DBI - needs to be fixed so it builds with Perl 5.20 20989877 AUTHEN-PAM needs to be fixed so it builds with Perl 5.20 21195142 OpenSCAP's Makefile needs to be updated to work with Perl 5.20 21216887 Dependencies and references to Perl 5.16 need to be replaced with Perl 5.20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     1
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     3
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     7
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    12
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    18
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    20
#
75
1f81099246e8 7017700 userland legacy actions should apply common defaults
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 64
diff changeset
    21
1f81099246e8 7017700 userland legacy actions should apply common defaults
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 64
diff changeset
    22
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    23
# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    24
#
75
1f81099246e8 7017700 userland legacy actions should apply common defaults
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 64
diff changeset
    25
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    27
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		a2ps
491
cc798e4bc801 7082199 Upgrade a2ps to 4.14
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 181
diff changeset
    29
COMPONENT_VERSION=	4.14
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 515
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/a2ps/
491
cc798e4bc801 7082199 Upgrade a2ps to 4.14
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents: 181
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
    sha256:f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/a2ps/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	utility/a2ps
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1138
diff changeset
    38
TPNO=			4517
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1138
diff changeset
    39
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    43
515
2700e57bf839 7087696 liba2ps.so.1 missing link to libm
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents: 491
diff changeset
    44
# don't use LD_Z_IGNORE: causes linker problems
2700e57bf839 7087696 liba2ps.so.1 missing link to libm
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents: 491
diff changeset
    45
LD_Z_IGNORE=
2700e57bf839 7087696 liba2ps.so.1 missing link to libm
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents: 491
diff changeset
    46
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    47
CONFIGURE_OPTIONS  +=		--enable-shared
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS  +=		--disable-static
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS  +=		--sysconfdir=/etc/gnu
58
d8024c042a00 7011369 gmake complains about fresh userland bits
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 53
diff changeset
    50
CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    51
CONFIGURE_OPTIONS  +=		--with-medium=letter
61
7684fe2a9eb5 7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 59
diff changeset
    52
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    53
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    54
# because viewpathing isn't quite right in this version of a2ps
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    55
COMPONENT_PREP_ACTION = \
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    56
	(cd $(@D) ; ln -s $(SOURCE_DIR)/auxdir/mkinstalldirs)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    57
COMPONENT_POST_CONFIGURE_ACTION = \
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    58
	(cd $(@D)/doc ; \
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    59
	 ln -s $(SOURCE_DIR)/doc/make-authors.pl ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    60
	 ln -s $(SOURCE_DIR)/doc/translators.txt) ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    61
	(cd $(@D)/sheets ; \
177
fd9cb2273c9d 7015392 the build should really fail if the pkg tools fail
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 83
diff changeset
    62
	 for sheet in $(SOURCE_DIR)/sheets/*.ssh ; do \
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    63
	     ln -s $$sheet ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    64
	 done)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    65
1138
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    66
# Enable ASLR for this component
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    67
ASLR_MODE = $(ASLR_ENABLE)
6e1f85fa0151 15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents: 1058
diff changeset
    68
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    69
# common targets
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    70
configure:	$(CONFIGURE_32)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    71
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    72
build:		$(BUILD_32)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    73
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 177
diff changeset
    74
install:	$(INSTALL_32)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    75
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 177
diff changeset
    76
test:		$(TEST_32)
83
9ab0deb97868 7017671 move patch to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 75
diff changeset
    77
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    78
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    79
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    80
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    81
REQUIRED_PACKAGES += developer/gperf
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    82
REQUIRED_PACKAGES += editor/gnu-emacs
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    83
REQUIRED_PACKAGES += runtime/perl-512
4746
8e237ffd0a48 20995635 Perl TK needs to be upgraded to work with Perl 5.20
Bill Rushmore <bill.rushmore@oracle.com>
parents: 4339
diff changeset
    84
REQUIRED_PACKAGES += runtime/perl-520
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    85
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    86
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    87
REQUIRED_PACKAGES += system/library/math