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