components/hplip/Makefile
changeset 5682 94c0ca64c022
parent 5074 24b9f318a3b0
child 5797 432ac76de3b0
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    22 
    23 #
    23 #
       
    24 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
       
    25 #
       
    26 BUILD_BITS= 32
    24 include ../../make-rules/shared-macros.mk
    27 include ../../make-rules/shared-macros.mk
    25 
    28 
    26 COMPONENT_NAME=         hplip
    29 COMPONENT_NAME=         hplip
    27 COMPONENT_VERSION=      3.15.7
    30 COMPONENT_VERSION=      3.15.7
    28 TPNO=			24589
    31 TPNO=			24589
    29 COMPONENT_ARCHIVE_HASH= sha256:d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d
    32 COMPONENT_ARCHIVE_HASH= sha256:d310903048f3600f93422e5a8c39ddd682511e0849cd9abc5e943f9a10bdd49d
    30 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/hplip/$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/hplip/$(COMPONENT_ARCHIVE)
    33 COMPONENT_PROJECT_URL=	http://hplipopensource.com/hplip-web/index.html
    34 COMPONENT_PROJECT_URL=	http://hplipopensource.com/hplip-web/index.html
    34 COMPONENT_BUGDB=	utility/hplip
       
    35 
    35 
    36 include $(WS_MAKE_RULES)/prep.mk
    36 COMMON_TARGETS= no
    37 include $(WS_MAKE_RULES)/configure.mk
    37 include $(WS_MAKE_RULES)/common.mk
    38 include $(WS_MAKE_RULES)/ips.mk
       
    39 
    38 
    40 PKG_OPTIONS += -I $(COMPONENT_DIR)
    39 PKG_OPTIONS += -I $(COMPONENT_DIR)
    41 
    40 
    42 # Enable ASLR for this component
    41 # We need to be able to return from void functions
    43 ASLR_MODE = $(ASLR_ENABLE)
    42 CFLAGS.studio += $(studio_FEATURES_EXTENSIONS)
       
    43 CXXFLAGS.studio += $(studio_FEATURES_EXTENSIONS) 
       
    44 CXXFLAGS.studio += $(studio_CXXLIB_CSTD) 
    44 
    45 
    45 # We need to be able to return from void functions
    46 ROOTPPDCACHE =  $(PROTOUSRLIBDIR)/lp/caches/SUNWhpijs.cache
    46 CC += $(studio_FEATURES_EXTENSIONS)
       
    47 CXX += $(studio_FEATURES_EXTENSIONS) $(studio_NORUNPATH) $(studio_CXXLIB_CSTD) 
       
    48 
       
    49 ROOTPPDCACHE =  $(PROTO_DIR)/usr/lib/lp/caches/SUNWhpijs.cache
       
    50 
    47 
    51 # common configure options
    48 # common configure options
    52 CONFIGURE_OPTIONS +=	--localedir=$(CONFIGURE_LOCALEDIR)
    49 CONFIGURE_OPTIONS +=	--localedir=$(CONFIGURE_LOCALEDIR)
    53 CONFIGURE_OPTIONS +=	--disable-pp-build
    50 CONFIGURE_OPTIONS +=	--disable-pp-build
    54 CONFIGURE_OPTIONS +=	--disable-gui-build
    51 CONFIGURE_OPTIONS +=	--disable-gui-build
    55 CONFIGURE_OPTIONS +=	--disable-qt4
    52 CONFIGURE_OPTIONS +=	--disable-qt4
    56 CONFIGURE_OPTIONS +=	am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
    53 CONFIGURE_OPTIONS +=	am_cv_python_pythondir="$(PYTHON_VENDOR_PACKAGES)"
    57 CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
    54 CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir="$(PYTHON_VENDOR_PACKAGES)"
    58 
    55 
    59 CONFIGURE_ENV +=	LDFLAGS=" -lnsl"
    56 ifeq ($(OS_VERSION),5.11)
       
    57 LDFLAGS += -lnsl
       
    58 endif
    60 
    59 
    61 HPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip
    60 HPLIP_VARIANT = $(BUILD_DIR)/$(MACH32)-hplip
    62 HPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs
    61 HPIJS_VARIANT = $(BUILD_DIR)/$(MACH32)-hpijs
    63 
    62 
    64 VARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT)
    63 VARIANTS = $(HPLIP_VARIANT) $(HPIJS_VARIANT)
    65 
    64 
    66 # We build two variants: for the CUPS/SANE support
    65 # We build two variants: for the CUPS/SANE support
    67 # and for the HPIJS only support
    66 # and for the HPIJS only support
    68 
    67 
    69 # use these options for the CUPS/SANE support
    68 # use these options for the CUPS/SANE support
    70 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/cups/model/SUNWhplip
    69 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=$(USRSHAREDIR)/cups/model/SUNWhplip
    71 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-libusb01_build
    70 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-libusb01_build
    72 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-fax-build
    71 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-fax-build
    73 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpcups-install
    72 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpcups-install
    74 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-new-hpcups
    73 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-new-hpcups
    75 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-cups-drv-install
    74 $(HPLIP_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-cups-drv-install
    76 
    75 
    77 # use these options for the HPIJS only support
    76 # use these options for the HPIJS only support
    78 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
    77 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-foomatic-ppd-install
    79 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=/usr/share/ppd/SUNWhpijs/HP
    78 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --with-hpppddir=$(USRSHAREDIR)/ppd/SUNWhpijs/HP
    80 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-cups-drv-install
    79 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-cups-drv-install
    81 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-hpcups-install
    80 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-hpcups-install
    82 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-doc-build
    81 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --disable-doc-build
    83 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-only-build
    82 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-only-build
    84 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-install
    83 $(HPIJS_VARIANT)/.configured: CONFIGURE_OPTIONS += --enable-hpijs-install
    89 	($(CLONEY) $(SOURCE_DIR) $(@D))
    88 	($(CLONEY) $(SOURCE_DIR) $(@D))
    90 
    89 
    91 # Generate configuration scripts
    90 # Generate configuration scripts
    92 $(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \
    91 $(HPLIP_VARIANT)/.built: COMPONENT_PREP_ACTION = \
    93 		(cd $(@D) ; autoconf )
    92 		(cd $(@D) ; autoconf )
    94 
       
    95 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    96 
    93 
    97 $(BUILD_DIR)/.allvariantsinstalled: $(VARIANTS:%=%/.installed)
    94 $(BUILD_DIR)/.allvariantsinstalled: $(VARIANTS:%=%/.installed)
    98 	$(RM) $(ROOTPPDCACHE)
    95 	$(RM) $(ROOTPPDCACHE)
    99 	$(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches
    96 	$(MKDIR) $(PROTO_DIR)/usr/lib/lp/caches
   100 	($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \
    97 	($(ENV) VER="$(BUILD_DIR)/$(MACH32)-hpijs" \
   140 REQUIRED_PACKAGES += library/security/openssl
   137 REQUIRED_PACKAGES += library/security/openssl
   141 REQUIRED_PACKAGES += print/cups
   138 REQUIRED_PACKAGES += print/cups
   142 REQUIRED_PACKAGES += image/scanner/xsane/sane-backends
   139 REQUIRED_PACKAGES += image/scanner/xsane/sane-backends
   143 REQUIRED_PACKAGES += runtime/perl-512
   140 REQUIRED_PACKAGES += runtime/perl-512
   144 REQUIRED_PACKAGES += runtime/python-27
   141 REQUIRED_PACKAGES += runtime/python-27
   145 REQUIRED_PACKAGES += system/library
       
   146 REQUIRED_PACKAGES += system/library/c++-runtime
   142 REQUIRED_PACKAGES += system/library/c++-runtime
   147 REQUIRED_PACKAGES += system/library/libdbus
   143 REQUIRED_PACKAGES += system/library/libdbus
   148 REQUIRED_PACKAGES += system/library/math
   144 REQUIRED_PACKAGES += system/library/math
   149 REQUIRED_PACKAGES += system/library/usb/libusb
   145 REQUIRED_PACKAGES += system/library/usb/libusb
   150 REQUIRED_PACKAGES += system/management/snmp/net-snmp
   146 REQUIRED_PACKAGES += system/management/snmp/net-snmp