Makefile revision 1258
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# CDDL HEADER START
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# The contents of this file are subject to the terms of the
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Common Development and Distribution License (the "License").
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# You may not use this file except in compliance with the License.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# or http://www.opensolaris.org/os/licensing.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# See the License for the specific language governing permissions
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# and limitations under the License.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# When distributing Covered Code, include this CDDL HEADER in each
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# If applicable, add the following below this CDDL HEADER, with the
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# fields enclosed by brackets "[]" replaced with your own identifying
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# information: Portions Copyright [yyyy] [name of copyright owner]
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# CDDL HEADER END
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen#
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninclude ../../make-rules/shared-macros.mk
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_NAME= hal-cups-utils
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_VERSION= 0.6.19
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_PROJECT_URL= http://fedorahosted.org/hal-cups-utils/
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_ARCHIVE_HASH= \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen sha256:f40a7ebd1453d471a8a6bfd8c635708dd739a6160bb661813f936d936ba85618
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_ARCHIVE_URL= http://fedorahosted.org/releases/h/a/hal-cups-utils/$(COMPONENT_ARCHIVE)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_BUGDB= utility/hal-cups
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninclude ../../make-rules/prep.mk
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninclude ../../make-rules/configure.mk
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninclude ../../make-rules/ips.mk
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
29684a16b6c92bee28a94fdc2607bcc143950fa8johanengelenPATCH_LEVEL = 0
29684a16b6c92bee28a94fdc2607bcc143950fa8johanengelenUSED_PYTHON=$(PYTHON.2.6.32)
29684a16b6c92bee28a94fdc2607bcc143950fa8johanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCONFIGURE_ENV += PYTHON=$(USED_PYTHON)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/hal
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Since we patch Makefile.am, we have to rebuild the autoconf generated files
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# Just running automake does not work, since our automake is different from the one
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen# used by hal-cups-utils maintainer
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenCOMPONENT_PREP_ACTION = ( \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen cd $(@D); \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen ACLOCAL=$(ACLOCAL) AUTOMAKE=$(AUTOMAKE) autoreconf; \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen cd $(SOURCE_DIR); \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen $(PERL) -pi -e 's,^\#!.*?python,\#!$(USED_PYTHON), if $$.==1' systemv/hal_lpadmin ; \
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenbuild: $(BUILD_32)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninstall: $(INSTALL_32)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelentest: $(NO_TESTS)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengelenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen
981b809bc6ed10a21e89444d9447e5475801874fjohanengeleninclude ../../make-rules/depend.mk
981b809bc6ed10a21e89444d9447e5475801874fjohanengelen