Makefile revision 5795
380N/A#
380N/A# CDDL HEADER START
380N/A#
380N/A# The contents of this file are subject to the terms of the
380N/A# Common Development and Distribution License (the "License").
380N/A# You may not use this file except in compliance with the License.
380N/A#
380N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
380N/A# or http://www.opensolaris.org/os/licensing.
380N/A# See the License for the specific language governing permissions
380N/A# and limitations under the License.
380N/A#
380N/A# When distributing Covered Code, include this CDDL HEADER in each
380N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
380N/A# If applicable, add the following below this CDDL HEADER, with the
380N/A# fields enclosed by brackets "[]" replaced with your own identifying
380N/A# information: Portions Copyright [yyyy] [name of copyright owner]
380N/A#
380N/A# CDDL HEADER END
380N/A#
816N/A
380N/A#
380N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
380N/A#
380N/ABUILD_BITS= 32
816N/Ainclude ../../make-rules/shared-macros.mk
816N/A
380N/ACOMPONENT_NAME= cups
380N/ACOMPONENT_VERSION= 1.4.5
380N/ACOMPONENT_PROJECT_URL= http://www.cups.org/
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
380N/A sha256:0450d6d8e6e8af225d2a3319c848737d76473a6c7579cf97c52086d0371c0efe
380N/ACOMPONENT_ARCHIVE_URL= http://ftp.easysw.com/pub/cups/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
380N/A
380N/ATPNO= 17705
380N/A
380N/ATEST_TARGET= $(NO_TESTS)
380N/Ainclude $(WS_MAKE_RULES)/common.mk
380N/A
380N/A# Ensure CC-based linking does not embed runpaths.
380N/ALDFLAGS += $(studio_NORUNPATH)
380N/A
380N/A# don't use LD_Z_IGNORE: causes linker problems
380N/ALD_Z_IGNORE=
380N/A
380N/A# cups has an unusual hybrid-build system to support 32-bit and 64-bit
380N/A# libraries in a single build; avoid confusing it by stripping $(CC_BITS) from
380N/A# all related flag variables.
380N/ACONFIGURE_CPPFLAGS.stripped := $(patsubst -m32,,$(CONFIGURE_CPPFLAGS))
380N/ACONFIGURE_CPPFLAGS= $(CONFIGURE_CPPFLAGS.stripped)
380N/ACFLAGS.stripped := $(patsubst -m32,,$(CFLAGS))
380N/ACFLAGS= $(CFLAGS.stripped)
380N/ACXXFLAGS.stripped := $(patsubst -m32,,$(CXXFLAGS))
CXXFLAGS= $(CXXFLAGS.stripped)
CONFIGURE_ENV += "ac_cv_search_getifaddrs=no"
CONFIGURE_ENV += "ac_cv_func_statfs=no"
# Ensure dynamic shared objects are linked using same LDFLAGS as executables.
CONFIGURE_ENV += DSOFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
CONFIGURE_OPTIONS += --with-fontpath=$(USRSHAREFONTSDIR)
CONFIGURE_OPTIONS += --with-logdir=$(VARDIR)/log/cups
CONFIGURE_OPTIONS += --with-domainsocket=$(VARDIR)/run/cups-socket
CONFIGURE_OPTIONS += --with-smfmanifestdir=$(LIBDIR)/svc/manifest/application
CONFIGURE_OPTIONS += --with-printcap=$(ETCDIR)/printers.conf
CONFIGURE_OPTIONS += --with-cups-user=lp
CONFIGURE_OPTIONS += --with-cups-group=lp
CONFIGURE_OPTIONS += --disable-slp
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-gnutls
CONFIGURE_OPTIONS += --disable-libusb
CONFIGURE_OPTIONS += --enable-labeling
CONFIGURE_OPTIONS += --enable-openssl
CONFIGURE_OPTIONS += --enable-dbus
CONFIGURE_OPTIONS += --enable-threads
CONFIGURE_OPTIONS += --enable-64bit
CONFIGURE_OPTIONS += --enable-auditing
CONFIGURE_OPTIONS += --without-php
$(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)"
PATCH_LEVEL = 0
COMPONENT_PRE_CONFIGURE_ACTION = \
$(CLONEY) $(SOURCE_DIR) $(@D) ; \
find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \
( cd $(SOURCE_DIR) ; autoconf -f )
# install the default config file
COMPONENT_POST_INSTALL_ACTION = \
$(TOUCH) $(PROTOETCDIR)/cups/command.types ; \
$(MV) $(PROTOUSRLIBDIR)/64 $(PROTOUSRLIBDIR)/$(MACH64)
REQUIRED_PACKAGES += driver/parallel/ecpp
REQUIRED_PACKAGES += image/library/libjpeg
REQUIRED_PACKAGES += image/library/libpng
REQUIRED_PACKAGES += image/library/libtiff
REQUIRED_PACKAGES += library/print/cups-libs
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += $(PERL_PKG)
REQUIRED_PACKAGES += service/security/kerberos-5
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/libdbus
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/gss