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