Makefile revision 4346
a1e0709c89175c34a3f72eb4a83d7ee1621a0884rbb# CDDL HEADER START
a1e0709c89175c34a3f72eb4a83d7ee1621a0884rbb# The contents of this file are subject to the terms of the
a1e0709c89175c34a3f72eb4a83d7ee1621a0884rbb# Common Development and Distribution License (the "License").
4b13b6bcdcfae61d3c58cc2569757651f28f2bbfrbb# You may not use this file except in compliance with the License.
4b13b6bcdcfae61d3c58cc2569757651f28f2bbfrbb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
34ea1d36f4e1c8d66338e691793017d105cc9c32rbb# See the License for the specific language governing permissions
34ea1d36f4e1c8d66338e691793017d105cc9c32rbb# and limitations under the License.
2c8f06bf370a44a3d0544ed5319355463c417132gregames# When distributing Covered Code, include this CDDL HEADER in each
2c8f06bf370a44a3d0544ed5319355463c417132gregames# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2c8f06bf370a44a3d0544ed5319355463c417132gregames# If applicable, add the following below this CDDL HEADER, with the
db06e09891b001667974483058923b88c3258324rbb# fields enclosed by brackets "[]" replaced with your own identifying
db06e09891b001667974483058923b88c3258324rbb# information: Portions Copyright [yyyy] [name of copyright owner]
db06e09891b001667974483058923b88c3258324rbb# CDDL HEADER END
8ba9d5e9aaaa79dba0de13f5c1b6e725d98f1dc2fanf# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
06c107289de0a0888386e0bc08ef9fc60aacd8bctrawickCOMPONENT_PROJECT_URL= http://hplipopensource.com/hplip-web/index.html
06c107289de0a0888386e0bc08ef9fc60aacd8bctrawickCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
06c107289de0a0888386e0bc08ef9fc60aacd8bctrawickCOMPONENT_ARCHIVE_HASH= sha256:a57233cd0e2db1dcf1d34d8b90c6a9d3e027e522695aada6c3c411a839868b8e
f4ab6acec7b02518869ca649ce2d3ceeb92d282etrawickCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
bf9902ea6090f94c9ee0aaddd80b419a184ffe55jim# Enable ASLR for this component
0b34df54ff22d0ca05eb8e9d7c9610138a878c83rbb# We need to be able to return from void functions
83047afdc49c183cdca6373dba6a0c6afa638f12gsteinCXX += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_CXXLIB_CSTD)
c8cc46d12794845f39fa154224075a3bbe57a4c8benROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
5dea9095cbfab622c65e5f2f806007aaa7d7761arbb# version aligned with 12.0
5dea9095cbfab622c65e5f2f806007aaa7d7761arbb# common configure options
0ea568e49752d337d2b513cce07f2a6f4699d6eatrawickCONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
0ea568e49752d337d2b513cce07f2a6f4699d6eatrawickCONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# We build two variants: for the CUPS/SANE support
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# and for the HPIJS only support
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# use these options for the CUPS/SANE support
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-libusb01_build
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-fax-build
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpcups-install
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-new-hpcups
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb$(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-cups-drv-install
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb# use these options for the HPIJS only support
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-cups-drv-install
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-hpcups-install
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-doc-build
da07a882b90b44243c9cd88ac09a789999dccc4drbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-only-build
da07a882b90b44243c9cd88ac09a789999dccc4drbb$(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-install
da07a882b90b44243c9cd88ac09a789999dccc4drbbinstall: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbb# Generate configuration scripts
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbb$(BUILD_DIR)/.allvariantsinstalled: $(VARIANTS:%=%/.installed)
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe # set version of python interpreter to calm the pkglint
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe /usr/bin/sed -e '1,1s&^#!.*python[:blank:]\{0,\}$$&#!$(PYTHON.$(PYTHON_VERSION))&' \
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawick $(MV) $$file `echo $$file | sed -e 's/[.]pyverset$$//'` ; \
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawick $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/usr/share/hplip/
77c656dabf05adcdee0d30b15b4628be738a1913rbb# Since it looks like you can't build HPLIP with both HPIJS and CUPS support
77c656dabf05adcdee0d30b15b4628be738a1913rbb# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and
77c656dabf05adcdee0d30b15b4628be738a1913rbb# build it twice. Once for the HPIJS support used by LP and once for the rest
77c656dabf05adcdee0d30b15b4628be738a1913rbb# of the support used for CUPS and SANE.
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb# empty test target