ips/sample_data/pkgs/cups/Makefile
2021-04-19 09:37:31 -03:00

96 lines
3.4 KiB
Makefile

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
#
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME= cups
COMPONENT_VERSION= 2.3.3
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL= http://www.cups.org/
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.gz
COMPONENT_ARCHIVE_HASH= sha256:261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee
COMPONENT_ARCHIVE_URL= https://github.com/apple/cups/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB= utility/cups
include $(WS_MAKE_RULES)/common.mk
BUILD_BITS= 64
# don't use LD_Z_IGNORE: causes linker problems
LD_Z_IGNORE=
LDFLAGS += -lsocket
CONFIGURE_ENV += DSOFLAGS="$(LDFLAGS)"
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += --prefix=/usr
CONFIGURE_OPTIONS += --mandir=/usr/share/man
CONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --localstatedir=/var
CONFIGURE_OPTIONS += --with-fontpath=/usr/openwin/lib
CONFIGURE_OPTIONS += --with-logdir=/var/log/cups
CONFIGURE_OPTIONS += --with-domainsocket=/var/run/cups-socket
CONFIGURE_OPTIONS += --with-smfmanifestdir=/lib/svc/manifest/application
CONFIGURE_OPTIONS += --with-printcap=/etc/printers.conf
CONFIGURE_OPTIONS += --with-cups-user=lp
CONFIGURE_OPTIONS += --with-cups-group=lp
CONFIGURE_OPTIONS += --disable-systemd
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --disable-gnutls
CONFIGURE_OPTIONS += --enable-openssl
CONFIGURE_OPTIONS += --enable-dbus
CONFIGURE_OPTIONS += --enable-threads
CONFIGURE_OPTIONS += --with-archflags="$(CC_BITS)"
$(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)"
COMPONENT_PRE_CONFIGURE_ACTION = \
$(CLONEY) $(SOURCE_DIR) $(@D) ; \
find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \
( cd $(SOURCE_DIR) ; autoconf -f )
# Build dependencies
REQUIRED_PACKAGES += image/library/libpng16
REQUIRED_PACKAGES += image/library/libtiff
REQUIRED_PACKAGES += service/network/dns/mdns
REQUIRED_PACKAGES += service/network/slp
# Auto-generated dependencies
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += library/print/cups-libs
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/perl-522
REQUIRED_PACKAGES += runtime/perl-524
REQUIRED_PACKAGES += service/security/kerberos-5
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += system/library/libdbus
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/network/avahi