components/hplip/Makefile
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Thu, 14 Jul 2016 06:29:20 -0700
changeset 6449 33c7e6c982cd
parent 6250 4fde505e37d7
child 6471 7b42c58b14c1
permissions -rw-r--r--
24296343 HPLIP: Remove HPIJS variant.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     1
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     2
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     3
# CDDL HEADER START
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     4
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     5
# The contents of this file are subject to the terms of the
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     6
# Common Development and Distribution License (the "License").
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     7
# You may not use this file except in compliance with the License.
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     8
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
     9
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    10
# or http://www.opensolaris.org/os/licensing.
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    11
# See the License for the specific language governing permissions
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    12
# and limitations under the License.
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    13
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    14
# When distributing Covered Code, include this CDDL HEADER in each
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    15
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    16
# If applicable, add the following below this CDDL HEADER, with the
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    17
# fields enclosed by brackets "[]" replaced with your own identifying
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    18
# information: Portions Copyright [yyyy] [name of copyright owner]
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    19
#
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    20
# CDDL HEADER END
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    21
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    22
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    23
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    24
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    25
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    26
BUILD_BITS= 32
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    28
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    29
COMPONENT_NAME=         hplip
4923
b9e3f6b6a101 21696841 Update HPLIP to 3.15.7
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 4339
diff changeset
    30
COMPONENT_VERSION=      3.15.7
b9e3f6b6a101 21696841 Update HPLIP to 3.15.7
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 4339
diff changeset
    31
TPNO=			24589
b9e3f6b6a101 21696841 Update HPLIP to 3.15.7
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 4339
diff changeset
    32
COMPONENT_ARCHIVE_HASH= sha256:d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d
b9e3f6b6a101 21696841 Update HPLIP to 3.15.7
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 4339
diff changeset
    33
COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/hplip/$(COMPONENT_ARCHIVE)
b9e3f6b6a101 21696841 Update HPLIP to 3.15.7
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 4339
diff changeset
    34
COMPONENT_PROJECT_URL=	http://hplipopensource.com/hplip-web/index.html
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    35
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    36
include $(WS_MAKE_RULES)/common.mk
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    37
3831
33bc4f8fb536 18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    38
PKG_OPTIONS += -I $(COMPONENT_DIR)
33bc4f8fb536 18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    40
# We need to be able to return from void functions
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    41
CFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    42
CXXFLAGS.studio += $(studio_FEATURES_EXTENSIONS) 
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    43
CXXFLAGS.studio += $(studio_CXXLIB_CSTD) 
1721
e6db95cc6647 17406738 problem in UTILITY/HPLIP
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents: 1276
diff changeset
    44
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	--localedir=$(CONFIGURE_LOCALEDIR)
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    46
CONFIGURE_OPTIONS +=	--with-hpppddir=$(USRSHAREDIR)/cups/model/hplip
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    47
ifeq ($(OS_VERSION),5.11)
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    48
CONFIGURE_OPTIONS +=	--enable-libusb01_build
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    49
endif
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    50
CONFIGURE_OPTIONS +=	--enable-fax-build
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    51
CONFIGURE_OPTIONS +=	--enable-hpcups-install
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    52
CONFIGURE_OPTIONS +=	--disable-new-hpcups
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    53
CONFIGURE_OPTIONS +=	--enable-cups-drv-install
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    54
CONFIGURE_OPTIONS +=	--disable-pp-build
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    55
CONFIGURE_OPTIONS +=	--disable-gui-build
3831
33bc4f8fb536 18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 3817
diff changeset
    56
CONFIGURE_OPTIONS +=	--disable-qt4
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    57
CONFIGURE_OPTIONS +=	PYTHON=$(PYTHON.$(PYTHON_VERSION))
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    58
CONFIGURE_OPTIONS +=	am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    59
CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
6194
4606e5a93f16 23497301 HPLIP: dependency on SANE back-ends should be dropped.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 5912
diff changeset
    60
# bye, bye SANE backends
4606e5a93f16 23497301 HPLIP: dependency on SANE back-ends should be dropped.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 5912
diff changeset
    61
CONFIGURE_OPTIONS +=	--disable-scan-build
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    62
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    63
ifeq ($(OS_VERSION),5.11)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    64
LDFLAGS += -lnsl
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5074
diff changeset
    65
endif
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    66
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    67
COMPONENT_INSTALL_ARGS += -e
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    68
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    69
# Generate configuration scripts
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    70
COMPONENT_PREP_ACTION = (cd $(@D) ; autoconf )
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    71
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    72
COMPONENT_PRE_CONFIGURE_ACTION = \
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    73
	($(CLONEY) $(SOURCE_DIR) $(@D))
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    74
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    75
PYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/backend/hpfax
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    76
PYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/hpps
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    77
PYTHON_SCRIPTS += $(PROTO_DIR)/usr/lib/cups/filter/pstotiff
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    78
PYTHON_SCRIPTS += \
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    79
 $(shell nawk -F \= \
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    80
  ' $$1 ~ /^file.*path/ && $$2 ~ /.*\.py$$/ {print "$(PROTO_DIR)/"$$2;} ' \
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    81
  $(COMPONENT_DIR)/hplip.proto-objects)
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    82
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    83
# build .pyc's
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    84
COMPONENT_POST_INSTALL_ACTION += \
3912
c5e09b550970 20655131 migrate hplip from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3831
diff changeset
    85
	$(PYTHON.$(PYTHON_VERSION)) -m compileall $(PROTO_DIR)/usr/share/hplip/
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    86
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    87
# empty test target
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 165
diff changeset
    88
test:	$(NO_TESTS)
165
111c46cade93 7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff changeset
    89
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4271
diff changeset
    90
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4271
diff changeset
    91
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    92
REQUIRED_PACKAGES += image/library/libjpeg
6449
33c7e6c982cd 24296343 HPLIP: Remove HPIJS variant.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents: 6250
diff changeset
    93
REQUIRED_PACKAGES += library/libusb-1
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    94
REQUIRED_PACKAGES += library/print/cups-libs
3912
c5e09b550970 20655131 migrate hplip from Python 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents: 3831
diff changeset
    95
REQUIRED_PACKAGES += runtime/python-27
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    96
REQUIRED_PACKAGES += system/library/c++-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    97
REQUIRED_PACKAGES += system/library/libdbus
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    98
REQUIRED_PACKAGES += system/library/math
6250
4fde505e37d7 23607873 hplip needs different net-snmp package when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6194
diff changeset
    99
REQUIRED_PACKAGES += system/management/snmp/net-snmp