author | Jiri Sasek <Jiri.Sasek@Oracle.COM> |
Mon, 09 Mar 2015 19:11:16 -0700 | |
branch | s11u2-sru |
changeset 3941 | 5a0ea91a2761 |
parent 3014 | c1a1dfff9d89 |
permissions | -rw-r--r-- |
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 |
# |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
22 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
23 |
# |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
24 |
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
|
25 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
26 |
COMPONENT_NAME= hplip |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
27 |
COMPONENT_VERSION= 3.14.6 |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
28 |
TPNO= 18296 |
3014
c1a1dfff9d89
17406738 problem in UTILITY/HPLIP
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
2646
diff
changeset
|
29 |
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
|
30 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= sha256:a57233cd0e2db1dcf1d34d8b90c6a9d3e027e522695aada6c3c411a839868b8e |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
2434
6c9bb5cf5610
15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
34 |
COMPONENT_BUGDB= utility/hplip |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
35 |
|
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
36 |
include $(WS_MAKE_RULES)/prep.mk |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
37 |
include $(WS_MAKE_RULES)/configure.mk |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/ips.mk |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
39 |
|
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
40 |
PKG_OPTIONS += -I $(COMPONENT_DIR) |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
41 |
|
3014
c1a1dfff9d89
17406738 problem in UTILITY/HPLIP
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
2646
diff
changeset
|
42 |
# Enable ASLR for this component |
c1a1dfff9d89
17406738 problem in UTILITY/HPLIP
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
2646
diff
changeset
|
43 |
ASLR_MODE = $(ASLR_ENABLE) |
c1a1dfff9d89
17406738 problem in UTILITY/HPLIP
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
2646
diff
changeset
|
44 |
|
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
45 |
# We need to be able to return from void functions |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
46 |
CC += $(studio_FEATURES_EXTENSIONS) |
2646
86bc0997bd5f
15795105 SUNBT7173056 Update hplip from 3.10.9 to 3.12.4
Mohana Rao Gorai <mohana.gorai@oracle.com>
parents:
2434
diff
changeset
|
47 |
CXX += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_CXXLIB_CSTD) |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
48 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
49 |
ROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
50 |
|
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
51 |
# version aligned with 12.0 |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
52 |
PYTHON_VERSION = 2.7 |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
53 |
|
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
54 |
# common configure options |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
56 |
CONFIGURE_OPTIONS += --disable-pp-build |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
57 |
CONFIGURE_OPTIONS += --disable-gui-build |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
58 |
CONFIGURE_OPTIONS += --disable-qt4 |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
59 |
CONFIGURE_OPTIONS += am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)" |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
60 |
CONFIGURE_OPTIONS += am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)" |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
61 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
62 |
CONFIGURE_ENV += LDFLAGS=" -lnsl" |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
63 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
64 |
HPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
65 |
HPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
66 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
67 |
VARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
68 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
69 |
# We build two variants: for the CUPS/SANE support |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
70 |
# and for the HPIJS only support |
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 |
# use these options for the CUPS/SANE support |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
73 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
74 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-libusb01_build |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
75 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-fax-build |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
76 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpcups-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
77 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-new-hpcups |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
78 |
$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-cups-drv-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
79 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
80 |
# use these options for the HPIJS only support |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
81 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
82 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
83 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-cups-drv-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
84 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-hpcups-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
85 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-doc-build |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
86 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-only-build |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
87 |
$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-install |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
88 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
89 |
install: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
90 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
91 |
COMPONENT_INSTALL_ARGS += -e |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
92 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
93 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
94 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
95 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
96 |
# Generate configuration scripts |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
97 |
$(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
98 |
(cd $(@D) ; autoconf ) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
99 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
100 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
101 |
|
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
102 |
$(BUILD_DIR)/.allvariantsinstalled: $(VARIANTS:%=%/.installed) |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
103 |
$(RM) $(ROOTPPDCACHE) |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
104 |
$(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
105 |
($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
106 |
PPDSRC="$(PROTO_DIR)/usr/share/ppd/SUNWhpijs" \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
107 |
DONOTINSTALL="/dev/null" \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
108 |
CACHE="$(ROOTPPDCACHE)" \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
109 |
IPATH="/usr/share/ppd/$(BUILD_DIR)/" \ |
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
110 |
$(KSH93) cache.ksh) |
3941
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
111 |
# set version of python interpreter to calm the pkglint |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
112 |
find $(PROTO_DIR) -name \*.py -print0 | \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
113 |
while IFS= read -r -d $$'\0' file; do \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
114 |
/usr/bin/sed -e '1,1s&^#!.*python[:blank:]\{0,\}$$&#!$(PYTHON)&' \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
115 |
$$file > $$file.pyverset ; \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
116 |
done |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
117 |
find $(PROTO_DIR) -name \*.py.pyverset -print0 | \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
118 |
while IFS= read -r -d $$'\0' file; do \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
119 |
$(MV) $$file `echo $$file | sed -e 's/[.]pyverset$$//'` ; \ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
120 |
done |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
121 |
$(PYTHON) -m compileall $(PROTO_DIR)/usr/share/hplip/ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
122 |
$(TOUCH) $@ |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
123 |
|
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
124 |
PKG_MACROS += PYVER=$(PYTHON_VERSION) |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
125 |
# |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
126 |
# Since it looks like you can't build HPLIP with both HPIJS and CUPS support |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
127 |
# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
128 |
# build it twice. Once for the HPIJS support used by LP and once for the rest |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
129 |
# of the support used for CUPS and SANE. |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
130 |
# |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
131 |
configure: $(VARIANTS:%=%/.configured) |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
132 |
|
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
133 |
build: $(VARIANTS:%=%/.built) |
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
134 |
|
5a0ea91a2761
18462148 Update hplip to 3.14.3 or greater.
Jiri Sasek <Jiri.Sasek@Oracle.COM>
parents:
3014
diff
changeset
|
135 |
install: $(BUILD_DIR)/.allvariantsinstalled |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
136 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
137 |
# empty test target |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
165
diff
changeset
|
138 |
test: $(NO_TESTS) |
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
139 |
|
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
diff
changeset
|
140 |
include ../../make-rules/depend.mk |