Makefile revision 1938
6131N/A#
6131N/A# CDDL HEADER START
6131N/A#
6131N/A# The contents of this file are subject to the terms of the
6131N/A# Common Development and Distribution License (the "License").
6131N/A# You may not use this file except in compliance with the License.
6131N/A#
6131N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6131N/A# or http://www.opensolaris.org/os/licensing.
6131N/A# See the License for the specific language governing permissions
6131N/A# and limitations under the License.
6131N/A#
6131N/A# When distributing Covered Code, include this CDDL HEADER in each
6131N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6131N/A# If applicable, add the following below this CDDL HEADER, with the
6131N/A# fields enclosed by brackets "[]" replaced with your own identifying
6131N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6131N/A#
6131N/A# CDDL HEADER END
6131N/A#
6131N/A
6131N/A#
6131N/A# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
6131N/A#
6131N/A
6131N/Ainclude ../../make-rules/shared-macros.mk
6131N/A
6131N/ACOMPONENT_NAME= popt
6131N/ACOMPONENT_VERSION= 1.7
6131N/ACOMPONENT_PROJECT_URL= http://freecode.com/projects/popt/
6131N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6131N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6131N/ACOMPONENT_ARCHIVE_HASH= \
6131N/A sha256:4e75cb28793f0d44134f71fae53057d5f250805e6268fbd9c9780654b73b0dc1
6160N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/cross-stuff/files/cross-stuff/1.0/$(COMPONENT_ARCHIVE)/download
6131N/ACOMPONENT_BUGDB= library/popt
6131N/A
6131N/Ainclude ../../make-rules/prep.mk
6131N/Ainclude ../../make-rules/configure.mk
6131N/Ainclude ../../make-rules/ips.mk
6131N/A
6131N/ACOMPONENT_PREP_ACTION = \
6131N/A (cd $(@D) ; \
6131N/A $(TOUCH) config.rpath ; \
6131N/A libtoolize -f ; \
6160N/A aclocal -I . ; \
6160N/A autoconf ; \
6131N/A automake -a -c -f )
6131N/A
6131N/A# Needed to get "gmake test" to work.
6131N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
6131N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
6131N/A
6131N/A# Add /usr/gnu/bin at the front of $PATH for GNU gettext.
6160N/ACONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH)
6131N/A
6131N/ACONFIGURE_OPTIONS += --disable-nls
6160N/A
6131N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
6131N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
6160N/A
6131N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
6131N/A
6131N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
6131N/A
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk