author | Misaki Miyashita <Misaki.Miyashita@Oracle.COM> |
Tue, 06 Aug 2013 08:08:18 -0700 | |
branch | s11-update |
changeset 2717 | da0ef75be98f |
parent 2558 | eaacd1839cad |
child 3661 | 47545fb8aed4 |
permissions | -rw-r--r-- |
2558
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= getopt |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 1.1.5 |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://software.frodo.looijaard.name/getopt/ |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6 |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= utility/gnu-getopt |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/prep.mk |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/justmake.mk |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/ips.mk |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
# getopt doesn't use configure, override the hard-wired values in the Makefile. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_BUILD_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)" |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
COMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)" |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
COMPONENT_BUILD_ARGS+= LIBCGETOPT=0 |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
COMPONENT_INSTALL_ARGS+= prefix=/usr/gnu |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_INSTALL_ARGS+= CC="$(SPRO_VROOT)/bin/cc $(CC_BITS)" |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
COMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)" |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
# Stupid source tarball distribution contains two .o files. |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
COMPONENT_POST_UNPACK_ACTION= \ |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
$(RM) $(COMPONENT_SRC)/gnu/*.o |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
# common targets |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
build: $(BUILD_64) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
install: $(INSTALL_64) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
test: $(NO_TESTS) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
|
eaacd1839cad
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
include ../../make-rules/depend.mk |