Makefile revision 3536
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# CDDL HEADER START
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# The contents of this file are subject to the terms of the
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# Common Development and Distribution License (the "License").
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# You may not use this file except in compliance with the License.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# or http://www.opensolaris.org/os/licensing.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# See the License for the specific language governing permissions
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# and limitations under the License.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# When distributing Covered Code, include this CDDL HEADER in each
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# If applicable, add the following below this CDDL HEADER, with the
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# CDDL HEADER END
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
c803787146cadcb2d7e10cbf4491f3be513dfa1aMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graffinclude ../../make-rules/shared-macros.mk
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_NAME= gd2
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_VERSION= 2.0.35
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_SRC_NAME= gd
294802790e8030f1c19b6c2c5d5204b6f464c729Michael GraffCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
294802790e8030f1c19b6c2c5d5204b6f464c729Michael GraffCOMPONENT_PROJECT_URL= http://www.libgd.org/
294802790e8030f1c19b6c2c5d5204b6f464c729Michael GraffCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
294802790e8030f1c19b6c2c5d5204b6f464c729Michael Graff# this is the hash of the payload because it appears to be re-compressed
294802790e8030f1c19b6c2c5d5204b6f464c729Michael Graff# periodically causing it to have a new hash value.
66bd3b3c6b171271c705b897823dcdcf29464698Michael GraffCOMPONENT_ARCHIVE_HASH= \
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff sha256:44bd0819b64a2341fb800abbe99f23c7f6388327c71e1f5bd5ed7874a8cc0e49
64828244e04e86dfa40f0a4f0c05f27923da499dMichael GraffCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/$(COMPONENT_ARCHIVE)
64828244e04e86dfa40f0a4f0c05f27923da499dMichael GraffCOMPONENT_BUGDB= library/gd2
64828244e04e86dfa40f0a4f0c05f27923da499dMichael Graff
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael GraffTPNO= 8786
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff
f181f94ec8da8b1dbcc6353e8be965ea4a5ea282Michael Graffinclude ../../make-rules/prep.mk
21e7034ec046105c00a0dab86c83732e2e77ad99Michael Graffinclude ../../make-rules/configure.mk
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graffinclude ../../make-rules/ips.mk
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graffinclude ../../make-rules/lint-libraries.mk
3024dbecbac365171bc6de0f3fa04951d6558be3Michael Graff
f181f94ec8da8b1dbcc6353e8be965ea4a5ea282Michael GraffPKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
3ac63b472022ff92691d1fe69ac715a729671965Michael GraffPKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
440be4c866f6935ac069db79a414304507a664c2Michael Graff
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael GraffPATCH_LEVEL = 0
fe14eafefa91fada7cea0a55b09196c01477406cBob Halley
e45d323a2a0f4ca08d4b139546e60a5fa7bd3f0cMichael GraffCFLAGS += $(CPP_LARGEFILES)
29f28fe573d4b3b318b3b026d567c1eb86738015Michael GraffCPPFLAGS += $(CPP_LARGEFILES)
86944a4c8002e80ae9b6eb5a5e29b797879be45fMichael Graff
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael Graff# Needed for "gmake test" to work.
21e7034ec046105c00a0dab86c83732e2e77ad99Michael GraffCOMPONENT_PRE_CONFIGURE_ACTION = \
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff ($(CLONEY) $(SOURCE_DIR) $(@D))
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael GraffCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael GraffCONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael GraffCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
439c0011e642fb1d26011116144af698125262dbMichael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/gd2
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCONFIGURE_OPTIONS += --disable-static
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCONFIGURE_OPTIONS += --disable-rpath
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCONFIGURE_OPTIONS += --with-x
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCONFIGURE_OPTIONS += --with-pic
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -if)
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffCOMPONENT_TEST_CMD = \
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff cmake -DBUILD_TEST=1 .; \
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff (cd $(@D)/tests; gmake); \
ff9bb3fc5453bbf310b67c560fbf04a5c0fb60daMichael Graff ctest .
bb143613cf26e0f27dfd9caf1a7336065d064b26Michael GraffCOMPONENT_TEST_TARGETS =
fe14eafefa91fada7cea0a55b09196c01477406cBob Halley
fe14eafefa91fada7cea0a55b09196c01477406cBob HalleyASLR_MODE = $(ASLR_ENABLE)
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graffconfigure: $(CONFIGURE_32_and_64)
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halleybuild: $(BUILD_32_and_64)
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halleyinstall: $(INSTALL_32_and_64)
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Grafftest: $(TEST_32_and_64)
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graff
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael GraffBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graff
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graffinclude ../../make-rules/depend.mk
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff