Makefile revision 3817
1N/A#
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= hplip
1N/ACOMPONENT_VERSION= 3.12.4
1N/ATPNO= 17920
1N/ACOMPONENT_PROJECT_URL= http://hplipopensource.com/hplip-web/index.html
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:350375c78d79adf635a59a448b27b3fe9ab7ac622637c47125fe5f7d8a537fff
1N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/hplip/files/hplip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= utility/hplip
1N/A
1N/Ainclude $(WS_MAKE_RULES)/prep.mk
1N/Ainclude $(WS_MAKE_RULES)/configure.mk
1N/Ainclude $(WS_MAKE_RULES)/ips.mk
1N/A
1N/A# Enable ASLR for this component
1N/AASLR_MODE = $(ASLR_ENABLE)
1N/A
1N/A# We need to be able to return from void functions
1N/ACC += $(studio_FEATURES_EXTENSIONS)
1N/ACXX += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_CXXLIB_CSTD)
1N/A
1N/AROOTPPDCACHE = $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
1N/A
1N/A# configure(1) options to use
1N/ACONFIGURE_OPTIONS += --localedir=$(CONFIGURE_LOCALEDIR)
1N/ACONFIGURE_OPTIONS += --disable-pp-build
1N/ACONFIGURE_OPTIONS += --disable-gui-build
1N/A
1N/ACONFIGURE_ENV += LDFLAGS=" -lnsl"
1N/A
1N/AHPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip
1N/AHPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs
1N/A
1N/AVARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT)
1N/A
1N/A# We build two variants: for the CUPS/SANE support
1N/A# and for the HPIJS only support
1N/A
1N/A# use these options for the CUPS/SANE support
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-fax-build
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-udev-acl-rules
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpcups-install
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-new-hpcups
1N/A$(HPLIP_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-cups-drv-install
1N/A
1N/A# use these options for the HPIJS only support
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-cups-drv-install
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-hpcups-install
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --disable-doc-build
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-only-build
1N/A$(HPIJS_VARIANT)/.built: CONFIGURE_OPTIONS += --enable-hpijs-install
1N/A
1N/Ainstall: COMPONENT_INSTALL_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor
1N/A
1N/ACOMPONENT_INSTALL_ARGS += -e
1N/A
1N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
1N/A
1N/A# Generate configuration scripts
1N/A$(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \
1N/A (cd $(@D) ; autoconf )
1N/A
1N/A#
1N/A# Since it looks like you can't build HPLIP with both HPIJS and CUPS support
1N/A# and seperate the HPIJS and CUPS PPD data, we need to replicate the code and
1N/A# build it twice. Once for the HPIJS support used by LP and once for the rest
1N/A# of the support used for CUPS and SANE.
1N/A#
1N/Aconfigure: $(VARIANTS:%=%/.configured)
1N/A
1N/Abuild: $(VARIANTS:%=%/.built)
1N/A
1N/Ainstall: $(VARIANTS:%=%/.installed)
1N/A $(RM) $(ROOTPPDCACHE)
1N/A $(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches
1N/A ($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \
1N/A PPDSRC="$(PROTO_DIR)/usr/share/ppd/SUNWhpijs" \
1N/A DONOTINSTALL="/dev/null" \
1N/A CACHE="$(ROOTPPDCACHE)" \
1N/A IPATH="/usr/share/ppd/$(BUILD_DIR)/" \
1N/A $(KSH93) cache.ksh)
1N/A
1N/A# empty test target
1N/Atest: $(NO_TESTS)
1N/A
1N/A
1N/AREQUIRED_PACKAGES += image/library/libjpeg
1N/AREQUIRED_PACKAGES += library/print/cups-libs
1N/AREQUIRED_PACKAGES += library/security/openssl
1N/AREQUIRED_PACKAGES += print/cups
1N/AREQUIRED_PACKAGES += runtime/perl-512
1N/AREQUIRED_PACKAGES += runtime/python-26
1N/AREQUIRED_PACKAGES += system/library
1N/AREQUIRED_PACKAGES += system/library/c++-runtime
1N/AREQUIRED_PACKAGES += system/library/libdbus
1N/AREQUIRED_PACKAGES += system/library/math
1N/AREQUIRED_PACKAGES += system/library/usb/libusb
1N/AREQUIRED_PACKAGES += system/linker
1N/AREQUIRED_PACKAGES += system/management/snmp/net-snmp
1N/A