Makefile revision 3817
5253N/A#
5253N/A# CDDL HEADER START
5253N/A#
5253N/A# The contents of this file are subject to the terms of the
5253N/A# Common Development and Distribution License (the "License").
5253N/A# You may not use this file except in compliance with the License.
5253N/A#
5253N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5253N/A# or http://www.opensolaris.org/os/licensing.
5253N/A# See the License for the specific language governing permissions
5253N/A# and limitations under the License.
5253N/A#
5253N/A# When distributing Covered Code, include this CDDL HEADER in each
5253N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5253N/A# If applicable, add the following below this CDDL HEADER, with the
5253N/A# fields enclosed by brackets "[]" replaced with your own identifying
5253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5253N/A#
5253N/A# CDDL HEADER END
5253N/A#
5253N/A
5253N/A#
5343N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
5253N/A#
5253N/A
5254N/Ainclude ../../make-rules/shared-macros.mk
5254N/A
5254N/ACOMPONENT_NAME= popt
5253N/ACOMPONENT_VERSION= 1.7
5253N/ACOMPONENT_PROJECT_URL= http://freecode.com/projects/popt/
5253N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5253N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5786N/ACOMPONENT_ARCHIVE_HASH= \
5786N/A sha256:4e75cb28793f0d44134f71fae53057d5f250805e6268fbd9c9780654b73b0dc1
5786N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/cross-stuff/files/cross-stuff/1.0/$(COMPONENT_ARCHIVE)/download
5253N/ACOMPONENT_BUGDB= library/popt
5525N/A
5253N/ATPNO= 7904
5525N/A
5253N/Ainclude $(WS_MAKE_RULES)/prep.mk
5253N/Ainclude $(WS_MAKE_RULES)/configure.mk
5253N/Ainclude $(WS_MAKE_RULES)/ips.mk
5525N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
5253N/A
5253N/ACOMPONENT_PREP_ACTION = \
5253N/A (cd $(@D) ; \
5253N/A $(TOUCH) config.rpath ; \
5525N/A libtoolize -f ; \
5253N/A aclocal -I . ; \
5525N/A autoconf ; \
5253N/A automake -a -c -f )
5253N/A
5253N/A# Needed to get "gmake test" to work.
5253N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5256N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5256N/A
5256N/A# Add /usr/gnu/bin at the front of $PATH for GNU gettext.
5256N/ACONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH)
5525N/A
5256N/ACONFIGURE_OPTIONS += --disable-nls
5525N/A
5256N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5253N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
5253N/A
5253N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
5253N/A
5253N/A# Master test results are the same for 32-bit and 64-bit, so override
5253N/A# here, rather than create multiple identical master files.
5253N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5578N/A
5578N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
5578N/A
5578N/A# common targets
5578N/Aconfigure: $(CONFIGURE_32_and_64)
5578N/A
5578N/Abuild: $(BUILD_32_and_64)
5578N/A
5253N/Ainstall: $(INSTALL_32_and_64)
5253N/A
5253N/Atest: $(TEST_32_and_64)
5253N/A
5784N/AREQUIRED_PACKAGES += system/library
5253N/A