Makefile revision 181
247N/A#
247N/A#
247N/A# CDDL HEADER START
247N/A#
247N/A# The contents of this file are subject to the terms of the
247N/A# Common Development and Distribution License (the "License").
247N/A# You may not use this file except in compliance with the License.
247N/A#
247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
247N/A# or http://www.opensolaris.org/os/licensing.
247N/A# See the License for the specific language governing permissions
247N/A# and limitations under the License.
247N/A#
247N/A# When distributing Covered Code, include this CDDL HEADER in each
247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
247N/A# If applicable, add the following below this CDDL HEADER, with the
247N/A# fields enclosed by brackets "[]" replaced with your own identifying
247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
247N/A#
247N/A# CDDL HEADER END
247N/A#
714N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
247N/A#
247N/Ainclude ../../make-rules/shared-macros.mk
247N/A
247N/ACOMPONENT_NAME= hplip
247N/ACOMPONENT_VERSION= 3.10.9
247N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
247N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
247N/ACOMPONENT_ARCHIVE_HASH= sha1:5e145eafefbc5122bbe98345f2984fc0a55e5787
247N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
247N/A
247N/Ainclude ../../make-rules/prep.mk
247N/Ainclude ../../make-rules/configure.mk
247N/Ainclude ../../make-rules/ips.mk
247N/A
247N/A# We need to be able to return from void functions
247N/ACC += $(studio_FEATURES_EXTENSIONS)
714N/ACCC += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_LIBRARY_NONE)
714N/A
714N/AROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
714N/A
714N/A# configure(1) options to use
714N/ACONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
714N/ACONFIGURE_OPTIONS += --disable-pp-build
714N/ACONFIGURE_OPTIONS += --disable-gui-build
714N/A
714N/ACONFIGURE_ENV += LDFLAGS=" -lnsl"
714N/A
714N/AHPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip
714N/AHPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs
714N/A
714N/AVARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT)
714N/A
714N/A# We build two variants: for the CUPS/SANE support
714N/A# and for the HPIJS only support
714N/A
714N/A# use these options for the CUPS/SANE support
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-fax-build
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-udev-acl-rules
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpcups-install
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-new-hpcups
714N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-cups-drv-install
714N/A
714N/A# use these options for the HPIJS only support
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-cups-drv-install
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-hpcups-install
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-doc-build
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-only-build
714N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-install
714N/A
247N/Ainstall: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor
247N/A
247N/ACOMPONENT_INSTALL_ARGS += -e
247N/A
247N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
247N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
247N/A
247N/A# Generate configuration scripts
247N/A$(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \
247N/A (cd $(@D) ; autoconf )
247N/A
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
#
# Since it looks like you can't build HPLIP with both HPIJS and CUPS support
# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and
# build it twice. Once for the HPIJS support used by LP and once for the rest
# of the support used for CUPS and SANE.
#
build: $(VARIANTS:%=%/.built)
install: $(VARIANTS:%=%/.installed)
$(RM) $(ROOTPPDCACHE)
$(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches
($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \
PPDSRC="$(PROTO_DIR)/usr/share/ppd/SUNWhpijs" \
DONOTINSTALL="/dev/null" \
CACHE="$(ROOTPPDCACHE)" \
IPATH="/usr/share/ppd/$(BUILD_DIR)/" \
$(KSH93) cache.ksh)
# empty test target
test: $(NO_TESTS)
include ../../make-rules/depend.mk