1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater# CDDL HEADER START
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# The contents of this file are subject to the terms of the
c6fb85f9500350e5ce58c9a24f5d264c8a8bd6f4Automatic Updater# Common Development and Distribution License (the "License").
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# You may not use this file except in compliance with the License.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# or http://www.opensolaris.org/os/licensing.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# See the License for the specific language governing permissions
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# and limitations under the License.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# CDDL HEADER END
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt#
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude ../../make-rules/shared-macros.mk
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_NAME= popt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_VERSION= 1.7
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_PROJECT_URL= http://freecode.com/projects/popt/
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_ARCHIVE_HASH= \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt sha256:4e75cb28793f0d44134f71fae53057d5f250805e6268fbd9c9780654b73b0dc1
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/cross-stuff/files/cross-stuff/1.0/$(COMPONENT_ARCHIVE)/download
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterCOMPONENT_BUGDB= library/popt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntTPNO= 7904
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinclude $(WS_MAKE_RULES)/prep.mk
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinclude $(WS_MAKE_RULES)/configure.mk
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinclude $(WS_MAKE_RULES)/ips.mk
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCOMPONENT_PREP_ACTION = \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt (cd $(@D) ; \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt $(TOUCH) config.rpath ; \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt libtoolize -f ; \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt aclocal -I . ; \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt autoconf ; \
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater automake -a -c -f )
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# Needed to get "gmake test" to work.
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION = \
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt ($(CLONEY) $(SOURCE_DIR) $(@D))
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
fd0b768f4c23d22c89f8a156a632831583b7fb68Automatic Updater# Add /usr/gnu/bin at the front of $PATH for GNU gettext.
fd0b768f4c23d22c89f8a156a632831583b7fb68Automatic UpdaterCONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCONFIGURE_OPTIONS += --disable-nls
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# common targets
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterbuild: $(BUILD_32_and_64)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntinstall: $(INSTALL_32_and_64)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunttest: $(TEST_32_and_64)
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan HuntREQUIRED_PACKAGES += system/library
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt