Makefile revision 3661
425N/A#
425N/A# CDDL HEADER START
425N/A#
425N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
919N/A# You may not use this file except in compliance with the License.
425N/A#
425N/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#
919N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
919N/Ainclude ../../make-rules/shared-macros.mk
425N/A
425N/ACOMPONENT_NAME= hal-cups-utils
425N/ACOMPONENT_VERSION= 0.6.19
425N/ACOMPONENT_PROJECT_URL= http://fedorahosted.org/hal-cups-utils/
493N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
425N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
425N/ACOMPONENT_ARCHIVE_HASH= \
493N/A sha256:f40a7ebd1453d471a8a6bfd8c635708dd739a6160bb661813f936d936ba85618
425N/ACOMPONENT_ARCHIVE_URL= http://fedorahosted.org/releases/h/a/hal-cups-utils/$(COMPONENT_ARCHIVE)
911N/ACOMPONENT_BUGDB= utility/hal-cups
911N/A
911N/ATPNO= 8957
911N/A
425N/Ainclude ../../make-rules/prep.mk
425N/Ainclude ../../make-rules/configure.mk
425N/Ainclude ../../make-rules/ips.mk
425N/A
425N/APATCH_LEVEL = 0
493N/AUSED_PYTHON=$(PYTHON.2.6.32)
493N/A
425N/ACONFIGURE_ENV += PYTHON=$(USED_PYTHON)
425N/A
CONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/hal
# Since we patch Makefile.am, we have to rebuild the autoconf generated files
# Just running automake does not work, since our automake is different from the one
# used by hal-cups-utils maintainer
COMPONENT_PREP_ACTION = ( \
cd $(@D); \
ACLOCAL=$(ACLOCAL) AUTOMAKE=$(AUTOMAKE) autoreconf; \
cd $(SOURCE_DIR); \
$(PERL) -pi -e 's,^\#!.*?python,\#!$(USED_PYTHON), if $$.==1' systemv/hal_lpadmin ; \
)
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk