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