author | rajkumar.sivaprakasam@oracle.com <rajkumar.sivaprakasam@oracle.com> |
Wed, 31 Jul 2013 00:20:46 -0700 | |
changeset 1413 | 5993f361061f |
parent 1058 | 34d7aaa03423 |
child 1948 | 2d1537e7942d |
permissions | -rw-r--r-- |
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
774
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
23 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
485
9b12cda204fe
7080213 gcc-3 should not deliver /usr/gnu/bin/cc and its man page.
Rich Burridge <rich.burridge@oracle.com>
parents:
301
diff
changeset
|
28 |
PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
9b12cda204fe
7080213 gcc-3 should not deliver /usr/gnu/bin/cc and its man page.
Rich Burridge <rich.burridge@oracle.com>
parents:
301
diff
changeset
|
29 |
|
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_NAME= nethack |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_VERSION= 3.4.3 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
485
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://www.nethack.org/ |
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-343-src.tgz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
36 |
sha256:bb39c3d2a9ee2df4a0c8fdde708fbc63740853a7608d2f4c560b488124866fe4 |
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
38 |
COMPONENT_BUGDB= utility/nethack |
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/prep.mk |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
include ../../make-rules/justmake.mk |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
include ../../make-rules/ips.mk |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
PATCH_LEVEL=0 |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
# Need to use Makefiles in the sys/unix directory and copy them into various |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# other directories. |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
# |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_PREP_ACTION= (cd $(SOURCE_DIR)/sys/unix ; sh setup.sh) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
COMPONENT_INSTALL_ARGS += CHOWN=true |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
COMPONENT_INSTALL_ARGS += CHGRP=true |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
COMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
|
774
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
55 |
COMPONENT_BUILD_ENV += CC=$(CC) |
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
56 |
COMPONENT_INSTALL_ENV += CC=$(CC) |
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
57 |
|
301
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
# common targets |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
build: $(BUILD_32) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
install: $(INSTALL_32) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
sed -e 's/^!\(NetHack.tomb\)/\1/' -e 's/^!\(NetHack.pet\)/\1/' \ |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
-e 's/^!\(NetHack.tile_file\)/\1/' \ |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
$(COMPONENT_SRC)/win/X11/NetHack.ad \ |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
> $(PROTO_DIR)/usr/lib/nethack/NetHack.ad |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
test: $(NO_TESTS) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
|
ab9eef4f4029
7054109 Move nethack to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
include ../../make-rules/depend.mk |