Makefile revision 2899
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER START
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# The contents of this file are subject to the terms of the
080575042aba2197b425ebfd52061dea061a9aa1xy# Common Development and Distribution License (the "License").
080575042aba2197b425ebfd52061dea061a9aa1xy# You may not use this file except in compliance with the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
080575042aba2197b425ebfd52061dea061a9aa1xy# See the License for the specific language governing permissions
080575042aba2197b425ebfd52061dea061a9aa1xy# and limitations under the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# When distributing Covered Code, include this CDDL HEADER in each
080575042aba2197b425ebfd52061dea061a9aa1xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
080575042aba2197b425ebfd52061dea061a9aa1xy# If applicable, add the following below this CDDL HEADER, with the
080575042aba2197b425ebfd52061dea061a9aa1xy# fields enclosed by brackets "[]" replaced with your own identifying
080575042aba2197b425ebfd52061dea061a9aa1xy# information: Portions Copyright [yyyy] [name of copyright owner]
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER END
080575042aba2197b425ebfd52061dea061a9aa1xy#
3f64cd552fee350c8075ec62765e9a6f9caef1a8guoqing zhu - Sun Microsystems - Beijing China
f0f2c3a5cf65a61de34af42edac38b2a7bda3416Girish Moodalbail#
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/shared-macros.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_NAME= cups
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_VERSION= 1.4.5
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PROJECT_URL= http://www.cups.org/
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.bz2
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_HASH= \
080575042aba2197b425ebfd52061dea061a9aa1xy sha256:0450d6d8e6e8af225d2a3319c848737d76473a6c7579cf97c52086d0371c0efe
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_URL= http://ftp.easysw.com/pub/cups/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUGDB= utility/cups
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyTPNO= 17705
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/prep.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/configure.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/ips.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCXX += $(studio_NORUNPATH)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# don't use LD_Z_IGNORE: causes linker problems
080575042aba2197b425ebfd52061dea061a9aa1xyLD_Z_IGNORE=
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --prefix=/usr
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --mandir=/usr/share/man
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --localstatedir=/var
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-fontpath=/usr/openwin/lib
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-logdir=/var/log/cups
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-domainsocket=/var/run/cups-socket
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-smfmanifestdir=/lib/svc/manifest/application
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-printcap=/etc/printers.conf
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-cups-user=lp
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-cups-group=lp
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --disable-static
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --disable-gnutls
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --disable-libusb
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-labeling
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-openssl
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-dbus
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-threads
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-64bit
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-auditing
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += ARCH64FLAGS=-m64
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += DSO64FLAGS="$(LDLIBS) -G"
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += "ac_cv_search_getifaddrs=no"
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += "ac_cv_func_statfs=no"
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy$(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)"
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyPATCH_LEVEL = 0
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PRE_CONFIGURE_ACTION = \
080575042aba2197b425ebfd52061dea061a9aa1xy $(CLONEY) $(SOURCE_DIR) $(@D) ; \
080575042aba2197b425ebfd52061dea061a9aa1xy find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \
080575042aba2197b425ebfd52061dea061a9aa1xy ( cd $(SOURCE_DIR) ; autoconf -f )
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# install the default config file
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_POST_INSTALL_ACTION = \
080575042aba2197b425ebfd52061dea061a9aa1xy $(TOUCH) $(PROTOETCDIR)/cups/command.types ; \
080575042aba2197b425ebfd52061dea061a9aa1xy $(MV) $(PROTOUSRLIBDIR)/64 $(PROTOUSRLIBDIR)/$(MACH64)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# common targets
080575042aba2197b425ebfd52061dea061a9aa1xybuild: $(BUILD_32)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/shared-targets.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinstall: $(INSTALL_32)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xytest: $(NO_TESTS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/depend.mk
080575042aba2197b425ebfd52061dea061a9aa1xy