components/gutenprint/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 21 Nov 2014 16:37:26 -0800
changeset 2225 f064d3d3190d
parent 1948 2d1537e7942d
child 3701 2c4a1656e035
permissions -rw-r--r--
20078677 Userland Makefiles should support a configure: target
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     1
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     3
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     7
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    12
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    18
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    20
#
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    21
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    22
#
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    24
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		gutenprint
693
15d71a1e47d6 6948608 Update Gutenprint to version 5.2.7
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    26
COMPONENT_VERSION=	5.2.7
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    27
COMPONENT_PROJECT_URL=	http://www.gutenprint.org/software/gutenprint/
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 693
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 693
diff changeset
    31
    sha256:114c899227e3ebb0753c1db503e6a5c1afaa4b1f1235fdfe02fb6bbd533beed1
693
15d71a1e47d6 6948608 Update Gutenprint to version 5.2.7
Petr Cvachoucek <petr.cvachoucek@oracle.com>
parents: 609
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://voxel.dl.sourceforge.net/project/gimp-print/gutenprint-5.2/5.2.7/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    33
COMPONENT_BUGDB=	utility/gutenprint
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    34
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    35
TPNO=			8943
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    36
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    37
include ../../make-rules/prep.mk
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    38
include ../../make-rules/configure.mk
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    39
include ../../make-rules/ips.mk
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    40
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    41
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    42
CONFIGURE_OPTIONS +=	 --infodir=$(CONFIGURE_INFODIR)
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    43
CONFIGURE_OPTIONS +=    --enable-escputil
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    44
CONFIGURE_OPTIONS +=    --without-gimp2
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    45
CONFIGURE_OPTIONS +=    --enable-cups-1_2-enhancements
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=    --enable-shared
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    47
CONFIGURE_OPTIONS +=    --disable-static-genppd
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=    --enable-simplified-cups-ppds
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    49
CONFIGURE_OPTIONS +=    --without-foomatic
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    50
CONFIGURE_OPTIONS +=    --without-foomatic3
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    51
CONFIGURE_OPTIONS +=    --without-readline
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    52
CONFIGURE_OPTIONS +=    --disable-static
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    53
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    54
COMPONENT_BUILD_TARGETS = all
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    55
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    56
configure:	$(CONFIGURE_32)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
    57
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    58
build:		$(BUILD_32)
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    59
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    60
install:	$(INSTALL_32)
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    61
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    62
# the tests mostly pass, but it can't find several drivers for ppd files
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 140
diff changeset
    63
test:		$(TEST_32)
140
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    64
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    65
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    66
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    67
099c5c598ba7 7019286 move gutenprint to userland
Keerthi Kondaka <Keerthi.Kondaka@Sun.COM>
parents:
diff changeset
    68
include ../../make-rules/depend.mk