1
|
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 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
# ident "@(#)Makefile.sfw 1.13 09/10/22 SMI"
|
|
27 |
#
|
|
28 |
|
|
29 |
include ../Makefile.cmd
|
|
30 |
|
|
31 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
32 |
TARBALL=$(VER).tar.bz2
|
|
33 |
|
|
34 |
# configure(1) options to use
|
|
35 |
# a default --prefix and --mandir are set in Makefile.master
|
|
36 |
CONFIGURE_OPTIONS += --infodir=$(CFGINFO)
|
|
37 |
CONFIGURE_OPTIONS += --enable-escputil
|
|
38 |
CONFIGURE_OPTIONS += --without-gimp2
|
|
39 |
CONFIGURE_OPTIONS += --enable-cups-1_2-enhancements
|
|
40 |
CONFIGURE_OPTIONS += --enable-shared
|
|
41 |
CONFIGURE_OPTIONS += --disable-static-genppd
|
|
42 |
CONFIGURE_OPTIONS += --enable-simplified-cups-ppds
|
|
43 |
CONFIGURE_OPTIONS += --without-foomatic
|
|
44 |
CONFIGURE_OPTIONS += --without-foomatic3
|
|
45 |
CONFIGURE_OPTIONS += --without-readline
|
|
46 |
CONFIGURE_OPTIONS += --disable-static
|
|
47 |
|
|
48 |
TARGET_ENV += CC="$(CC)"
|
|
49 |
TARGET_ENV += CXX="$(CCC)"
|
|
50 |
TARGET_ENV += CPPFLAGS="$(CPPFLAGS)"
|
|
51 |
TARGET_ENV += LD_OPTIONS="$(LDLIBS)"
|
|
52 |
TARGET_ENV += CUPS_CONFIG="$(ROOTBIN)/cups-config"
|
|
53 |
TARGET_ENV += LD_LIBRARY_PATH="$(ROOTLIB):$(ROOTSFWLIB):/usr/sfw/lib"
|
|
54 |
TARGET_ENV += localedir="$(CFGLOCALE)"
|
|
55 |
TARGET_ENV += INSTALL="$(INSTALL_PROTO)"
|
|
56 |
TARGET_ENV += PATH="$(SFW_PATH)"
|
|
57 |
TARGET_ENV += MAKE=$(CCSMAKE)
|
|
58 |
|
|
59 |
all:= TARGET = all
|
|
60 |
install:= TARGET = install
|
|
61 |
install:= TARGET_ENV += INSTALL="$(INSTALL_PROTO)"
|
|
62 |
install:= TARGET_ENV += DESTDIR=$(ROOT)
|
|
63 |
install:= TARGET_ENV += MANSCRIPT=$(MANSCRIPT)
|
|
64 |
install:= TARGET_ENV += localedir="$(CFGLOCALE)"
|
|
65 |
install:= TARGET_ENV += PATH="$(SRC)/tools:$(SFW_PATH)"
|
|
66 |
install:= TARGET_ENV += MAKE=$(CCSMAKE)
|
|
67 |
|
|
68 |
all: $(VER)/config.status
|
|
69 |
(cd $(VER) ; env $(TARGET_ENV) $(CCSMAKE) $(TARGET))
|
|
70 |
|
|
71 |
install: install-protofix
|
|
72 |
|
|
73 |
install-target: all
|
|
74 |
(cd $(VER) ; env $(TARGET_ENV) $(CCSMAKE) $(TARGET))
|
|
75 |
# clean up the turds
|
|
76 |
$(RM) $(ROOTLIB)/libgutenprint.la $(ROOTLIB)/libgutenprint.a
|
|
77 |
$(RM) $(ROOTLIB)/libgutenprintui2.la $(ROOTLIB)/libgutenprintui2.a
|
|
78 |
$(RM) $(ROOTLIB)/gutenprint/5.2/modules/*.la
|
|
79 |
$(RM) $(ROOT)$(CFGLOCALE)/*/gutenprint_*.po
|
|
80 |
|
|
81 |
|
|
82 |
install-protofix: install-target
|
|
83 |
# apply the file attributes from the packaging
|
|
84 |
for pkg in $(COMPONENT_PACKAGES:sh) ; do \
|
|
85 |
$(SRC)/tools/protofix --pkg $$pkg --perm ; \
|
|
86 |
done
|
|
87 |
|
|
88 |
$(VER)/config.status: $(VER)/.patched
|
|
89 |
(cd $(VER) ; env $(TARGET_ENV) ./configure $(CONFIGURE_OPTIONS))
|
|
90 |
|
|
91 |
clean:
|
|
92 |
-rm -rf $(VER)
|
|
93 |
|
|
94 |
include ../Makefile.targ
|