Makefile revision 6447
70N/A#
70N/A#
1492N/A# CDDL HEADER START
70N/A#
70N/A# The contents of this file are subject to the terms of the
919N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
70N/A#
70N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/ABUILD_BITS= 32
851N/Ainclude ../../make-rules/shared-macros.mk
851N/A
851N/ACOMPONENT_NAME= hplip
851N/ACOMPONENT_VERSION= 3.15.7
851N/ATPNO= 24589
98N/ACOMPONENT_ARCHIVE_HASH= sha256:d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d
551N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/hplip/$(COMPONENT_ARCHIVE)
321N/ACOMPONENT_PROJECT_URL= http://hplipopensource.com/hplip-web/index.html
321N/A
550N/Ainclude $(WS_MAKE_RULES)/common.mk
550N/A
213N/APKG_OPTIONS += -I $(COMPONENT_DIR)
649N/A
304N/A# We need to be able to return from void functions
530N/ACFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
425N/ACXXFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
425N/ACXXFLAGS.studio += $(studio_CXXLIB_CSTD)
325N/A
493N/ACONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
536N/ACONFIGURE_OPTIONS += --with-hpppddir=$(USRSHAREDIR)/cups/model/hplip
456N/Aifeq ($(OS_VERSION),5.11)
320N/ACONFIGURE_OPTIONS += --enable-libusb01_build
332N/Aendif
501N/ACONFIGURE_OPTIONS += --enable-fax-build
231N/ACONFIGURE_OPTIONS += --enable-hpcups-install
550N/ACONFIGURE_OPTIONS += --disable-new-hpcups
347N/ACONFIGURE_OPTIONS += --enable-cups-drv-install
532N/ACONFIGURE_OPTIONS += --disable-pp-build
463N/ACONFIGURE_OPTIONS += --disable-gui-build
493N/ACONFIGURE_OPTIONS += --disable-qt4
425N/ACONFIGURE_OPTIONS += PYTHON=$(PYTHON.$(PYTHON_VERSION))
493N/ACONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
791N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
472N/A# bye, bye SANE backends
324N/ACONFIGURE_OPTIONS += --disable-scan-build
347N/A
310N/Aifeq ($(OS_VERSION),5.11)
316N/ALDFLAGS += -lnsl
474N/Aendif
290N/A
332N/ACOMPONENT_INSTALL_ARGS += -e
464N/A
332N/A# Generate configuration scripts
509N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoconf )
835N/A
835N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
332N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
210N/A
493N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/backend/hpfax
792N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/hpps
128N/APYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/pstotiff
414N/APYTHON_SCRIPTS += \
484N/A $(shell nawk -F \= \
326N/A ' $$1 ~ /^file.*path/ && $$2 ~ /.*\.py$$/ {print "$(PROTO_DIR)/"$$2;} ' \
493N/A $(COMPONENT_DIR)/hplip.proto-objects)
335N/A
493N/A# build .pyc's
493N/ACOMPONENT_POST_INSTALL_ACTION += \
729N/A $(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/usr/share/hplip/
425N/A
370N/A# empty test target
70N/Atest: $(NO_TESTS)
400N/A
294N/Asystem-test: $(NO_TESTS)
435N/A
800N/AREQUIRED_PACKAGES += image/library/libjpeg
98N/AREQUIRED_PACKAGES += library/libusb-1
434N/AREQUIRED_PACKAGES += library/print/cups-libs
505N/AREQUIRED_PACKAGES += runtime/python-27
277N/AREQUIRED_PACKAGES += system/library/c++-runtime
433N/AREQUIRED_PACKAGES += system/library/libdbus
546N/AREQUIRED_PACKAGES += system/library/math
356N/AREQUIRED_PACKAGES += system/management/snmp/net-snmp
289N/A