Makefile revision 338
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER START
9b2bd54c98edb185a3985410367754ab33217362bnicholes# The contents of this file are subject to the terms of the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Common Development and Distribution License (the "License").
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You may not use this file except in compliance with the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b2bd54c98edb185a3985410367754ab33217362bnicholes# See the License for the specific language governing permissions
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and limitations under the License.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# When distributing Covered Code, include this CDDL HEADER in each
9b2bd54c98edb185a3985410367754ab33217362bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# If applicable, add the following below this CDDL HEADER, with the
9b2bd54c98edb185a3985410367754ab33217362bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
9b2bd54c98edb185a3985410367754ab33217362bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
9b2bd54c98edb185a3985410367754ab33217362bnicholes# CDDL HEADER END
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_HASH= sha1:5e145eafefbc5122bbe98345f2984fc0a55e5787
9b2bd54c98edb185a3985410367754ab33217362bnicholesCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
9b2bd54c98edb185a3985410367754ab33217362bnicholes# We need to be able to return from void functions
9b2bd54c98edb185a3985410367754ab33217362bnicholesCXX += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_LIBRARY_NONE)
9b2bd54c98edb185a3985410367754ab33217362bnicholesROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
9b2bd54c98edb185a3985410367754ab33217362bnicholes# configure(1) options to use
9b2bd54c98edb185a3985410367754ab33217362bnicholesCONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
9b2bd54c98edb185a3985410367754ab33217362bnicholes# We build two variants: for the CUPS/SANE support
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and for the HPIJS only support
9b2bd54c98edb185a3985410367754ab33217362bnicholes# use these options for the CUPS/SANE support
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-fax-build
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-udev-acl-rules
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpcups-install
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-new-hpcups
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-cups-drv-install
9b2bd54c98edb185a3985410367754ab33217362bnicholes# use these options for the HPIJS only support
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-cups-drv-install
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-hpcups-install
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-doc-build
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-only-build
9b2bd54c98edb185a3985410367754ab33217362bnicholes$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-install
9b2bd54c98edb185a3985410367754ab33217362bnicholesinstall: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Generate configuration scripts
9b2bd54c98edb185a3985410367754ab33217362bnicholes# Since it looks like you can't build HPLIP with both HPIJS and CUPS support
9b2bd54c98edb185a3985410367754ab33217362bnicholes# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and
9b2bd54c98edb185a3985410367754ab33217362bnicholes# build it twice. Once for the HPIJS support used by LP and once for the rest
9b2bd54c98edb185a3985410367754ab33217362bnicholes# of the support used for CUPS and SANE.
9b2bd54c98edb185a3985410367754ab33217362bnicholes# empty test target