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