usr/src/cmd/gutenprint/Makefile.sfw
author Jon Tibble <meths@btinternet.com>
Mon, 04 May 2015 14:04:39 +0100
branchoi_151a
changeset 254 9c2a4ac793f0
parent 1 37d545eabfea
permissions -rw-r--r--
Bash patch catchup including shellshock
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
# CDDL HEADER START
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# and limitations under the License.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
# CDDL HEADER END
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    21
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    23
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    24
# Use is subject to license terms.
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    25
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
# ident	"@(#)Makefile.sfw	1.13	09/10/22 SMI"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
#
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
include ../Makefile.cmd
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
VER =		$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
TARBALL=$(VER).tar.bz2
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
#	configure(1) options to use
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
# a default --prefix and --mandir are set in Makefile.master
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
CONFIGURE_OPTIONS +=	--infodir=$(CFGINFO)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
CONFIGURE_OPTIONS +=	--enable-escputil
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
CONFIGURE_OPTIONS +=	--without-gimp2
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
CONFIGURE_OPTIONS +=	--enable-cups-1_2-enhancements
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    40
CONFIGURE_OPTIONS +=	--enable-shared
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS +=	--disable-static-genppd
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
CONFIGURE_OPTIONS +=	--enable-simplified-cups-ppds
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
CONFIGURE_OPTIONS +=	--without-foomatic
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=	--without-foomatic3
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=	--without-readline
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	--disable-static
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
TARGET_ENV += CC="$(CC)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    49
TARGET_ENV += CXX="$(CCC)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    50
TARGET_ENV += CPPFLAGS="$(CPPFLAGS)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    51
TARGET_ENV += LD_OPTIONS="$(LDLIBS)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    52
TARGET_ENV += CUPS_CONFIG="$(ROOTBIN)/cups-config"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    53
TARGET_ENV += LD_LIBRARY_PATH="$(ROOTLIB):$(ROOTSFWLIB):/usr/sfw/lib"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    54
TARGET_ENV += localedir="$(CFGLOCALE)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
TARGET_ENV += INSTALL="$(INSTALL_PROTO)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
TARGET_ENV += PATH="$(SFW_PATH)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
TARGET_ENV += MAKE=$(CCSMAKE)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    58
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    59
all:=		TARGET = all
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    60
install:=	TARGET = install
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    61
install:=	TARGET_ENV += INSTALL="$(INSTALL_PROTO)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    62
install:=	TARGET_ENV += DESTDIR=$(ROOT)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
install:=	TARGET_ENV += MANSCRIPT=$(MANSCRIPT)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
install:=	TARGET_ENV += localedir="$(CFGLOCALE)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    65
install:=	TARGET_ENV += PATH="$(SRC)/tools:$(SFW_PATH)"
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    66
install:=	TARGET_ENV += MAKE=$(CCSMAKE)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    67
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    68
all:    $(VER)/config.status
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    69
	(cd $(VER) ; env $(TARGET_ENV) $(CCSMAKE) $(TARGET))
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    70
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
install:	install-protofix
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    72
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    73
install-target: all
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    74
	(cd $(VER) ; env $(TARGET_ENV) $(CCSMAKE) $(TARGET))
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    75
	# clean up the turds
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    76
	$(RM) $(ROOTLIB)/libgutenprint.la $(ROOTLIB)/libgutenprint.a
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    77
	$(RM) $(ROOTLIB)/libgutenprintui2.la $(ROOTLIB)/libgutenprintui2.a
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    78
	$(RM) $(ROOTLIB)/gutenprint/5.2/modules/*.la
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    79
	$(RM) $(ROOT)$(CFGLOCALE)/*/gutenprint_*.po
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    80
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    81
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    82
install-protofix:	install-target
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    83
	# apply the file attributes from the packaging
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    84
	for pkg in $(COMPONENT_PACKAGES:sh) ; do \
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    85
		$(SRC)/tools/protofix --pkg $$pkg --perm ; \
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    86
	done
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    87
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    88
$(VER)/config.status:   $(VER)/.patched
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    89
	(cd $(VER) ; env $(TARGET_ENV) ./configure $(CONFIGURE_OPTIONS))
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    90
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    91
clean:
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    92
	-rm -rf $(VER)
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    93
37d545eabfea Import b127
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    94
include ../Makefile.targ