Makefile revision 165
0cba3a63e59bfa77f67955cb4e034264ed6c5523jerenkrantz#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# CDDL HEADER START
c5cb4c9e7c8696907ddebab2a0037717c710b0f6jorton#
470147d3f2750bfd47b5d8f1d90abab283eaad0dpquerna# The contents of this file are subject to the terms of the
470147d3f2750bfd47b5d8f1d90abab283eaad0dpquerna# Common Development and Distribution License (the "License").
470147d3f2750bfd47b5d8f1d90abab283eaad0dpquerna# You may not use this file except in compliance with the License.
470147d3f2750bfd47b5d8f1d90abab283eaad0dpquerna#
470147d3f2750bfd47b5d8f1d90abab283eaad0dpquerna# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
628cf3411e8a6d09e27b3666312e43832dda93f3jorton# or http://www.opensolaris.org/os/licensing.
628cf3411e8a6d09e27b3666312e43832dda93f3jorton# See the License for the specific language governing permissions
628cf3411e8a6d09e27b3666312e43832dda93f3jorton# and limitations under the License.
f0d89a5a23222e031db8113478645f28688fa748jorton#
f0d89a5a23222e031db8113478645f28688fa748jorton# When distributing Covered Code, include this CDDL HEADER in each
f0d89a5a23222e031db8113478645f28688fa748jorton# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f0d89a5a23222e031db8113478645f28688fa748jorton# If applicable, add the following below this CDDL HEADER, with the
f0d89a5a23222e031db8113478645f28688fa748jorton# fields enclosed by brackets "[]" replaced with your own identifying
f0d89a5a23222e031db8113478645f28688fa748jorton# information: Portions Copyright [yyyy] [name of copyright owner]
f0d89a5a23222e031db8113478645f28688fa748jorton#
f0d89a5a23222e031db8113478645f28688fa748jorton# CDDL HEADER END
f0d89a5a23222e031db8113478645f28688fa748jorton#
f0d89a5a23222e031db8113478645f28688fa748jorton# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantz#
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantzinclude ../../make-rules/shared-macros.mk
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantz
9df62ed109bd456de3e6a19b54e0ab31da3fe07ctrawickCOMPONENT_NAME= hplip
9df62ed109bd456de3e6a19b54e0ab31da3fe07ctrawickCOMPONENT_VERSION= 3.10.9
9df62ed109bd456de3e6a19b54e0ab31da3fe07ctrawickCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9df62ed109bd456de3e6a19b54e0ab31da3fe07ctrawickCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
afc08f35f5f387896bc625cdee21b88c7fe7699djerenkrantzCOMPONENT_ARCHIVE_HASH= sha1:5e145eafefbc5122bbe98345f2984fc0a55e5787
a0fd132e01ab69f1c48e3d6a6791447cb6d65e51jerenkrantzCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
a0fd132e01ab69f1c48e3d6a6791447cb6d65e51jerenkrantz
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantzinclude ../../make-rules/prep.mk
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantzinclude ../../make-rules/configure.mk
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantzinclude ../../make-rules/ips.mk
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes# We need to be able to return from void functions
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholesCC += $(studio_FEATURES_EXTENSIONS)
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholesCCC += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_LIBRARY_NONE)
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantzROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantz
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantz# configure(1) options to use
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantzCONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantzCONFIGURE_OPTIONS += --disable-pp-build
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantzCONFIGURE_OPTIONS += --disable-gui-build
d5c1ba1aa5682c9a171114b76d5e21117e19ed6ctrawick
d5c1ba1aa5682c9a171114b76d5e21117e19ed6ctrawickCONFIGURE_ENV += LDFLAGS=" -lnsl"
d5c1ba1aa5682c9a171114b76d5e21117e19ed6ctrawick
d5c1ba1aa5682c9a171114b76d5e21117e19ed6ctrawickHPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip
d5c1ba1aa5682c9a171114b76d5e21117e19ed6ctrawickHPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs
418ee053321d0ee451bb482a9becdfcd3344201fjim
418ee053321d0ee451bb482a9becdfcd3344201fjimVARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT)
418ee053321d0ee451bb482a9becdfcd3344201fjim
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz# We build two variants: for the CUPS/SANE support
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz# and for the HPIJS only support
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz
0894cd17fe3f614bf01dbf84f1414756bd5a34c3bnicholes# use these options for the CUPS/SANE support
0894cd17fe3f614bf01dbf84f1414756bd5a34c3bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
0894cd17fe3f614bf01dbf84f1414756bd5a34c3bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-fax-build
0894cd17fe3f614bf01dbf84f1414756bd5a34c3bnicholes$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-udev-acl-rules
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpcups-install
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-new-hpcups
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-cups-drv-install
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim# use these options for the HPIJS only support
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantz$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-cups-drv-install
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantz$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-hpcups-install
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantz$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-doc-build
54d22ed1c429b903b029bbd62621f11a9e286137minfrin$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-only-build
54d22ed1c429b903b029bbd62621f11a9e286137minfrin$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-install
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrininstall: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinCOMPONENT_INSTALL_ARGS += -e
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrininclude ../../make-rules/shared-targets.mk
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantzCOMPONENT_PRE_CONFIGURE_ACTION = \
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz ($(CLONEY) $(SOURCE_DIR) $(@D))
06106b6b63b112a09de1b66fa29596035c0176ffthommay
06106b6b63b112a09de1b66fa29596035c0176ffthommay# Generate configuration scripts
06106b6b63b112a09de1b66fa29596035c0176ffthommay$(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \
e335319a08e12eb7daff9afa80e985dc53f652b8jorton (cd $(@D) ; autoconf )
e335319a08e12eb7daff9afa80e985dc53f652b8jorton
e335319a08e12eb7daff9afa80e985dc53f652b8jortonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
e335319a08e12eb7daff9afa80e985dc53f652b8jorton
e335319a08e12eb7daff9afa80e985dc53f652b8jorton#
c8794ec1e4c474ae101ce3835080f638136e7860erikabele# Since it looks like you can't build HPLIP with both HPIJS and CUPS support
c8794ec1e4c474ae101ce3835080f638136e7860erikabele# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and
c8794ec1e4c474ae101ce3835080f638136e7860erikabele# build it twice. Once for the HPIJS support used by LP and once for the rest
c8794ec1e4c474ae101ce3835080f638136e7860erikabele# of the support used for CUPS and SANE.
c8794ec1e4c474ae101ce3835080f638136e7860erikabele#
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrinbuild: $(VARIANTS:%=%/.built)
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin
22dda44322067379eeba28d7ec7fc833cb04c0dfminfrininstall: $(VARIANTS:%=%/.installed)
22dda44322067379eeba28d7ec7fc833cb04c0dfminfrin $(RM) $(ROOTPPDCACHE)
7b6ba9c468f26bdb3492d5e8cb79628a3b04e8c8wrowe $(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches
7b6ba9c468f26bdb3492d5e8cb79628a3b04e8c8wrowe ($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \
7b6ba9c468f26bdb3492d5e8cb79628a3b04e8c8wrowe PPDSRC="$(PROTO_DIR)/usr/share/ppd/SUNWhpijs" \
7b6ba9c468f26bdb3492d5e8cb79628a3b04e8c8wrowe DONOTINSTALL="/dev/null" \
77edcaaccc089335938f3844b752e1044f7eb278trawick CACHE="$(ROOTPPDCACHE)" \
77edcaaccc089335938f3844b752e1044f7eb278trawick IPATH="/usr/share/ppd/$(BUILD_DIR)/" \
77edcaaccc089335938f3844b752e1044f7eb278trawick $(KSH93) cache.ksh)
77edcaaccc089335938f3844b752e1044f7eb278trawick
59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1dminfrin# empty test target
59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1dminfrintest:
59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1dminfrin @echo "no tests available"
59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1dminfrin
9f1a88897168c3f1e5009acb585daf01e38a0299jiminclude ../../make-rules/depend.mk
9f1a88897168c3f1e5009acb585daf01e38a0299jim