author | April Chin <april.chin@oracle.com> |
Mon, 12 Aug 2013 22:18:08 -0700 | |
changeset 1429 | df24a4a6dff1 |
parent 1394 | 5f86498eee95 |
child 1948 | 2d1537e7942d |
permissions | -rw-r--r-- |
1211
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
72f88619e71d
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 |
72f88619e71d
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"). |
72f88619e71d
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. |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
72f88619e71d
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 |
72f88619e71d
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. |
72f88619e71d
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 |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
72f88619e71d
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 |
72f88619e71d
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. |
72f88619e71d
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 |
72f88619e71d
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 |
72f88619e71d
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] |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
72f88619e71d
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. |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= getopt |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 1.1.5 |
72f88619e71d
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/ |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
sha256:11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6 |
72f88619e71d
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) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= utility/gnu-getopt |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/prep.mk |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/justmake.mk |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/ips.mk |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
72f88619e71d
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. |
1394
5f86498eee95
16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1211
diff
changeset
|
43 |
CC += "$(CC_BITS)" |
5f86498eee95
16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1211
diff
changeset
|
44 |
COMPONENT_BUILD_ARGS+= CC="$(CC)" |
1211
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
COMPONENT_BUILD_ARGS+= CFLAGS="$(CFLAGS)" |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
COMPONENT_BUILD_ARGS+= LIBCGETOPT=0 |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_INSTALL_ARGS+= prefix=/usr/gnu |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_INSTALL_ARGS+= mandir=/usr/gnu/share/man |
1394
5f86498eee95
16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
1211
diff
changeset
|
50 |
COMPONENT_INSTALL_ARGS+= CC="$(CC)" |
1211
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
COMPONENT_INSTALL_ARGS+= CFLAGS="$(CFLAGS)" |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
# Stupid source tarball distribution contains two .o files. |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
COMPONENT_POST_UNPACK_ACTION= \ |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
$(RM) $(COMPONENT_SRC)/gnu/*.o |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
ASLR_MODE = $(ASLR_ENABLE) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
# common targets |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
build: $(BUILD_64) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
install: $(INSTALL_64) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
test: $(NO_TESTS) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
|
72f88619e71d
PSARC 2012/354 GNU getopt 1.1.5
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
include ../../make-rules/depend.mk |