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