Makefile revision 1273
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# CDDL HEADER START
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# The contents of this file are subject to the terms of the
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Common Development and Distribution License (the "License").
dd3ccdbb29dad006f7781ea138a5ba39727963c4Timo Sirainen# You may not use this file except in compliance with the License.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
dd3ccdbb29dad006f7781ea138a5ba39727963c4Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c4390dad33b03dd51ba2a475f550347c86ebdb9aTimo Sirainen# or http://www.opensolaris.org/os/licensing.
dd3ccdbb29dad006f7781ea138a5ba39727963c4Timo Sirainen# See the License for the specific language governing permissions
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# and limitations under the License.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# CDDL HEADER END
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen#
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Siraineninclude ../../make-rules/shared-macros.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_NAME= hal-cups-utils
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_VERSION= 0.6.19
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_PROJECT_URL= http://fedorahosted.org/hal-cups-utils/
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_ARCHIVE_HASH= \
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen sha256:f40a7ebd1453d471a8a6bfd8c635708dd739a6160bb661813f936d936ba85618
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_ARCHIVE_URL= http://fedorahosted.org/releases/h/a/hal-cups-utils/$(COMPONENT_ARCHIVE)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_BUGDB= utility/hal-cups
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Siraineninclude ../../make-rules/prep.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Siraineninclude ../../make-rules/configure.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Siraineninclude ../../make-rules/ips.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo SirainenPATCH_LEVEL = 0
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo SirainenUSED_PYTHON=$(PYTHON.2.6.32)
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCONFIGURE_ENV += PYTHON=$(USED_PYTHON)
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo SirainenCONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/hal
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Since we patch Makefile.am, we have to rebuild the autoconf generated files
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# Just running automake does not work, since our automake is different from the one
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen# used by hal-cups-utils maintainer
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenCOMPONENT_PREP_ACTION = ( \
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen cd $(@D); \
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen ACLOCAL=$(ACLOCAL) AUTOMAKE=$(AUTOMAKE) autoreconf; \
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen cd $(SOURCE_DIR); \
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen $(PERL) -pi -e 's,^\#!.*?python,\#!$(USED_PYTHON), if $$.==1' systemv/hal_lpadmin ; \
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen)
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainenbuild: $(BUILD_32)
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Siraineninstall: $(INSTALL_32)
65514ab6ccc1889e1667211fddb0cca4b51017dfTimo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainentest: $(NO_TESTS)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo SirainenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Siraineninclude ../../make-rules/depend.mk
315ce5be539bfe8bc7777ab0654499c49583cea2Timo Sirainen