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