components/gd2/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
#
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
#
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
#
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
#
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
#
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    21
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
#
7626
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    25
BUILD_BITS= 64_and_32
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    27
1048
e82fa02a4d16 15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    28
COMPONENT_NAME=		gd2
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=      2.0.35
1048
e82fa02a4d16 15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    30
COMPONENT_SRC_NAME=	gd
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=  http://www.libgd.org/
135
5c6feb0253fa 7028115 userland-fetch fails to validate gd2 archive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 130
diff changeset
    32
# this is the hash of the payload because it appears to be re-compressed
5c6feb0253fa 7028115 userland-fetch fails to validate gd2 archive
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 130
diff changeset
    33
# periodically causing it to have a new hash value.
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 708
diff changeset
    34
COMPONENT_ARCHIVE_HASH= \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 708
diff changeset
    35
    sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    36
COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1048
diff changeset
    37
COMPONENT_BUGDB=	library/gd2
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7626
diff changeset
    38
COMPONENT_ANITYA_ID=	880
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    39
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1664
diff changeset
    40
TPNO=			8786
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1664
diff changeset
    41
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    43
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    44
PATCH_LEVEL = 0
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    45
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    46
CFLAGS += $(CPP_LARGEFILES)
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    47
CPPFLAGS += $(CPP_LARGEFILES)
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    48
3536
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    49
# Needed for "gmake test" to work.
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    50
COMPONENT_PRE_CONFIGURE_ACTION = \
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    51
	($(CLONEY) $(SOURCE_DIR) $(@D))
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    52
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    53
CONFIGURE_OPTIONS  +=           --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  +=           --disable-static
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS  +=           --disable-rpath
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    56
CONFIGURE_OPTIONS  +=           --with-x
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    57
CONFIGURE_OPTIONS  +=           --with-pic
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    58
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    59
COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
130
5e67396e42dc 7008376 CVE-2009-3546 Upgrade GD
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    60
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    61
# We only deliver 64-bit binaries and in /usr/bin.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    62
COMPONENT_POST_INSTALL_ACTION.32 += \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    63
	$(GSED) -i -e 's|$(USRBINDIR)/$(MACH32)|$(USRBINDIR)|' \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    64
		$(PROTOUSRBINDIR)/$(MACH32)/gdlib-config;
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    65
3536
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    66
COMPONENT_TEST_CMD = \
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    67
	cmake -DBUILD_TEST=1 .; \
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    68
	(cd $(@D)/tests; gmake); \
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    69
	ctest .
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    70
COMPONENT_TEST_TARGETS =
5054
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    71
COMPONENT_TEST_MASTER =	$(COMPONENT_TEST_RESULTS_DIR)/results-all.master
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    72
COMPONENT_TEST_TRANSFORMS += \
7626
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    73
	'-e "/Performing/d" ' \
5054
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    74
	'-e "s|\(^.*32 Test.*Passed\).*|\1|" ' \
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    75
	'-e "s|\(^.*32 Test.*Failed\).*|\1|" ' \
7626
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    76
	'-n ' \
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    77
	'-e "/Passed/p" ' \
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    78
	'-e "/Failed/p" ' \
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    79
	'-e "/passed/p" ' \
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    80
	'-e "/FAILED/p" ' \
a1bbaa35d1ba 25475702 problem in LIBRARY/GD2
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    81
	'-e "/Errors/p" '
3536
9d36b040ae85 20193442 gd2 should hook up its tests
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    82
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    83
REQUIRED_PACKAGES += image/library/libjpeg
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    84
REQUIRED_PACKAGES += image/library/libpng
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    85
REQUIRED_PACKAGES += library/zlib
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    86
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    87
REQUIRED_PACKAGES += system/library/fontconfig
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    88
REQUIRED_PACKAGES += system/library/freetype-2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    89
REQUIRED_PACKAGES += system/library/math
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    90
REQUIRED_PACKAGES += x11/library/libx11
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3536
diff changeset
    91
REQUIRED_PACKAGES += x11/library/libxpm