Makefile revision 1273
367N/A#
367N/A# CDDL HEADER START
367N/A#
367N/A# The contents of this file are subject to the terms of the
367N/A# Common Development and Distribution License (the "License").
367N/A# You may not use this file except in compliance with the License.
367N/A#
367N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
367N/A# or http://www.opensolaris.org/os/licensing.
367N/A# See the License for the specific language governing permissions
367N/A# and limitations under the License.
367N/A#
367N/A# When distributing Covered Code, include this CDDL HEADER in each
367N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
367N/A# If applicable, add the following below this CDDL HEADER, with the
367N/A# fields enclosed by brackets "[]" replaced with your own identifying
367N/A# information: Portions Copyright [yyyy] [name of copyright owner]
367N/A#
367N/A# CDDL HEADER END
367N/A#
367N/A
367N/A#
844N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
367N/A#
367N/Ainclude ../../make-rules/shared-macros.mk
367N/A
367N/ACOMPONENT_NAME= cups
367N/ACOMPONENT_VERSION= 1.4.5
367N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
367N/ACOMPONENT_PROJECT_URL= http://www.cups.org/
618N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.bz2
367N/ACOMPONENT_ARCHIVE_HASH= \
367N/A sha256:0450d6d8e6e8af225d2a3319c848737d76473a6c7579cf97c52086d0371c0efe
844N/ACOMPONENT_ARCHIVE_URL= http://ftp.easysw.com/pub/cups/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
844N/ACOMPONENT_BUGDB= utility/cups
367N/A
367N/Ainclude ../../make-rules/prep.mk
367N/Ainclude ../../make-rules/configure.mk
367N/Ainclude ../../make-rules/ips.mk
367N/A
367N/ACXX += $(studio_NORUNPATH)
367N/A
367N/A# don't use LD_Z_IGNORE: causes linker problems
367N/ALD_Z_IGNORE=
367N/A
367N/ACONFIGURE_OPTIONS += --prefix=/usr
367N/ACONFIGURE_OPTIONS += --mandir=/usr/share/man
367N/ACONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
367N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
367N/ACONFIGURE_OPTIONS += --localstatedir=/var
367N/ACONFIGURE_OPTIONS += --with-fontpath=/usr/openwin/lib
367N/ACONFIGURE_OPTIONS += --with-logdir=/var/log/cups
367N/ACONFIGURE_OPTIONS += --with-domainsocket=/var/run/cups-socket
367N/ACONFIGURE_OPTIONS += --with-smfmanifestdir=/lib/svc/manifest/application
367N/ACONFIGURE_OPTIONS += --with-printcap=/etc/printers.conf
367N/ACONFIGURE_OPTIONS += --with-cups-user=lp
367N/ACONFIGURE_OPTIONS += --with-cups-group=lp
367N/ACONFIGURE_OPTIONS += --disable-static
367N/ACONFIGURE_OPTIONS += --disable-gnutls
367N/ACONFIGURE_OPTIONS += --disable-libusb
367N/ACONFIGURE_OPTIONS += --enable-labeling
CONFIGURE_OPTIONS += --enable-openssl
CONFIGURE_OPTIONS += --enable-dbus
CONFIGURE_OPTIONS += --enable-threads
CONFIGURE_OPTIONS += --enable-64bit
CONFIGURE_OPTIONS += ARCH64FLAGS=-m64
CONFIGURE_OPTIONS += DSO64FLAGS="$(LDLIBS) -G"
CONFIGURE_OPTIONS += "ac_cv_search_getifaddrs=no"
CONFIGURE_OPTIONS += "ac_cv_func_statfs=no"
$(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)"
PATCH_LEVEL = 0
COMPONENT_PRE_CONFIGURE_ACTION = \
$(CLONEY) $(SOURCE_DIR) $(@D) ; \
find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \
( cd $(SOURCE_DIR) ; autoconf -f )
# install the default config file
COMPONENT_POST_INSTALL_ACTION = \
$(TOUCH) $(PROTOETCDIR)/cups/command.types ; \
$(MV) $(PROTOUSRLIBDIR)/64 $(PROTOUSRLIBDIR)/$(MACH64)
# common targets
build: $(BUILD_32)
include ../../make-rules/shared-targets.mk
install: $(INSTALL_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk