4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
26 USE_PARALLEL_BUILD
= yes
27 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_VERSION
= 2.4.11
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
)
32 COMPONENT_PROJECT_URL
= https
://openprinting.github.io
/cups
/
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-source.
tar.gz
34 COMPONENT_ARCHIVE_HASH
= sha256
:e66cb3769dfe1e392e495e2532304a3b4b7b3136cff7b387fd5898955a6f64e4
35 COMPONENT_ARCHIVE_URL
= https
://github.com
/OpenPrinting
/cups
/archive
/refs
/tags/v
$(HUMAN_VERSION
).
tar.gz
36 COMPONENT_LICENSE
= Apache
2.0 with an exception to allow linking against GNU GPL2-only software
38 include $(WS_MAKE_RULES
)/common.mk
40 $(CONFIGURE_32
): LDFLAGS
+= -m32
41 $(CONFIGURE_64
): LDFLAGS
+= -m64
43 COMPONENT_PRE_CONFIGURE_ACTION
+= $(CLONEY
) $(SOURCE_DIR
) $(@D
)
45 COMPONENT_PREP_ACTION
= ( cd
$(@D
) ; autoconf
-f
)
47 # Make sure that "install-sh -s" calls "strip -x" and not "strip";
48 # we want to remove debugging data but not the symbols.
49 COMPONENT_INSTALL_ENV
+= STRIPPROG
="strip -x"
54 # Ensure dynamic shared objects are linked using same LDFLAGS as executables.
55 CONFIGURE_ENV
+= DSOFLAGS
="$(LDFLAGS)"
56 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS)"
57 CONFIGURE_ENV
+= CFLAGS
="$(CFLAGS)"
58 COMPONENT_BUILD_ENV
+= LDFLAGS
="$(LDFLAGS)"
59 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
61 CONFIGURE_OPTIONS
+= --prefix=$(USRDIR
)
62 CONFIGURE_OPTIONS
+= --mandir=$(USRSHAREMANDIR
)
63 CONFIGURE_OPTIONS
+= --localedir
=$(USRSHARELOCALEDIR
)
64 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
65 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
66 # Unlike Solaris 11 which has combined and renamed /var/run and /etc/volatile into /system/volatile
67 # we still use the traditional state folder:
68 CONFIGURE_OPTIONS
+= --with-rundir
=$(VARDIR
)/run
/cups
69 CONFIGURE_OPTIONS
+= --with-smfmanifestdir
=/lib
/svc
/manifest
/application
70 CONFIGURE_OPTIONS
+= --with-printcap
=$(ETCDIR
)/printers.conf
71 CONFIGURE_OPTIONS
+= --with-cups-user
=lp
72 CONFIGURE_OPTIONS
+= --with-cups-group
=lp
73 CONFIGURE_OPTIONS
+= --with-tls
=gnutls
74 CONFIGURE_OPTIONS
+= --without-rcdir
75 CONFIGURE_OPTIONS
+= --disable-static
76 CONFIGURE_OPTIONS
+= --enable-dbus
77 CONFIGURE_OPTIONS
+= --with-archflags
="$(CC_BITS)"
79 # Dynamically create the license file from its sources:
80 cups.license
: $(SOURCE_DIR
)/LICENSE
$(SOURCE_DIR
)/NOTICE
83 # IdleExitTimeout is unknown and throws an error.
84 COMPONENT_POST_INSTALL_ACTION
= $(GSED
) -i
-e
"s:IdleExitTimeout 60:\#IdleExitTimeout 60:" $(PROTOETCDIR
)/cups
/cupsd.conf
*
86 # Manually added build dependencies
87 REQUIRED_PACKAGES
+= image
/library
/libpng16
88 REQUIRED_PACKAGES
+= image
/library
/libtiff
89 REQUIRED_PACKAGES
+= service
/network
/slp
91 # Auto-generated dependencies
92 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
93 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
94 REQUIRED_PACKAGES
+= SUNWcs
95 REQUIRED_PACKAGES
+= library
/gnutls-3
96 REQUIRED_PACKAGES
+= library
/libusb-1
97 REQUIRED_PACKAGES
+= library
/zlib
98 REQUIRED_PACKAGES
+= runtime
/perl
99 REQUIRED_PACKAGES
+= service
/network
/dns
/mdns
100 REQUIRED_PACKAGES
+= shell/ksh93
101 REQUIRED_PACKAGES
+= system
/ca-certificates
102 REQUIRED_PACKAGES
+= system
/library
103 REQUIRED_PACKAGES
+= system
/library
/libdbus
104 REQUIRED_PACKAGES
+= system
/library
/math