components/ggrep/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Wed, 13 Apr 2011 09:58:06 -0700
changeset 181 87e11e685b1f
parent 99 c15c9099bb44
child 344 f3d9af4cada9
permissions -rw-r--r--
7003927 userland should postprocess packaged files 7034188 userland should have common lint library rules 7034992 userland packages should include opensolaris.arc_url data 7019309 move ghostscript to userland (fix build)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
80
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		grep
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	2.5.4
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	sha1:9bbd4f02b18bb264e0fcb17293b6f0445c8694d2
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/grep/$(COMPONENT_ARCHIVE)
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
include ../../make-rules/prep.mk
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    33
include ../../make-rules/configure.mk
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/ips.mk
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
99
c15c9099bb44 6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 83
diff changeset
    36
# We need to be able to return from void functions
c15c9099bb44 6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 83
diff changeset
    37
CFLAGS	+=			$(studio_FEATURES_EXTENSIONS)
80
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
CONFIGURE_OPTIONS  +=		--prefix=/usr
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS  +=		--program-prefix=g
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
# common targets
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
build:		$(BUILD_32)
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 99
diff changeset
    46
install:	$(INSTALL_32)
80
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 99
diff changeset
    48
test:		$(TEST_32)
80
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
7f8350e3f91a 7017244 move ggrep to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    52
include ../../make-rules/depend.mk