|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
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. |
|
7 # |
|
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. |
|
12 # |
|
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] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 include ../../make-rules/shared-macros.mk |
|
26 |
|
27 COMPONENT_NAME= cups |
|
28 COMPONENT_VERSION= 1.4.5 |
|
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_PROJECT_URL= http://www.cups.org/ |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.tar.bz2 |
|
32 COMPONENT_ARCHIVE_HASH= sha1:68af37234645954e1bfad6a3608c67c03a9aef78 |
|
33 COMPONENT_ARCHIVE_URL= http://ftp.easysw.com/pub/cups/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
34 |
|
35 include ../../make-rules/prep.mk |
|
36 include ../../make-rules/configure.mk |
|
37 include ../../make-rules/ips.mk |
|
38 |
|
39 CXX += $(studio_NORUNPATH) |
|
40 |
|
41 CONFIGURE_OPTIONS += --prefix=/usr |
|
42 CONFIGURE_OPTIONS += --mandir=/usr/share/man |
|
43 CONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR) |
|
44 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
|
45 CONFIGURE_OPTIONS += --localstatedir=/var |
|
46 CONFIGURE_OPTIONS += --with-fontpath=/usr/openwin/lib |
|
47 CONFIGURE_OPTIONS += --with-logdir=/var/log/cups |
|
48 CONFIGURE_OPTIONS += --with-domainsocket=/var/run/cups-socket |
|
49 CONFIGURE_OPTIONS += --with-smfmanifestdir=/lib/svc/manifest/application |
|
50 CONFIGURE_OPTIONS += --with-printcap=/etc/printers.conf |
|
51 CONFIGURE_OPTIONS += --with-cups-user=lp |
|
52 CONFIGURE_OPTIONS += --with-cups-group=lp |
|
53 CONFIGURE_OPTIONS += --disable-static |
|
54 CONFIGURE_OPTIONS += --disable-gnutls |
|
55 CONFIGURE_OPTIONS += --disable-libusb |
|
56 CONFIGURE_OPTIONS += --enable-labeling |
|
57 CONFIGURE_OPTIONS += --enable-openssl |
|
58 CONFIGURE_OPTIONS += --enable-dbus |
|
59 CONFIGURE_OPTIONS += --enable-threads |
|
60 CONFIGURE_OPTIONS += --enable-64bit |
|
61 |
|
62 CONFIGURE_OPTIONS += ARCH64FLAGS=-m64 |
|
63 CONFIGURE_OPTIONS += DSO64FLAGS="$(LDLIBS) -G" |
|
64 CONFIGURE_OPTIONS += "ac_cv_search_getifaddrs=no" |
|
65 CONFIGURE_OPTIONS += "ac_cv_func_statfs=no" |
|
66 |
|
67 $(BUILD_DIR)/%/.installed: ENV += DSTROOT="$(PROTO_DIR)" |
|
68 $(BUILD_DIR)/%/.installed: ENV += MAN1EXT="1cups" |
|
69 $(BUILD_DIR)/%/.installed: ENV += MAN8EXT="1cups" |
|
70 $(BUILD_DIR)/%/.installed: ENV += MAN8DIR="1cups" |
|
71 |
|
72 PATCH_LEVEL = 0 |
|
73 |
|
74 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
75 $(CLONEY) $(SOURCE_DIR) $(@D) ; \ |
|
76 find $(@D) -name '*.in' | sed -e 's/.in$$//' | xargs $(RM) ; \ |
|
77 ( cd $(SOURCE_DIR) ; autoconf -f ) |
|
78 |
|
79 # install the default config file |
|
80 COMPONENT_POST_INSTALL_ACTION = \ |
|
81 $(TOUCH) $(PROTOETCDIR)/cups/command.types ; \ |
|
82 $(MV) $(PROTOUSRLIBDIR)/64 $(PROTOUSRLIBDIR)/$(MACH64) |
|
83 |
|
84 # common targets |
|
85 build: $(BUILD_32) |
|
86 |
|
87 include ../../make-rules/shared-targets.mk |
|
88 |
|
89 install: $(INSTALL_32) |
|
90 |
|
91 test: $(NO_TESTS) |
|
92 |
|
93 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
94 |
|
95 include ../../make-rules/depend.mk |