165N/A#
165N/A#
165N/A# CDDL HEADER START
165N/A#
165N/A# The contents of this file are subject to the terms of the
165N/A# Common Development and Distribution License (the "License").
165N/A# You may not use this file except in compliance with the License.
165N/A#
165N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
165N/A# or http://www.opensolaris.org/os/licensing.
165N/A# See the License for the specific language governing permissions
165N/A# and limitations under the License.
165N/A#
165N/A# When distributing Covered Code, include this CDDL HEADER in each
165N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
165N/A# If applicable, add the following below this CDDL HEADER, with the
165N/A# fields enclosed by brackets "[]" replaced with your own identifying
165N/A# information: Portions Copyright [yyyy] [name of copyright owner]
165N/A#
165N/A# CDDL HEADER END
165N/A#
5680N/A
165N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 32
165N/Ainclude ../../make-rules/shared-macros.mk
165N/A
165N/ACOMPONENT_NAME= hplip
7343N/ACOMPONENT_VERSION= 3.16.9
7343N/ATPNO= 31664
7343N/ACOMPONENT_ARCHIVE_HASH= sha256:cc8cf2a7baa1403cddd6503f120c58780c786b42fad073da6caec7535d3797a6
4921N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/hplip/$(COMPONENT_ARCHIVE)
4921N/ACOMPONENT_PROJECT_URL= http://hplipopensource.com/hplip-web/index.html
165N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
165N/A
3831N/APKG_OPTIONS += -I $(COMPONENT_DIR)
3831N/A
5680N/A# We need to be able to return from void functions
5680N/ACFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
5680N/ACXXFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
5680N/ACXXFLAGS.studio += $(studio_CXXLIB_CSTD)
7292N/ACXXFLAGS.studio += -std=sun03
2456N/A
165N/ACONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
6447N/ACONFIGURE_OPTIONS += --with-hpppddir=$(USRSHAREDIR)/cups/model/hplip
6447N/Aifeq ($(OS_VERSION),5.11)
6447N/ACONFIGURE_OPTIONS += --enable-libusb01_build
6447N/Aendif
6447N/ACONFIGURE_OPTIONS += --enable-fax-build
6447N/ACONFIGURE_OPTIONS += --enable-hpcups-install
6447N/ACONFIGURE_OPTIONS += --disable-new-hpcups
6447N/ACONFIGURE_OPTIONS += --enable-cups-drv-install
165N/ACONFIGURE_OPTIONS += --disable-pp-build
165N/ACONFIGURE_OPTIONS += --disable-gui-build
3831N/ACONFIGURE_OPTIONS += --disable-qt4
6447N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION))
6447N/ACONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
6447N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
6192N/A# bye, bye SANE backends
6192N/ACONFIGURE_OPTIONS += --disable-scan-build
165N/A
5680N/Aifeq ($(OS_VERSION),5.11)
5680N/ALDFLAGS += -lnsl
5680N/Aendif
165N/A
6447N/ACOMPONENT_INSTALL_ARGS += -e
165N/A
6447N/A# Generate configuration scripts
6447N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoconf )
165N/A
165N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
165N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
165N/A
6447N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/backend/hpfax
6447N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/hpps
6447N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/pstotiff
6447N/APYTHON_SCRIPTS += \
6447N/A $(shell nawk -F \= \
6447N/A ' $$1 ~ /^file.*path/ && $$2 ~ /.*\.py$$/ {print "$(PROTO_DIR)/"$$2;} ' \
6447N/A $(COMPONENT_DIR)/hplip.proto-objects)
165N/A
6447N/A# build .pyc's
6447N/ACOMPONENT_POST_INSTALL_ACTION += \
3912N/A $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/usr/share/hplip/
165N/A
165N/A# empty test target
181N/Atest: $(NO_TESTS)
165N/A
4337N/Asystem-test: $(NO_TESTS)
4337N/A
6469N/A# libusb-1 is needed on S12; libusb is needed on S11, so list both.
3817N/AREQUIRED_PACKAGES += image/library/libjpeg
6447N/AREQUIRED_PACKAGES += library/libusb-1
3817N/AREQUIRED_PACKAGES += library/print/cups-libs
3912N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/libdbus
3817N/AREQUIRED_PACKAGES += system/library/math
6469N/AREQUIRED_PACKAGES += system/library/usb/libusb
6248N/AREQUIRED_PACKAGES += system/management/snmp/net-snmp