Makefile revision 6062
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
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# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.bz2
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:0450d6d8e6e8af225d2a3319c848737d76473a6c7579cf97c52086d0371c0efe
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= http://ftp.easysw.com/pub/cups/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Ensure CC-based linking does not embed runpaths.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# don't use LD_Z_IGNORE: causes linker problems
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)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCXXFLAGS.stripped := $(patsubst -m32,,$(CXXFLAGS))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Ensure dynamic shared objects are linked using same LDFLAGS as executables.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
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
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)"
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# install the default config file
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce $(MV) $(PROTOUSRLIBDIR)/64 $(PROTOUSRLIBDIR)/$(MACH64)