hal-cups-utils: switch to Python 2.7
[unleashed-userland.git] / components / print / hal-cups-utils / Makefile
blobcb84e81edbc7fac603b19e4322deb324554d48c3
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
25 include ../../../make-rules/shared-macros.mk
27 COMPONENT_NAME= hal-cups-utils
28 COMPONENT_VERSION= 0.6.19
29 COMPONENT_REVISION= 1
30 COMPONENT_PROJECT_URL= http://fedorahosted.org/hal-cups-utils/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:f40a7ebd1453d471a8a6bfd8c635708dd739a6160bb661813f936d936ba85618
35 COMPONENT_ARCHIVE_URL= http://fedorahosted.org/releases/h/a/hal-cups-utils/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/hal-cups
38 include $(WS_MAKE_RULES)/prep.mk
39 include $(WS_MAKE_RULES)/configure.mk
40 include $(WS_MAKE_RULES)/ips.mk
42 PYTHON_VERSION=2.7
44 PATCH_LEVEL = 0
45 USED_PYTHON=$(PYTHON)
47 CONFIGURE_ENV += PYTHON=$(USED_PYTHON)
49 CONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)
50 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/hal
52 # Since we patch Makefile.am, we have to rebuild the autoconf generated files
53 # Just running automake does not work, since our automake is different from the one
54 # used by hal-cups-utils maintainer
55 COMPONENT_PREP_ACTION = ( \
56 cd $(@D); \
57 ACLOCAL=$(ACLOCAL) AUTOMAKE=$(AUTOMAKE) autoreconf; \
58 cd $(SOURCE_DIR); \
59 $(PERL) -pi -e 's,^\#!.*?python,\#!$(USED_PYTHON), if $$.==1' systemv/hal_lpadmin ; \
62 build: $(BUILD_32)
64 install: $(INSTALL_32)
66 test: $(NO_TESTS)
68 REQUIRED_PACKAGES += library/print/cups-libs
69 REQUIRED_PACKAGES += runtime/python-27
70 REQUIRED_PACKAGES += service/hal
71 REQUIRED_PACKAGES += system/library
72 REQUIRED_PACKAGES += system/library/libdbus